Skip to content

Commit 580c79c

Browse files
Update
1 parent 9f91ac1 commit 580c79c

File tree

1 file changed

+42
-24
lines changed

1 file changed

+42
-24
lines changed

β€Žsrc/gettingstarted/faq.mdβ€Ž

Lines changed: 42 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -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

3734
Wayland hotkey adoption is still in its [infancy](https://dec05eba.com/2024/03/29/wayland-global-hotkeys-shortcut-is-mostly-useless/).
3835
A general solution is to let your desktop environment handle the hotkey registration.
@@ -63,26 +60,47 @@ echo -n '["toggle"]' | socat - ~/.cache/albert/ipc_socket
6360
Gnome 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
6975
albert 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+
86104
Install [QGnomePlatform](https://github.com/FedoraQt/QGnomePlatform).
87105
QGnomePlatform project is unmaintained and no longer actively developed, however there is nothing else providing that good integration (afaik).
88106
Note that QGnomePlatform sets styles and such (read [more](https://jgrulich.cz/2023/03/08/explained-qgnomeplatform-and-adwaita-qt/#QGnomePlatform)).

0 commit comments

Comments
Β (0)