Created
February 17, 2010 13:57
-
-
Save jldupont/306625 to your computer and use it in GitHub Desktop.
Daemonize with dependency on glib/dbus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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