File tree 3 files changed +13
-8
lines changed
3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ KCM.SimpleKCM {
15
15
property string presetsDir: StandardPaths .writableLocation (
16
16
StandardPaths .HomeLocation ).toString ().substring (7 ) + " /.config/panel-colorizer/presets"
17
17
property string cratePresetsDirCmd: " mkdir -p " + presetsDir
18
- property string presetsBuiltinDir: Utils . getWidgetRootDir () + " ui /presets/"
19
-
20
- property string listUserPresetsCmd: " find " + presetsDir + " -mindepth 1 -prune -type d -print0 | while IFS= read -r -d '' preset; do echo u: \" $preset \" ; done | sort "
21
- property string listBuiltinPresetsCmd: " find " + presetsBuiltinDir + " -mindepth 1 -prune -type d -print0 | while IFS= read -r -d '' preset; do echo b: \" $preset \" ; done | sort "
18
+ property string presetsBuiltinDir: Qt . resolvedUrl ( " . /presets" ). toString (). substring ( 7 ) + " /"
19
+ property string toolsDir : Qt . resolvedUrl ( " ./tools " ). toString (). substring ( 7 ) + " / "
20
+ property string listUserPresetsCmd: " ' " + toolsDir + " list_presets.sh' ' " + presetsDir + " ' "
21
+ property string listBuiltinPresetsCmd: " ' " + toolsDir + " list_presets.sh' ' " + presetsBuiltinDir + " ' "
22
22
property string listPresetsCmd: listBuiltinPresetsCmd+ " ;" + listUserPresetsCmd
23
23
24
24
property string cfg_presetAutoloading
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ KCM.SimpleKCM {
16
16
property string presetsDir: StandardPaths .writableLocation (
17
17
StandardPaths .HomeLocation ).toString ().substring (7 ) + " /.config/panel-colorizer/presets/"
18
18
property string cratePresetsDirCmd: " mkdir -p '" + presetsDir + " '"
19
- property string presetsBuiltinDir: Utils . getWidgetRootDir () + " ui /presets/"
20
-
21
- property string listUserPresetsCmd: " find " + presetsDir + " -mindepth 1 -prune -type d -print0 | while IFS= read -r -d '' preset; do echo u: \" $preset \" ; done | sort "
22
- property string listBuiltinPresetsCmd: " find " + presetsBuiltinDir + " -mindepth 1 -prune -type d -print0 | while IFS= read -r -d '' preset; do echo b: \" $preset \" ; done | sort "
19
+ property string presetsBuiltinDir: Qt . resolvedUrl ( " . /presets" ). toString (). substring ( 7 ) + " /"
20
+ property string toolsDir : Qt . resolvedUrl ( " ./tools " ). toString (). substring ( 7 ) + " / "
21
+ property string listUserPresetsCmd: " ' " + toolsDir + " list_presets.sh' ' " + presetsDir + " ' "
22
+ property string listBuiltinPresetsCmd: " ' " + toolsDir + " list_presets.sh' ' " + presetsBuiltinDir + " ' "
23
23
property string listPresetsCmd: listBuiltinPresetsCmd+ " ;" + listUserPresetsCmd
24
24
property string spectaclePreviewCmd: " spectacle -bn -r -o "
25
25
property var presets: ({})
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ PRESETS_DIR=" $1 "
4
+
5
+ find " $PRESETS_DIR " -mindepth 1 -prune -type d -print0 | while IFS= read -r -d ' ' preset; do echo b:" $preset " ; done | sort
You can’t perform that action at this time.
0 commit comments