blob: 08214c30a887c76f6a9575959ef42b5332b1ab12 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
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
|