I’m trying to create a .desktop file to launch a GUI application with custom arguments.
Where do I put the .desktop file so gnome shell sees it?
I tried symlinking my ~/.local/share/applications/myapp.desktop to /run/current-system/sw/share/applications but I cannot since that is mounted read only.
I would prefer to not use home manager or a complicated setup.
Any extra tips and context would be most appreciated. I’m at a loss how to translate traditional GNU/Linux imperative configuration to the nixOS idiom.
Then, I can search for ‘gnumeric-launcher’ and see the pretty icon and shortcut!
I learned that exec could be a relative path. I also was unsure of where libs was defined in the above snippet. lib.concatStringsSep gave me a syntax error.
building '/nix/store/ybwmpkmpdbv2kjy4f3ycgfhxgyqlhms9-firejail-wrapped-binaries.drv'...
substitute(): ERROR: file '/nix/store/znwyw38nvn0xskzfbjnzx3w7ba5sli29-brave-1.57.57/share/applications/brave.desktop' does not exist
error: builder for '/nix/store/ybwmpkmpdbv2kjy4f3ycgfhxgyqlhms9-firejail-wrapped-binaries.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/fsv2c8s0si8qmhhrclfw46wd0iz4qn4p-firejail-wrapped-binaries_fish-completions.drv' failedto build
error: 1 dependencies of derivation '/nix/store/b3azzi8j5hbjk128jm25scssf1kcdzrk-man-paths.drv' failed to build
error: 1 dependencies of derivation '/nix/store/9r2xsni5vhp6c85mzafk2w6bzw3wls5r-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1kz8khlkzl6g2j8d4dviad358pk8sj2i-nixos-system-nixos-23.05.3242.da5adce0ffaf.drv' failedto build
I tried to adapt your solution like this but it didn’t help: