nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1From a63a4b6de9ba730e10b54f4b5ce454edb10c7c39 Mon Sep 17 00:00:00 2001
2From: dyrnade <gurescicem@gmail.com>
3Date: Wed, 1 Feb 2023 22:28:02 +0100
4Subject: [PATCH] fix application dirs
5
6---
7 cprime/systemxdg.cpp | 7 ++++---
8 1 file changed, 4 insertions(+), 3 deletions(-)
9
10diff --git a/cprime/systemxdg.cpp b/cprime/systemxdg.cpp
11index 4c40d4c..5dbb6ff 100644
12--- a/cprime/systemxdg.cpp
13+++ b/cprime/systemxdg.cpp
14@@ -343,9 +343,10 @@
15
16 SystemXdgMime::SystemXdgMime()
17 {
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/";
25 }
26
27
28--
292.39.0
30
31