@@ -11,28 +11,25 @@ nav_order: 5
1111{: toc }
1212
1313
14- ## Where are cache, config and data files stored?
14+ ## Wayland
1515
16- According to [ QStandardPaths ] ( https://doc.qt.io/qt-6/qstandardpaths.html#StandardLocation-enum ) base directories are:
16+ Wayland comes with a _ lot _ of [ limitations ] ( https://gist.github.com/probonopd/9feb7c20257af5dd915e3a9f2d1f2277 ) .
1717
18- | | Linux/BSD | MacOS |
19- | -----------| ------------------------------------------------------------------------------------------| --------------------------------------------------------------------------------------------------------------------------|
20- | Cache | π¨πΌβπ» ` ~/.cache/albert ` | π¨πΌβπ» ` ~/Library/Caches/albert ` <br >π» ` /Library/Caches/albert ` |
21- | Config | π¨πΌβπ» ` ~/.config/albert ` <br >π» ` /etc/xdg/albert ` | π¨πΌβπ» ` ~/Library/Preferences/albert ` |
22- | Data | π¨πΌβπ» ` ~/.local/share/albert ` <br >π» ` /usr/local/share/albert ` <br >π» ` /usr/share/albert ` | π¨πΌβπ» ` ~/Library/Application Support/albert ` <br >π» ` /Library/Application Support/albert ` <br >π» ` <APPDIR>/../Resources ` |
2318
24- Albert places its data in the base directories root.
25- Plugins use subdirectories named by their identifier.
26- In case of multiple directories the directories are considered in the given order.
27- Users may change the contents of the user π¨πΌβπ» directories (manually or by using the app).
28- Do not touch app/vendor π» directories!
19+ ### XWayland
2920
30- {: .note}
31- Note that environment variables may change these base directories on XDG platforms.
32- See [ XDG Base Directory Specification] ( https://specifications.freedesktop.org/basedir-spec/latest/index.html ) for more information.
33-
21+ Some of its limitations can be mitigated by using XWayland.
3422
35- ## How to make hotkeys work on Wayland?
23+ ``` bash
24+ # Do not set QT_QPA_PLATFORM as it will propagate to launched apps
25+ albert --platform xcb
26+ ```
27+
28+ {: .note }
29+ Currently the shipped desktop entry does this for you.
30+
31+
32+ ### Hotkeys
3633
3734Wayland hotkey adoption is still in its [ infancy] ( https://dec05eba.com/2024/03/29/wayland-global-hotkeys-shortcut-is-mostly-useless/ ) .
3835A general solution is to let your desktop environment handle the hotkey registration.
@@ -63,26 +60,47 @@ echo -n '["toggle"]' | socat - ~/.cache/albert/ipc_socket
6360Gnome does not invoke a shell for bindings. Use ``` sh -c "<command line>" ``` .
6461
6562
63+ ### Window rules
64+
65+ Wayland does not allow to set window properties like on any other platforms.
66+ There some of the window settings have no effect.
67+ Some compositors allow configuring the window properties in their settings.
68+
69+ - [ KDE] ( https://docs.kde.org/stable5/en/kwin/kcontrol/windowspecific/index.html )
70+ - On Gnome your best bet is probably [ GNOME Window Rules extension] ( https://help.gnome.org/users/gnome-help/stable/windows-properties.html.en ) .
71+
6672## How to open with a particular text?
6773
6874``` bash
6975albert show " trigger "
7076```
7177
78+ ## Where are cache, config and data files stored?
7279
73- ## How to avoid Wayland and use XCB platform?
80+ According to [ QStandardPaths ] ( https://doc.qt.io/qt-6/qstandardpaths.html#StandardLocation-enum ) base directories are:
7481
75- ``` bash
76- # Do not set QT_QPA_PLATFORM as it will propagate to launched apps
77- albert --platform xcb
78- ```
82+ | | Linux/BSD | MacOS |
83+ | -----------| ------------------------------------------------------------------------------------------| --------------------------------------------------------------------------------------------------------------------------|
84+ | Cache | π¨πΌβπ» ` ~/.cache/albert ` | π¨πΌβπ» ` ~/Library/Caches/albert ` <br >π» ` /Library/Caches/albert ` |
85+ | Config | π¨πΌβπ» ` ~/.config/albert ` <br >π» ` /etc/xdg/albert ` | π¨πΌβπ» ` ~/Library/Preferences/albert ` |
86+ | Data | π¨πΌβπ» ` ~/.local/share/albert ` <br >π» ` /usr/local/share/albert ` <br >π» ` /usr/share/albert ` | π¨πΌβπ» ` ~/Library/Application Support/albert ` <br >π» ` /Library/Application Support/albert ` <br >π» ` <APPDIR>/../Resources ` |
7987
80- {: .note }
81- Currently the shipped desktop entry does this for you.
88+ Albert places its data in the base directories root.
89+ Plugins use subdirectories named by their identifier.
90+ In case of multiple directories the directories are considered in the given order.
91+ Users may change the contents of the user π¨πΌβπ» directories (manually or by using the app).
92+ Do not touch app/vendor π» directories!
8293
94+ {: .note}
95+ Note that environment variables may change these base directories on XDG platforms.
96+ See [ XDG Base Directory Specification] ( https://specifications.freedesktop.org/basedir-spec/latest/index.html ) for more information.
97+
8398
8499## How to get GNOME platform integration (auto dark mode)?
85100
101+ {: .note }
102+ Since Qt6.4 automatic dark mode should at least work as expected for the main window.
103+
86104Install [ QGnomePlatform] ( https://github.com/FedoraQt/QGnomePlatform ) .
87105QGnomePlatform project is unmaintained and no longer actively developed, however there is nothing else providing that good integration (afaik).
88106Note that QGnomePlatform sets styles and such (read [ more] ( https://jgrulich.cz/2023/03/08/explained-qgnomeplatform-and-adwaita-qt/#QGnomePlatform ) ).
0 commit comments