~ubuntu-branches/ubuntu/saucy/usb-creator/saucy

« back to all changes in this revision

Viewing changes to debian/usb-creator-gtk.conf

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2013-03-20 09:01:26 UTC
  • Revision ID: package-import@ubuntu.com-20130320090126-z5sjkfk0etyxu9eh
Tags: 0.2.47
Purge the upstart job.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# usb-creator-gtk
 
2
 
 
3
# This really should be enchanced user session job
 
4
# and not a system one!
 
5
# Then the hacks to get DISPLAY & user can go away.
 
6
# Also the udev test are ugly =/
 
7
 
 
8
author "Dmitrijs Ledkovs <xnox@ubuntu.com>"
 
9
 
 
10
start on (
 
11
      usb-device-added ID_VENDOR_ID=18d1 ID_MODEL_ID=4e40 or
 
12
      usb-device-added ID_VENDOR_ID=18d1 ID_MODEL_ID=d001   
 
13
)
 
14
 
 
15
task
 
16
 
 
17
script
 
18
 
 
19
test -x /usr/bin/fastboot || exit 0
 
20
test -n "`/usr/bin/fastboot devices`" || exit 0
 
21
test -f /usr/share/acpi-support/power-funcs || exit 0
 
22
. /usr/share/acpi-support/power-funcs
 
23
 
 
24
getXconsole
 
25
 
 
26
test -n "$XAUTHORITY" && exit 0
 
27
test "$user" = "lightdm" && exit 0
 
28
 
 
29
sudo -u $user DISPLAY="$DISPLAY" usb-creator-gtk --fastboot
 
30
 
 
31
end script