File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -276,6 +276,8 @@ pub enum PathSource {
276
276
Local ,
277
277
LocalDesktop ,
278
278
LocalFlatpak ,
279
+ LocalNix ,
280
+ Nix ,
279
281
System ,
280
282
SystemFlatpak ,
281
283
SystemSnap ,
@@ -295,6 +297,10 @@ pub fn default_paths() -> Vec<(PathSource, PathBuf)> {
295
297
PathSource :: Local ,
296
298
home_dir. join( ".local/share/applications" ) ,
297
299
) ,
300
+ (
301
+ PathSource :: LocalNix ,
302
+ home_dir. join( ".nix-profile/share/applications" ) ,
303
+ ) ,
298
304
(
299
305
PathSource :: SystemSnap ,
300
306
PathBuf :: from( "/var/lib/snapd/desktop/applications" ) ,
@@ -303,6 +309,10 @@ pub fn default_paths() -> Vec<(PathSource, PathBuf)> {
303
309
PathSource :: SystemFlatpak ,
304
310
PathBuf :: from( "/var/lib/flatpak/exports/share/applications" ) ,
305
311
) ,
312
+ (
313
+ PathSource :: Nix ,
314
+ PathBuf :: from( "/nix/var/nix/profiles/default/share/applications" ) ,
315
+ ) ,
306
316
( PathSource :: System , PathBuf :: from( "/usr/share/applications" ) ) ,
307
317
]
308
318
}
You can’t perform that action at this time.
0 commit comments