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@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/40525
Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org>
This commit is contained in:
Leo Douglas
2025-02-11 17:03:22 +08:00
committed by Marc Schiffbauer
parent a88d8a6422
commit 2ad3b5edde
2 changed files with 10 additions and 2 deletions

View File

@@ -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

View File

@@ -5,6 +5,9 @@
<email>mschiff@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>