goldendict-ng/website/docs/topic_wayland.md
xiaoyifang d5037ded24
Some checks failed
SonarCloud / Build and analyze (push) Waiting to run
deploy_website / deploy (push) Has been cancelled
feature: rename the [Enable Scanning] to a more accurate tooltip (#1810)
* feature: rename the [Enable Scanning] to a more accurate tooltip

* change [Scan Popup] to popup

* i18n: [scan popup] to popup in ts files

* update popup related strings

* Update popup doc

* update popup doc 2

* Update ui_popup.md

* -t popup explanation in command line

---------

Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
2024-10-10 02:19:33 +00:00

790 B

Environment variable GOLDENDICT_FORCE_WAYLAND can be used to force GD to run in Wayland mode, like env GOLDENDICT_FORCE_WAYLAND=1 goldendict.

!!! danger "Don't use unless you know!" This flag only guarantees GD to run in wayland mode and won't crash, but nothing more.

Enable this will break popup, global hotkeys and probably other things.

Current reality

!!! note "Help wanted" Need help to redesign popup for wayland.

Popup is implemented with querying mouse cursor's position and setting a window's absolute global position. Wayland does not support both by design and philosophy.

Wayland does not support registering global hotkeys until very recently, but a reasonable wayland desktop environment should provide some way to bind keys to commands globally.