Package: adun.app / 0.81-9

20_paths.patch Patch series | download
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
Name: 20_paths.patch
Author: Yavor Doganov <yavor@gnu.org>
Forwarded: no
Description: This patch contains x-terminal-emulator, which is specific to Debian.
 Adjust some essential paths.

--- Adun-0.81.orig/UL/AdunServer/main.m
+++ Adun-0.81/UL/AdunServer/main.m
@@ -39,7 +39,7 @@
 	[defaults setObject: [NSHomeDirectory() stringByAppendingPathComponent: @".adun/AdunServer.log"]
 		     forKey: @"LogFile"];
 #else
-	adunCorePath = [NSHomeDirectory() stringByAppendingPathComponent: @"GNUstep/Tools"];
+	adunCorePath = @"/usr/bin";
 	[defaults setObject: adunCorePath forKey: @"AdunCorePath"];
 	[defaults setObject: [NSHomeDirectory() stringByAppendingPathComponent: @"adun/AdunServer.log"]
 		forKey: @"LogFile"];
--- Adun-0.81.orig/UL/ViewController.m
+++ Adun-0.81/UL/ViewController.m
@@ -82,7 +82,7 @@
 #ifdef GNUSTEP	
 	[defaults setObject: [NSHomeDirectory() stringByAppendingPathComponent: @"adun/UL.log"]
 		forKey: @"LogFile"];
-	[defaults setObject: @"gedit" forKey: @"Editor"];
+	[defaults setObject: @"x-terminal-emulator -e editor" forKey: @"Editor"];
 #else	
 	[defaults setObject: [NSHomeDirectory() stringByAppendingPathComponent: @".adun/UL.log"]
 		     forKey: @"LogFile"];
@@ -444,8 +444,7 @@
 				stringForKey: @"AdunServerPath"];
 		launchPath = [launchPath stringByAppendingPathComponent: @"AdunServer"];		
 #else				
-		launchPath = [NSHomeDirectory() 
-				stringByAppendingPathComponent: @"GNUstep/Tools/AdunServer"];
+		launchPath = @"/usr/bin/AdunServer";
 #endif		
 		NS_DURING
 		{