#! /bin/sh /usr/share/dpatch/dpatch-run
## 20_paths.dpatch by Yavor Doganov <yavor@gnu.org>
## Forwarded: no
## This patch contains `x-terminal-emulator', which is specific to Debian.
## DP: Adjust some essential paths.
@DPATCH@
diff -urNad adun.app-0.8.2~/UL/AdunServer/main.m adun.app-0.8.2/UL/AdunServer/main.m
--- adun.app-0.8.2~/UL/AdunServer/main.m 2007-07-31 16:28:35.000000000 +0300
+++ adun.app-0.8.2/UL/AdunServer/main.m 2008-01-14 00:35:16.000000000 +0200
@@ -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"];
diff -urNad adun.app-0.8.2~/UL/AdunServer/ViewController.m adun.app-0.8.2/UL/AdunServer/ViewController.m
--- adun.app-0.8.2~/UL/ViewController.m 2008-01-14 00:31:57.000000000 +0200
+++ adun.app-0.8.2/UL/ViewController.m 2008-01-14 00:32:09.000000000 +0200
@@ -84,7 +84,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"];
@@ -434,8 +433,7 @@
stringForKey: @"AdunServerPath"];
launchPath = [launchPath stringByAppendingPathComponent: @"AdunServer"];
#else
- launchPath = [NSHomeDirectory()
- stringByAppendingPathComponent: @"GNUstep/Tools/AdunServer"];
+ launchPath = @"/usr/bin/AdunServer";
#endif
NS_DURING
{