summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorMichael Hoang <Enzime@users.noreply.github.com>2024-05-21 07:21:31 +1000
committerGitHub <noreply@github.com>2024-05-21 07:21:31 +1000
commit8bf083c992e2bc0a8c07f5860d3866739b698883 (patch)
treed6c4265c778b4fbd393e9f1141fc10a91375c082 /modules/system
parente1cacc63e6e324ae95e65e8aaea62dec74686208 (diff)
parent93913d14a310efc40fc84d58d278b96c73c37c65 (diff)
Merge pull request #950 from rmgpinto/persistent-others-file-directory-tile
Add file or directory tile to Dock persistent others
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/defaults/dock.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/defaults/dock.nix b/modules/system/defaults/dock.nix
index 8c9741c..1e8797f 100644
--- a/modules/system/defaults/dock.nix
+++ b/modules/system/defaults/dock.nix
@@ -146,7 +146,7 @@ in {
apply = value:
if !(isList value)
then value
- else map (folder: { tile-data = { file-data = { _CFURLString = folder; _CFURLStringType = 15; }; }; }) value;
+ else map (folder: { tile-data = { file-data = { _CFURLString = "file://" + folder; _CFURLStringType = 15; }; }; tile-type = if strings.hasInfix "." (last (splitString "/" folder)) then "file-tile" else "directory-tile"; }) value;
};
system.defaults.dock.show-process-indicators = mkOption {