summaryrefslogtreecommitdiff
path: root/x11-misc/xplanetFX/files/xplanetFX-2.6.4-gentoo-path.patch
blob: 0777e076c831133c7bd2acceaabcf6b7b7da916e (plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
diff -Naur usr.orig/bin/xplanetFX usr/bin/xplanetFX
--- usr.orig/bin/xplanetFX	2015-03-05 19:58:41.000000000 +0100
+++ usr/bin/xplanetFX	2015-03-16 14:28:28.235256123 +0100
@@ -115,7 +115,7 @@
     WGETPROXY="-e use_proxy=on -e http_proxy="$PROXY
 fi
 
-if which gsed; then
+if which gsed > /dev/null 2>&1; then
     SEDEXE='gsed'
 else
     SEDEXE='sed'
diff -Naur usr.orig/share/xplanetFX/xplanetFX_gtk usr/share/xplanetFX/xplanetFX_gtk
--- usr.orig/share/xplanetFX/xplanetFX_gtk	2015-02-17 16:55:12.000000000 +0100
+++ usr/share/xplanetFX/xplanetFX_gtk	2015-03-16 14:28:53.147271051 +0100
@@ -44,10 +44,7 @@
 
 gobject.threads_init()
 
-basedir = os.path.dirname(os.path.realpath(__file__))
-if not os.path.exists(os.path.join(basedir, "xplanetFX_gtk.py")):
-    if os.path.exists(os.path.join(os.getcwd(), "xplanetFX_gtk.py")):
-        basedir = os.getcwd()
+basedir = "/usr/share/xplanetFX"
 sys.path.insert(0, basedir)
 
 class GUI():
diff -Naur usr.orig/share/xplanetFX/xplanetFX_tray usr/share/xplanetFX/xplanetFX_tray
--- usr.orig/share/xplanetFX/xplanetFX_tray	2014-05-08 01:46:44.000000000 +0200
+++ usr/share/xplanetFX/xplanetFX_tray	2015-03-16 14:29:20.634287466 +0100
@@ -27,10 +27,7 @@
     
 gobject.threads_init()
 
-basedir = os.path.dirname(os.path.realpath(__file__))
-if not os.path.exists(os.path.join(basedir, "xplanetFX_gtk.py")):
-    if os.path.exists(os.path.join(os.getcwd(), "xplanetFX_gtk.py")):
-        basedir = os.getcwd()
+basedir = "/usr/share/xplanetFX"
 sys.path.insert(0, basedir)