Skip to content

Add admin path for installing quickshell configuration directories: #416

@hboetes

Description

@hboetes

Thanks for creating quickshell, I'm a very happy user.

I install noctalia-shell in /usr/local/share/quickshell/noctalia-shell/, because I want to share setups with other users so they don't have to maintain updates. It's done automatically with the system updates.

Since quick-shell by default does not search in /usr/share/quickshell, etc. I applied the following minimal changes to the source to enable that.

diff --git a/src/launch/command.cpp b/src/launch/command.cpp
index 94fe239..18b8b2b 100644
--- a/src/launch/command.cpp
+++ b/src/launch/command.cpp
@@ -58,6 +58,10 @@ QList<QString> configBaseDirs() {
 		dir.append("/quickshell");
 	}
 
+	// Extra admin-installed locations, searched *after* user config
+	configDirs.append("/usr/share/quickshell");
+	configDirs.append("/usr/local/share/quickshell");
+
 	return configDirs;
 }

I'll happily create a PR, if you agree with the changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions