[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problem starting applications with full path
From: |
Sebastian Reitenbach |
Subject: |
problem starting applications with full path |
Date: |
Mon, 23 May 2011 12:34:35 +0200 |
User-agent: |
SOGoMail 1.3.7 |
Hi,
on OpenBSD I have the problem, when I start applications with the full path
i.e.: /usr/local/bin/Terminal, then the application doesn't find its resources.
I used ktrace to figure out, that the Resources are searched in
/usr/local/bin/Resources/Terminal/Resources.
/usr/local/bin/Terminal is a symlink to:
../libexec/GNUstep/Terminal.app/Terminal
In /etc/GNUstep.conf, all GNUSTEP_*_APPS (not including the GNUSTEP_USER_*)
point to /usr/local/libexec.
When I run configure for GNUstep base, it also looks good, the output on the
beginning, showing all the paths, points to /usr/local/libexec.
Breakpoint 2, +[NSBundle
_bundleResourcePathsWithRootPath:subPath:localization:] (self=0x22a74fe0,
_cmd=0x22a75338, rootPath=0x8aadcec8, subPath=0x0, localization=0x0) at
NSBundle.m:1711
1711 NSLog(@"_bundleResourcePathsWithRootPath: got root path: %@", rootPath);
(gdb) bt
#0 +[NSBundle _bundleResourcePathsWithRootPath:subPath:localization:]
(self=0x22a74fe0, _cmd=0x22a75338, rootPath=0x8aadcec8, subPath=0x0,
localization=0x0) at NSBundle.m:1711
#1 0x02a61a2c in +[NSBundle _pathForResource:ofType:inRootPath:inDirectory:]
(self=0x22a74fe0, _cmd=0x22a75340, name=0x270bdf98, ext=0x270c59c4,
rootPath=0x8aadcec8, subPath=0x0) at NSBundle.m:1773
#2 0x02a61d87 in -[NSBundle pathForResource:ofType:inDirectory:]
(self=0x8aadc5c8, _cmd=0x22a751e8, name=0x270bdf98, ext=0x270c59c4,
subPath=0x0) at NSBundle.m:1838
#3 0x02a61c64 in -[NSBundle pathForResource:ofType:] (self=0x8aadc5c8,
_cmd=0x270fe5b0, name=0x270bdf98, ext=0x270c59c4) at NSBundle.m:1819
#4 0x07207fdd in +[NSImage imageNamed:] (self=0x270fe100, _cmd=0x270bf3d8,
aName=0x270bdf98) at NSImage.m:263
#5 0x0715ccca in -[NSApplication finishLaunching] (self=0x83e13988,
_cmd=0x270bf5a8) at NSApplication.m:1018
#6 0x0715f06c in -[NSApplication run] (self=0x83e13988, _cmd=0x270b4d80) at
NSApplication.m:1567
#7 0x0713cd8f in NSApplicationMain (argc=1, argv=0xcfbeb89c) at Functions.m:89
#8 0x1c00138c in gnustep_base_user_main (argc=1, argv=0xcfbeb89c) at main.m:29
#9 0x02b46adc in main (argc=1, argv=0xcfbeb89c, env=0xcfbeb8a4) at
NSProcessInfo.m:979
#10 0x1c001157 in ___start ()
#11 0x1c0010d7 in _start ()
#12 0x00000000 in ?? ()
The rootPath is /usr/local/bin/Resources/AClock, in frame 2 I see that the root
path is taken from [self bundlePath], which returns the value of the class
variable _path. I unfortunately didn't figured out, where this one gets set,
and actually why it gets set wrongly.
All is fine, when I call the application as:
/usr/local/libexec/Terminal.app/Terminal, or just Terminal, using the PATH
environment varialbe to find it in /usr/local/bin.
I run the latest releases of gnustep core, also no difference, whether I source
GNUstep.sh or not.
Why do I need to start with the full path? GWorspace Tools/Run... menu, when I
enter the Application name there, it determines the full path, and then uses
this to start the application, which ends up with this problem for me.
Anyone has a hint what could be my problem here?
Sebastian
- problem starting applications with full path,
Sebastian Reitenbach <=