1 From a63a4b6de9ba730e10b54f4b5ce454edb10c7c39 Mon Sep 17 00:00:00 2001
2 From: dyrnade <gurescicem@gmail.com>
3 Date: Wed, 1 Feb 2023 22:28:02 +0100
4 Subject: [PATCH] fix application dirs
7 cprime/systemxdg.cpp | 7 ++++---
8 1 file changed, 4 insertions(+), 3 deletions(-)
10 diff --git a/cprime/systemxdg.cpp b/cprime/systemxdg.cpp
11 index 4c40d4c..5dbb6ff 100644
12 --- a/cprime/systemxdg.cpp
13 +++ b/cprime/systemxdg.cpp
14 @@ -372,9 +372,10 @@ void SystemXdgMime::setApplicationAsDefault(QString appFileName, QString mimetyp
16 SystemXdgMime::SystemXdgMime()
18 - appsDirs << QDir::home().filePath(".local/share/applications/");
19 - appsDirs << QDir::root().filePath("usr/local/share/applications/") << QDir::root().filePath("usr/share/applications/");
20 - appsDirs << QDir::root().filePath("usr/share/applications/kde4/") << QDir::root().filePath("usr/share/gnome/applications/");
21 + appsDirs << QDir::home().filePath(".nix-profile/share/applications/");
22 + appsDirs << "/run/current-system/sw/share/applications/";
23 + appsDirs << "/run/current-system/sw/share/applications/kde4/";
24 + appsDirs << "/run/current-system/sw/share/gnome/applications/";