Use gobject set_prgname to make gnome shell happy.

This commit is contained in:
Cole Robinson 2009-11-10 12:08:43 -05:00
parent 07ccae31d3
commit ab0491c39d
1 changed files with 4 additions and 0 deletions

View File

@ -300,6 +300,10 @@ def main():
dbus.glib.threads_init()
import dbus.service
# Set program name for gnome shell
if hasattr(gobject, "set_prgname"):
gobject.set_prgname(appname)
# Specifically init config/gconf before the fork, so that pam
# doesn't think we closed the app, therefor robbing us of
# display access