~michael-sheldon/ubuntu-touch-session/fix-1659388

« back to all changes in this revision

Viewing changes to etc/profile.d/upstart-phablet.sh

  • Committer: Bileto Bot
  • Author(s): Michael Terry, Michael Terry
  • Date: 2016-12-06 13:46:30 UTC
  • mfrom: (289.3.6 pulse-in-snap)
  • Revision ID: ci-train-bot@canonical.com-20161206134630-cjla6sve2nc13zyh
Support running inside a snap (without breaking non-snap runs). (LP: #1629009, #1645797, #1645833)

Approved by: Łukasz Zemczak

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
    uid=$(getent passwd "$USER"|cut -d: -f3)
5
5
    export XDG_RUNTIME_DIR="/run/user/$uid"
6
6
 
7
 
    export UPSTART_SESSION=$(/sbin/initctl list-sessions | awk '{ print $NF; quit }')
 
7
    export UPSTART_SESSION=$(initctl list-sessions | awk '{ print $NF; quit }')
8
8
fi