Merge lp:~rsalveti/ubuntu-touch-session/fixing_fork_export_multimedia_dirs into lp:ubuntu-touch-session

Proposed by Ricardo Salveti
Status: Approved
Approved by: Oliver Grawert
Approved revision: 265
Proposed branch: lp:~rsalveti/ubuntu-touch-session/fixing_fork_export_multimedia_dirs
Merge into: lp:ubuntu-touch-session
Diff against target: 20 lines (+10/-3)
1 file modified
upstart-session/obexd.conf (+10/-3)
To merge this branch: bzr merge lp:~rsalveti/ubuntu-touch-session/fixing_fork_export_multimedia_dirs
Reviewer Review Type Date Requested Status
Oliver Grawert Approve
Ubuntu Phablet Team Pending
Review via email: mp+254342@code.launchpad.net

Commit message

Fixing expect fork and export common multimedia dirs

Description of the change

Fixing expect fork and export common multimedia dirs

To post a comment you must log in.
Revision history for this message
Oliver Grawert (ogra) wrote :

code looks fine, pmcgowan tested and told me it works for him, approving

review: Approve

Unmerged revisions

265. By Ricardo Salveti

Fixing expect fork and export common multimedia dirs

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'upstart-session/obexd.conf'
2--- upstart-session/obexd.conf 2015-01-13 01:25:04 +0000
3+++ upstart-session/obexd.conf 2015-03-27 03:54:52 +0000
4@@ -5,6 +5,13 @@
5 stop on session-end
6
7 respawn
8-expect daemon
9-
10-exec /usr/lib/obexd/obexd
11+expect fork
12+
13+pre-start script
14+ mkdir -p $XDG_RUNTIME_DIR/obexd
15+ for dir in Documents Downloads Music Pictures Videos; do
16+ [ -d $HOME/$dir ] && ln -s $HOME/$dir $XDG_RUNTIME_DIR/obexd/$dir
17+ done
18+end script
19+
20+exec /usr/lib/obexd/obexd -l -r $XDG_RUNTIME_DIR/obexd

Subscribers

People subscribed via source and target branches