mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
opt: set XDG_CURRENT_DESKTOP var in code not in desktop file
This commit is contained in:
parent
916a879831
commit
2bf0a791cd
2 changed files with 3 additions and 1 deletions
|
|
@ -2,6 +2,6 @@
|
||||||
Encoding=UTF-8
|
Encoding=UTF-8
|
||||||
Name=Maomao
|
Name=Maomao
|
||||||
Comment=maomao WM
|
Comment=maomao WM
|
||||||
Exec=env XDG_CURRENT_DESKTOP=maomao maomao
|
Exec=maomao
|
||||||
Icon=maomao
|
Icon=maomao
|
||||||
Type=Application
|
Type=Application
|
||||||
|
|
|
||||||
|
|
@ -4930,6 +4930,8 @@ run(char *startup_cmd) {
|
||||||
if (!wlr_backend_start(backend))
|
if (!wlr_backend_start(backend))
|
||||||
die("startup: backend_start");
|
die("startup: backend_start");
|
||||||
|
|
||||||
|
setenv("XDG_CURRENT_DESKTOP", "maomao", 1);
|
||||||
|
|
||||||
/* Now that the socket exists and the backend is started, run the startup
|
/* Now that the socket exists and the backend is started, run the startup
|
||||||
* command */
|
* command */
|
||||||
if (startup_cmd) {
|
if (startup_cmd) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue