From c8909b249b31a174e0efcdabc1bc2313df2ce158 Mon Sep 17 00:00:00 2001 From: xpamych Date: Wed, 12 Apr 2023 21:44:49 +0300 Subject: [PATCH] =?UTF-8?q?wayland=20=D0=B8=20x?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logseq-desktop-wayland-bin/logseq-desktop.desktop | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/logseq-desktop-wayland-bin/logseq-desktop.desktop b/logseq-desktop-wayland-bin/logseq-desktop.desktop index 8bba5bc..9039baf 100644 --- a/logseq-desktop-wayland-bin/logseq-desktop.desktop +++ b/logseq-desktop-wayland-bin/logseq-desktop.desktop @@ -1,14 +1,15 @@ [Desktop Entry] Name=Logseq -Exec=/usr/bin/logseq --enable-features=UseOzonePlatform --ozone-platform=wayland %U +if [ "$XDG_SESSION_TYPE" = "wayland" ]; then + Exec=/usr/bin/logseq --enable-features=UseOzonePlatform --ozone-platform=wayland %U +else + Exec=/usr/bin/logseq %U +fi + MimeType=x-scheme-handler/logseq Terminal=false Type=Application Icon=logseq StartupWMClass=logseq Comment=Open Source platform for knowledge sharing and management -Categories=Office - -[Desktop Action X11] -Name=My Application (X11) -Exec=/usr/bin/logseq %U \ No newline at end of file +Categories=Office \ No newline at end of file