File: click-hook-wrapper

package info (click to toggle)
lomiri-push-service 0.100.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,912 kB
  • sloc: python: 936; ansic: 288; makefile: 96; sh: 61
file content (16 lines) | stat: -rwxr-xr-x 529 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# PackageKit clears all environment variables, so we get the UID and then read
# in $DBUS_SESSION_BUS_ADDRESS from /run/user/$UID/dbus-session

USERID=`id -u`

if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
  [ -e /run/user/$USERID/dbus-session ] && . /run/user/$USERID/dbus-session
  [ -n "$DBUS_SESSION_BUS_ADDRESS" ] && export DBUS_SESSION_BUS_ADDRESS
fi

status=0
/usr/lib/lomiri-push-service/click-hook-build-helper-db || status=1
/usr/lib/lomiri-push-service/click-hook-populate-settings || status=1
exit $status