/usr/share/gaupol/run is in gaupol 0.26-2.
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 | #! /usr/bin/python3
# -*- coding: utf-8 -*-
import os
import sys
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))
def running_from_source():
# '__file__' attribute is not available when frozen.
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)
if running_from_source():
prepare_paths()
import gaupol
gaupol.main.main(sys.argv[1:])
|