diff --git a/src/manjaro_hello.py b/src/manjaro_hello.py index 54e0fe8..6db32e5 100644 --- a/src/manjaro_hello.py +++ b/src/manjaro_hello.py @@ -17,13 +17,13 @@ class ManjaroHello(): self.app = "manjaro-hello" # Path vars - self.current_folder = os.getcwd() + "/" - if self.current_folder == "/usr/bin/": + if os.path.basename(sys.argv[0]) == self.app: self.data_path = "/usr/share/" + self.app + "/" self.locale_path = "/usr/share/locale/" self.ui_path = "/usr/share/" + self.app + "/" self.desktop_path = "/usr/share/applications/" + self.app + ".desktop" else: + self.current_folder = os.getcwd() + "/" self.data_path = "data/" self.locale_path = "locale/" self.ui_path = "ui/"