Skip to content

Instantly share code, notes, and snippets.

@jldupont
Created February 17, 2010 13:57
Show Gist options
  • Save jldupont/306625 to your computer and use it in GitHub Desktop.
Save jldupont/306625 to your computer and use it in GitHub Desktop.
Daemonize with dependency on glib/dbus
#!/usr/bin/bash
#
# @author: Jean-Lou Dupont
#
# need to adjust DISPLAY setting before daemonize
# of application relying on gobject/glib/dbus
#
## Example:
export DISPLAY=:0.0
## Prepare application context directory
mkdir -p ~/.phidgetsdbus
## Launch application as daemon
python phidgetsdbus.py $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment