Fixed snap on ubuntu 20.04 (needed unity7) -S
This commit is contained in:
committed by
borgmanJeremy
parent
9df7c45d62
commit
991da44968
@@ -1,16 +0,0 @@
|
||||
# /snap/local/launchers
|
||||
|
||||
Here are the launchers, or wrapper programs to deal with some runtime-fixable
|
||||
problems for the snapped applications, like setting proper environmental
|
||||
variables in snap.
|
||||
|
||||
In convention launchers are named _something_-launch, for dealing certain
|
||||
problem with _something_, and usually can be called in a stacked manner to
|
||||
consolidate their modifications.
|
||||
|
||||
```yaml
|
||||
apps:
|
||||
_app_name_:
|
||||
command: foo-launch bar-launch _app_command_
|
||||
```
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# This is the maintainence launcher for the snap, make necessary runtime
|
||||
# environment changes to make the snap work here. You may also insert security
|
||||
# confinement/deprecation/obsoletion notice of the snap here.
|
||||
|
||||
set \
|
||||
-o errexit \
|
||||
-o errtrace \
|
||||
-o nounset \
|
||||
-o pipefail
|
||||
|
||||
# gtk-common-themes support
|
||||
export QT_QPA_PLATFORMTHEME=gtk3
|
||||
# Correct the TMPDIR path for Chromium Framework/Electron to
|
||||
# ensure libappindicator has readable resources
|
||||
export TMPDIR=$XDG_RUNTIME_DIR
|
||||
# Coerce XDG_CURRENT_DESKTOP to Unity so that App Indicators
|
||||
# are used and do not fall back to Notification Area applets
|
||||
# or disappear completely.
|
||||
export XDG_CURRENT_DESKTOP=Unity
|
||||
|
||||
# Finally run the next part of the command chain
|
||||
exec "${@}"
|
||||
@@ -20,14 +20,14 @@ architectures:
|
||||
|
||||
apps:
|
||||
flameshot:
|
||||
adapter: full
|
||||
command: usr/bin/flameshot
|
||||
command: flameshot
|
||||
desktop: usr/share/applications/flameshot.desktop
|
||||
extensions:
|
||||
- kde-neon
|
||||
environment:
|
||||
DISABLE_WAYLAND: 1
|
||||
XDG_DATA_DIRS: $SNAP/share:$XDG_DATA_DIRS
|
||||
QT_QPA_PLATFORMTHEME: gtk3
|
||||
slots: [dbus-flameshot]
|
||||
plugs:
|
||||
- kde-frameworks-5-plug
|
||||
@@ -38,6 +38,7 @@ apps:
|
||||
- opengl
|
||||
- pulseaudio
|
||||
- wayland
|
||||
- unity7
|
||||
- x11
|
||||
|
||||
parts:
|
||||
|
||||
Reference in New Issue
Block a user