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