diff --git a/app-editors/logseq-desktop-bin/logseq-desktop-bin-0.10.9.ebuild b/app-editors/logseq-desktop-bin/logseq-desktop-bin-0.10.9-r1.ebuild
similarity index 89%
rename from app-editors/logseq-desktop-bin/logseq-desktop-bin-0.10.9.ebuild
rename to app-editors/logseq-desktop-bin/logseq-desktop-bin-0.10.9-r1.ebuild
index bc4f1ec885d5b..7cd17cd585ab3 100644
--- a/app-editors/logseq-desktop-bin/logseq-desktop-bin-0.10.9.ebuild
+++ b/app-editors/logseq-desktop-bin/logseq-desktop-bin-0.10.9-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2023-2024 Gentoo Authors
+# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -19,6 +19,7 @@ S="${WORKDIR}/Logseq-linux-x64"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="-* ~amd64"
+IUSE="wayland"
RESTRICT="mirror splitdebug"
@@ -84,7 +85,11 @@ src_install() {
dosym ../logseq-desktop/Logseq /opt/bin/logseq
- make_desktop_entry "/opt/bin/logseq %U" Logseq logseq Office \
+ local exec_extra_flags=()
+ if use wayland; then
+ exec_extra_flags+=( "--ozone-platform-hint=auto" "--enable-wayland-ime" )
+ fi
+ make_desktop_entry "/opt/bin/logseq ${exec_extra_flags[*]} %U" Logseq logseq Office \
"StartupWMClass=logseq\nTerminal=false\nMimeType=x-scheme-handler/logseq"
# some releases do not have an icon included, but we dont fail if that happens
doicon resources/app/icons/logseq.png || true
diff --git a/app-editors/logseq-desktop-bin/metadata.xml b/app-editors/logseq-desktop-bin/metadata.xml
index 0a67e594f20bb..882e3af69d3a3 100644
--- a/app-editors/logseq-desktop-bin/metadata.xml
+++ b/app-editors/logseq-desktop-bin/metadata.xml
@@ -5,6 +5,9 @@
mschiff@gentoo.org
Marc Schiffbauer
+
logseq/logseq