Description: Use paths defined in unhide.install
Author: Fukui Daichi <a.dog.will.talk@akane.waseda.jp>
Forwarded: not-needed
Last-Update: 2025-03-20
---
 unhideGui.py | 18 +++---------------
 1 file changed, 3 insertions(+), 15 deletions(-)

diff --git a/unhideGui.py b/unhideGui.py
index 13f986b..70571b3 100755
--- a/unhideGui.py
+++ b/unhideGui.py
@@ -460,21 +460,9 @@ screen_width = root.winfo_screenwidth()
 screen_height = root.winfo_screenheight()
 root.geometry('+%d+%d' % (screen_width/3, screen_height/3))
 
-# look for unhide path
-# we prefer the local version
-if os.path.exists("./unhide-linux") :
-    unhPath = "./unhide-linux "
-elif os.path.exists("./sbin/unhide-linux") :
-    unhPath = "./sbin/unhide-linux "
-else :
-    unhPath = "./usr/sbin/unhide-linux "
-
-if os.path.exists("./unhide-tcp") :
-    unhtcpPath = "./unhide-tcp "
-elif os.path.exists("./sbin/unhide-tcp") :
-    unhtcpPath = "./sbin/unhide-tcp "
-else :
-    unhtcpPath = "./usr/sbin/unhide-tcp "
+unhPath = "/usr/sbin/unhide-linux "
+
+unhtcpPath = "/usr/sbin/unhide-tcp "
 
 
 root.update()
