I’m trying to make an app launcher, but I’m having problems both loading icons, and now that i tried installing it as a system app, also loading its own stylesheet file. (it does load the .desktop files correctly tho)
I’m using Gtk+Glib, in Vala, and looking through the system data directories using a library function instead of a hardcoded string. Is it a gtk problem or is there a way to expose ALL the derivations to mine.
I then add it to my system packages using the callPackage function.
When running it in a nix-shell it does load its own stylesheet, when installing it on the system and running from the command line, it doesnt, cause its own store directory is missing from the data dirs list.
Installing and running xdg-user-dirs-update doesnt fix it
another strange behavior: if i replace all occurrences of $APPLICATION_ID with ${name} it stops loading its own stylesheet even when running it with nix-shell
UPDATE: it does load its own stylesheet when installed, if i do it using the home manager
So now the only issue is still the other apps’ icons not loading
OMG!! I figured it out!!!
I had to use makeWrapper with librsvg, i just stole this from some other package’s nix file, so I’m not entirely sure why it works. I guess im setting a different, patched backend… idk why this is not the default… Anyone feel free to explain it further, but I’m happy, my icons are fixed, and I’m marking this as solved