/usr/share/gaupol/run is in gaupol 0.19.2-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #!/usr/bin/python
import gtk
import os
import sys
def get_running_from_source():
# '__file__' attribute is not available with py2exe.
if not "__file__" in globals(): return False
parent = os.path.dirname(os.path.abspath(__file__))
path = os.path.join(parent, "..", "data", "gaupol.desktop.in")
return os.path.isfile(path)
def prepare_paths():
# Add source root directory to sys.path.
parent = os.path.dirname(os.path.abspath(__file__))
path = os.path.join(parent, "..")
sys.path.insert(0, os.path.abspath(path))
# Add icon directory to icon theme search path.
icon_theme = gtk.icon_theme_get_default()
path = os.path.join(parent, "..", "data", "icons")
icon_theme.append_search_path(os.path.abspath(path))
if get_running_from_source():
prepare_paths()
import gaupol
gaupol.main.main(sys.argv[1:])
|