~attente/unity-gtk-module/1258669

« back to all changes in this revision

Viewing changes to data/unity-gtk-module.conf

  • Committer: Tarmac
  • Author(s): Ted Gould
  • Date: 2013-07-12 18:15:26 UTC
  • mfrom: (296.2.5 upstart-job)
  • Revision ID: tarmac-20130712181526-ugg46rf6yp9ufwt2
Converts from using Xsession to using Upstart.

Approved by William Hua, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# If not found (removed + not purged), don't do anything
2
 
for file in /usr/lib/*/gtk-*/modules/libunity-gtk-module.so; do
3
 
    [ -e "$file" ] || continue
 
1
description "Unity GTK Module Environment variables"
 
2
 
 
3
start on starting dbus
 
4
 
 
5
script
4
6
    if [ -n "$GTK_MODULES" ]
5
7
    then
6
8
      GTK_MODULES="$GTK_MODULES:unity-gtk-module"
13
15
      UBUNTU_MENUPROXY=1
14
16
    fi
15
17
 
16
 
    export GTK_MODULES
17
 
    export UBUNTU_MENUPROXY
18
 
 
19
 
    return
20
 
done
 
18
    initctl set-env --global GTK_MODULES=$GTK_MODULES
 
19
    initctl set-env --global UBUNTU_MENUPROXY=$UBUNTU_MENUPROXY
 
20
end script