mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-12-22 10:42:56 +01:00
bash/usr-local-bin: add joplin for wayland
This commit is contained in:
parent
fdfaa40fe8
commit
73b544eafa
1
bash/usr-local-bin/.gitignore
vendored
1
bash/usr-local-bin/.gitignore
vendored
@ -3,3 +3,4 @@ edge-*
|
||||
libreawoo
|
||||
htop-foot
|
||||
teams
|
||||
joplin
|
||||
|
1
bash/usr-local-bin/joplin
Symbolic link
1
bash/usr-local-bin/joplin
Symbolic link
@ -0,0 +1 @@
|
||||
joplin-desktop
|
20
bash/usr-local-bin/joplin-desktop
Executable file
20
bash/usr-local-bin/joplin-desktop
Executable file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# I was unable to get the Flatpak to start and the Snap needed the usual, so
|
||||
# here we are. Then I learned that it just needs --ozone-platform=wayland
|
||||
# instead of the old --ozone-platform-hint=auto, but whatever works or is
|
||||
# installed is fine...
|
||||
|
||||
set -x
|
||||
if [ -f /snap/bin/joplin-desktop ]; then
|
||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
||||
unset DBUS_SESSION_BUS_ADDRESS
|
||||
snap run joplin-desktop --ozone-platform=wayland "$@"
|
||||
elif [ -f /var/lib/flatpak/exports/bin/net.cozic.joplin_desktop ]; then
|
||||
flatpak run net.cozic.joplin_desktop --ozone-platform=wayland "$@"
|
||||
elif [ -f ~/.local/share/flatpak/exports/bin/net.cozic.joplin_desktop ]; then
|
||||
flatpak run --user net.cozic.joplin_desktop --ozone-platform=wayland "$@"
|
||||
else
|
||||
/usr/bin/joplin-notes --ozone-platform=wayland
|
||||
fi
|
||||
set +x
|
Loading…
Reference in New Issue
Block a user