summarylogtreecommitdiffstats
path: root/directories.patch
blob: f0814b3c800e2a0c869d002b905fa9ace7f77a7d (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
43
44
45
46
47
48
49
50
51
52
# Just hardcoded path for everyday Arch use

--- directories.py.orig	2015-12-24 14:50:26.516671121 -0700
+++ directories.py	2015-12-24 14:50:43.963338308 -0700
@@ -83,7 +83,10 @@
     #     '''
     #
     # else:
-    dataDir = os.getcwdu()
+    if sys.platform.startswith("linux"):
+        dataDir = "/usr/share/mcedit"
+    else:
+        dataDir = os.getcwdu()
     if len(path) > 0:
         return os.path.join(dataDir, path)
     return dataDir

--- albow/resource.py.orig	2012-03-15 19:48:27.844000304 +0100
+++ albow/resource.py	2012-03-15 19:52:56.671251316 +0100
@@ -73,6 +73,8 @@
 
 def get_font(size, *names, **kwds):
     path = _resource_path("fonts", names, **kwds)
+    if sys.platform.startswith("linux"):
+        path = os.path.join("/usr/share/fonts/TTF", *names)
     key = (path, size)
     font = font_cache.get(key)
     if not font:

--- mcedit.py.orig	2015-08-12 07:12:26.000000000 -0600
+++ mcedit.py	2015-12-24 16:06:54.623474504 -0700
@@ -38,6 +38,8 @@
 #
 if sys.platform == "darwin":
     logfile = os.path.expanduser("~/Library/Logs/mcedit.log")
+elif sys.platform.startswith("linux"):
+    logfile = os.path.expanduser('~/.mcedit/mcedit.log')
 else:
     logfile = os.path.join(os.getcwdu(), logfile)
 fh = logging.FileHandler(logfile, mode="w")

--- splash.py.orig	2016-01-03 17:30:26.530655811 -0600
+++ splash.py	2016-01-03 17:32:52.887326839 -0600
@@ -26,7 +26,7 @@
     screen.blit(splash, (0, 0))
 except IOError:
     try:
-        font = pygame.font.Font(open(os.path.join(cur_dir, 'fonts', 'DejaVuSans-Bold.ttf'), 'rb'), 48)
+        font = pygame.font.Font(open(os.path.join("/usr/share/fonts/TTF", 'DejaVuSans-Bold.ttf'), 'rb'), 48)
         buf = font.render("MCEDit is loading...", True, (128, 128, 128))
         screen = pygame.display.set_mode((buf.get_width() + 20, buf.get_height() + 20), pygame.NOFRAME)
         screen.blit(buf, (10, 10))