-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorg.freedesktop.xdg.basedir.plist
35 lines (32 loc) · 1.33 KB
/
org.freedesktop.xdg.basedir.plist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.freedesktop.xdg.basedir</string>
<key>ServiceDescription</key>
<string>FreeDesktop XDG BaseDir specification for Mac ($Id$)</string>
<key>RunAtLoad</key>
<true/>
<key>Program</key>
<string>/bin/sh</string>
<key>AbandonProcessGroup</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>-pc</string>
<string>#!/bin/sh -p
launchctl setenv XDG_CONFIG_HOME "${XDG_CONFIG_HOME:=$HOME/Library/Preferences}" &
launchctl setenv XDG_RUNTIME_DIR "${XDG_RUNTIME_DIR:=${TMPDIR:-$HOME/.temp}}" &
launchctl setenv XDG_DATA_HOME "${XDG_DATA_HOME:=$HOME/Library/Application Support}" &
launchctl setenv XDG_STATE_HOME "${XDG_STATE_HOME:=$HOME/Library/Saved Application State}" &
DUCD="$(getconf DARWIN_USER_CACHE_DIR)"
[[ -d "$DUCD" ]] || DUCD=~/Library/Caches
launchctl setenv XDG_CACHE_HOME "${XDG_CACHE_HOME:=$DUCD}" &
launchctl setenv XDG_CONFIG_DIRS "/Library/Preferences:/Network/Library/Preferences:/etc/local:/etc/xdg:/etc" &
launchctl setenv XDG_DATA_DIRS "/Library/Application Support:/usr/local/share:/Network/Library/Application Support:/usr/share" &
wait </string>
</array>
</dict>
</plist>