nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 21 lines 647 B view raw
1diff --git a/fehlstart.c b/fehlstart.c 2index b33c8ff..ce467b5 100644 3--- a/fehlstart.c 4+++ b/fehlstart.c 5@@ -802,6 +802,16 @@ static void* update_all(void* user_data) 6 add_launchers(APPLICATIONS_DIR_0); 7 add_launchers(APPLICATIONS_DIR_1); 8 add_launchers(USER_APPLICATIONS_DIR); 9+ const char* nixprofiles = getenv("NIX_PROFILES"); 10+ if(nixprofiles != NULL) { 11+ const char* pch = strtok(nixprofiles, " "); 12+ while (pch != NULL) 13+ { 14+ char* nix_dir = g_strconcat(pch, "/share/applications", NULL); 15+ add_launchers(nix_dir); 16+ pch = strtok(NULL, " "); 17+ } 18+ } 19 return NULL; 20 } 21