Default applications: Difference between revisions
Note the way to list all .desktop-files |
|||
Line 15: | Line 15: | ||
}; | }; | ||
}; | }; | ||
</syntaxhighlight>In case a program is missing a .desktop-file, the following example adds a <code>librewolf.desktop</code> file to the MIME database with the specific binary path.<syntaxhighlight lang="nix"> | </syntaxhighlight> | ||
To list all .desktop-files, run | |||
<pre> | |||
ls /run/current-system/sw/share/applications # for global packages | |||
ls ~/.nix-profile/share/applications # for home-manager packages | |||
</pre> | |||
In case a program is missing a .desktop-file, the following example adds a <code>librewolf.desktop</code> file to the MIME database with the specific binary path.<syntaxhighlight lang="nix"> | |||
home-manager.users.myuser = { | home-manager.users.myuser = { | ||
xdg.desktopEntries.librewolf = { | xdg.desktopEntries.librewolf = { |