commit: 2ad3b5edde6f83de2da9aacc6dd3b7604e954297 Author: Leo Douglas <douglarek <AT> gmail <DOT> com> AuthorDate: Tue Feb 11 09:03:22 2025 +0000 Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> CommitDate: Tue Feb 11 10:54:48 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ad3b5ed
app-editors/logseq-desktop-bin: added wayland USE flag also make fcitx5 work under Wayland. Closes: https://bugs.gentoo.org/949511 Signed-off-by: Leo Douglas <douglarek <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/40525 Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org> ...top-bin-0.10.9.ebuild => logseq-desktop-bin-0.10.9-r1.ebuild} | 9 +++++++-- app-editors/logseq-desktop-bin/metadata.xml | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) 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 bc4f1ec885d5..7cd17cd585ab 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 0a67e594f20b..882e3af69d3a 100644 --- a/app-editors/logseq-desktop-bin/metadata.xml +++ b/app-editors/logseq-desktop-bin/metadata.xml @@ -5,6 +5,9 @@ <email>msch...@gentoo.org</email> <name>Marc Schiffbauer</name> </maintainer> + <use> + <flag name="wayland">Run in wayland mode under wayland sessions, xwayland otherwise. This flag doesn't affect x11 sessions.</flag> + </use> <upstream> <remote-id type="github">logseq/logseq</remote-id> </upstream>