Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From a63a4b6de9ba730e10b54f4b5ce454edb10c7c39 Mon Sep 17 00:00:00 2001
|
|
From: dyrnade <gurescicem@gmail.com>
|
|
Date: Wed, 1 Feb 2023 22:28:02 +0100
|
|
Subject: [PATCH] fix application dirs
|
|
|
|
---
|
|
cprime/systemxdg.cpp | 7 ++++---
|
|
1 file changed, 4 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/cprime/systemxdg.cpp b/cprime/systemxdg.cpp
|
|
index 4c40d4c..5dbb6ff 100644
|
|
--- a/cprime/systemxdg.cpp
|
|
+++ b/cprime/systemxdg.cpp
|
|
@@ -372,9 +372,10 @@ void SystemXdgMime::setApplicationAsDefault(QString appFileName, QString mimetyp
|
|
|
|
SystemXdgMime::SystemXdgMime()
|
|
{
|
|
- appsDirs << QDir::home().filePath(".local/share/applications/");
|
|
- appsDirs << QDir::root().filePath("usr/local/share/applications/") << QDir::root().filePath("usr/share/applications/");
|
|
- appsDirs << QDir::root().filePath("usr/share/applications/kde4/") << QDir::root().filePath("usr/share/gnome/applications/");
|
|
+ appsDirs << QDir::home().filePath(".nix-profile/share/applications/");
|
|
+ appsDirs << "/run/current-system/sw/share/applications/";
|
|
+ appsDirs << "/run/current-system/sw/share/applications/kde4/";
|
|
+ appsDirs << "/run/current-system/sw/share/gnome/applications/";
|
|
}
|
|
|
|
|
|
--
|
|
2.39.0
|
|
|
|
|