lcpz / awesome-freedesktop

Freedesktop.org menu and desktop icons support for Awesome WM
GNU General Public License v2.0
129 stars 25 forks source link

Get rid of NixOS hardcoded applications path #20

Closed pltanton closed 4 years ago

pltanton commented 4 years ago

Hi there!

Accidentally I found, that for NixOS applications directory the path is hardcoded.

I can't find the reason why this fix is applied, but it seems to be outdated because NixOS support XDG out of the box now.; For example in my NixOS installation there is:

➜  ~ printenv | grep XDG_DATA
XDG_DATA_DIRS=/home/anton/.nix-profile/share:/etc/profiles/per-user/anton/share:/nix/var/nix/profiles/default/share:/run/current-system/sw/share

which already includes .nix-profile/share.

UPDATE:

I guess that the reason was here https://github.com/awesomeWM/awesome/commit/ea2c9deb68da7aa7f5aef30facd7c0c078269399 the menumar was not support XDG itself

lcpz commented 4 years ago

See #21.