Merge lp:~mterry/ubuntu-touch-session/xdg-dirs into lp:ubuntu-touch-session

Proposed by Michael Terry
Status: Merged
Approved by: Oliver Grawert
Approved revision: 188
Merged at revision: 187
Proposed branch: lp:~mterry/ubuntu-touch-session/xdg-dirs
Merge into: lp:ubuntu-touch-session
Diff against target: 18 lines (+8/-0)
1 file modified
ubuntu-touch-session (+8/-0)
To merge this branch: bzr merge lp:~mterry/ubuntu-touch-session/xdg-dirs
Reviewer Review Type Date Requested Status
Oliver Grawert Approve
Iain Lane Approve
Michał Sawicz Approve
Review via email: mp+222213@code.launchpad.net

Commit message

Set up XDG_*_DIRS for sessions' convenience. This makes it easier to append directories, without providing the default values.

Description of the change

Set up XDG_*_DIRS for sessions' convenience. This makes it easier to append directories, without providing the default values.

To post a comment you must log in.
Revision history for this message
Michał Sawicz (saviq) wrote :

Works!

review: Approve
188. By Michael Terry

Drop hard-coded ubuntu dir

Revision history for this message
Iain Lane (laney) wrote :

I visually compared this to /etc/X11/Xsession.d/60x11-common_xdg_path and it looks like it expresses the same thing to me. Thanks!

review: Approve
Revision history for this message
Oliver Grawert (ogra) wrote :

looks fine

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntu-touch-session'
2--- ubuntu-touch-session 2014-05-27 10:42:41 +0000
3+++ ubuntu-touch-session 2014-06-05 15:26:04 +0000
4@@ -24,6 +24,14 @@
5 fi
6 fi
7
8+# Set up xdg dirs
9+[ -z "$XDG_CONFIG_DIRS" ] && export XDG_CONFIG_DIRS=/etc/xdg
10+[ -z "$XDG_DATA_DIRS" ] && export XDG_DATA_DIRS=/usr/local/share:/usr/share
11+if [ -n "$DESKTOP_SESSION" ]; then
12+ export XDG_CONFIG_DIRS=/etc/xdg/xdg-$DESKTOP_SESSION:$XDG_CONFIG_DIRS
13+ export XDG_DATA_DIRS=/usr/share/$DESKTOP_SESSION:$XDG_DATA_DIRS
14+fi
15+
16 export GRID_UNIT_PX=${GRID_UNIT_PX}
17 export QTWEBKIT_DPR=${QTWEBKIT_DPR}
18 export NATIVE_ORIENTATION=${NATIVE_ORIENTATION}

Subscribers

People subscribed via source and target branches