biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / misc / nwg-bar / fix-paths.patch
blob9d4e98e9a7b76c6b84dc79c1bb762c95d146a4b4
1 diff --git a/config/bar.json b/config/bar.json
2 index 6c456e7..98527cb 100644
3 --- a/config/bar.json
4 +++ b/config/bar.json
5 @@ -2,21 +2,21 @@
7 "label": "Lock",
8 "exec": "swaylock -f -c 000000",
9 - "icon": "/usr/share/nwg-bar/images/system-lock-screen.svg"
10 + "icon": "@out@/share/nwg-bar/images/system-lock-screen.svg"
13 "label": "Logout",
14 "exec": "swaymsg exit",
15 - "icon": "/usr/share/nwg-bar/images/system-log-out.svg"
16 + "icon": "@out@/share/nwg-bar/images/system-log-out.svg"
19 "label": "Reboot",
20 "exec": "systemctl reboot",
21 - "icon": "/usr/share/nwg-bar/images/system-reboot.svg"
22 + "icon": "@out@/share/nwg-bar/images/system-reboot.svg"
25 "label": "Shutdown",
26 "exec": "systemctl -i poweroff",
27 - "icon": "/usr/share/nwg-bar/images/system-shutdown.svg"
28 + "icon": "@out@/share/nwg-bar/images/system-shutdown.svg"
31 \ No newline at end of file
32 diff --git a/tools.go b/tools.go
33 index f97751e..987163e 100644
34 --- a/tools.go
35 +++ b/tools.go
36 @@ -45,10 +45,7 @@ func configDir() string {
39 func getDataHome() string {
40 - if os.Getenv("XDG_DATA_HOME") != "" {
41 - return os.Getenv("XDG_DATA_HOME")
42 - }
43 - return "/usr/share/"
44 + return "@out@/share/"
47 func createDir(dir string) {