Re: [Fink-users] (slightly OT) Launching fink installed apps from Apple X11 applications menu

2003-06-19 Thread Peter O'Gorman
On Thursday, June 19, 2003, at 09:10  AM, Alexander K. Hansen wrote:

I don't think this will do the trick.  The PATH from sourcing
/sw/bin/init.sh in .xinitrc doesn't get passed on to the Apple X11
Applications menu.  That's why the documents say to source it for each 
entry
(I did an experiment to verify this).
Indeed, I didn't know this, I guess I'll make a new gnucash rev this 
weekend to solve the issue and allow gnucash to be launched as 
/sw/bin/gnucash from the applications menu.

Sorry for shouting about setting paths, when it is apparently 
impossible to do so for the X11.app Applications menu.

Peter



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] (slightly OT) Launching fink installed apps from Apple X11 applications menu

2003-06-19 Thread David R. Morrison
Adrian Simmons <[EMAIL PROTECTED]> wrote:

[snip]
> 
> Blah! I figured it out. It's working.
> In the applications menu I'd entered:
> ./sw/bin/init.sh ; gnucash
> 
> It should be:
> .  /sw/bin/init.sh ; gnucash
> That space after the period is essential :(
> 
> Since I tried this after reading the fink docs I had a surf around and 
> the typo is a on the site too, so it wasn't my fault :) 
> 
> 
>  From , section 
> 3.2 Apple's Binaries: 
> 
> "Applications that require calling other programs under /sw for some of 
> their functions need special treatment to get them to work when called 
> from the Application menu.  Instead of putting just the full path to 
> the filename, e.g. 
> 
> /sw/bin/emacs
> 
> you'll want to use something like the following:
> ./sw/bin/init.sh ; emacs
> 
> This makes sure that the application has the correct PATH information. 
> You can use this syntax for any Fink-installed application" 
> 
> 
> That emacs line needs changing. I'm about to submit a bug report on 
> sf.net under the website category. 

Thanks for reporting this.  I've just fixed it.

  -- Dave




---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] (slightly OT) Launching fink installed apps from Apple X11 applications menu

2003-06-19 Thread Adrian Simmons
 Alexander Hansen wrote:
Verify that /sw/bin/init.sh actually exists on your
system, and if it does, make sure that it hasn't been corrupted
somehow.
It definitely exists, and it appears to be fine.

Peter O'Gorman wrote:
It does not launch from the menu because you do not have /sw/bin in
your path.
Oh, but it is, it's there twice, which suggests I have some tidying to 
do, but it is there: 

adrian% echo $path
/sw/bin /sw/sbin /bin /sbin /usr/bin /usr/sbin /usr/X11R6/bin 
/usr/X11R6/bin /sw/bin 

Of course from what Alexander said, just because Terminal has it in its 
path that doesn't mean Apple's X11 has it in its path. 

I just did "launch /Applications/X11.app" in terminal and then used the 
X11 applications menu and gnucash launched, but it won't work when I 
launch X11.app from the dock. So yes, this appears to be a path 
problem, but not such a simple one. 

Blah! I figured it out. It's working.
In the applications menu I'd entered:
./sw/bin/init.sh ; gnucash
It should be:
.  /sw/bin/init.sh ; gnucash
That space after the period is essential :(
Since I tried this after reading the fink docs I had a surf around and 
the typo is a on the site too, so it wasn't my fault :) 

From , section 
3.2 Apple's Binaries: 

"Applications that require calling other programs under /sw for some of 
their functions need special treatment to get them to work when called 
from the Application menu.  Instead of putting just the full path to 
the filename, e.g. 

/sw/bin/emacs

you'll want to use something like the following:
./sw/bin/init.sh ; emacs
This makes sure that the application has the correct PATH information. 
You can use this syntax for any Fink-installed application" 

That emacs line needs changing. I'm about to submit a bug report on 
sf.net under the website category. 

Thanks for your help.

--
Adrian
[EMAIL PROTECTED]
IM ID: perlucida


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users


RE: [Fink-users] (slightly OT) Launching fink installed apps from Apple X11 applications menu

2003-06-18 Thread Alexander K. Hansen
I don't think this will do the trick.  The PATH from sourcing
/sw/bin/init.sh in .xinitrc doesn't get passed on to the Apple X11
Applications menu.  That's why the documents say to source it for each entry
(I did an experiment to verify this).

I vaguely remember that Martin Costabel had a workaround which involved
editing a script within the X11.app bundle, but I don't know the details.

Alexander K. Hansen
Associate Research Scientist, Columbia University
visiting MIT Plasma Science and Fusion Center
Levitated Dipole Experiment
175 Albany Street, NW17-219
Cambridge, MA  02139-4213
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter O'Gorman
Sent: Wednesday, June 18, 2003 7:22 PM
To: Alexander Hansen
Cc: [EMAIL PROTECTED]; fink users
Subject: Re: [Fink-users] (slightly OT) Launching fink installed apps from
Apple X11 applications menu


On Thursday, June 19, 2003, at 01:51  AM, Alexander Hansen wrote:

> That's odd.  Verify that /sw/bin/init.sh actually exists on your 
> system,
> and if it does, make sure that it hasn't been corrupted somehow.
>
> On Wed, 2003-06-18 at 12:37, Adrian Simmons wrote:
>>
>> Currently I'm trying to launch it with ./sw/bin/init.sh ; gnucash in
>> the menu, since /sw/bin/gnucash didn't seem to do the trick. My 
>> current
>> workaround is to use Terminal or an xterm to lauch it, but can anyone
>> shed any light on why it won't launch from the menu?


It does not launch from the menu because you do not have /sw/bin in 
your path.
Make sure you have /sw/bin/ in your path and it will launch. 
/sw/bin/gnucash is a script which puts /sw/lib/gnucash/overrides at the 
front of your path and exec's gnucash there. That gnucash script sets 
some more env vars and tries to exec guile-1.6, if /sw/bin is not in 
your path, guile-1.6 will not be found.

I will make sure to instead launch /sw/bin/guile-1.6 is a future 
revision of gnucash for fink. However, you should have /sw/bin in your 
path. This is worth repeating, you should have /sw/bin in your path. 
Use a .xinitrc with Apple's X11 to set up your paths.

Thanks,
Peter



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] (slightly OT) Launching fink installed apps from Apple X11 applications menu

2003-06-18 Thread Peter O'Gorman
On Thursday, June 19, 2003, at 01:51  AM, Alexander Hansen wrote:

That's odd.  Verify that /sw/bin/init.sh actually exists on your 
system,
and if it does, make sure that it hasn't been corrupted somehow.

On Wed, 2003-06-18 at 12:37, Adrian Simmons wrote:
Currently I'm trying to launch it with ./sw/bin/init.sh ; gnucash in
the menu, since /sw/bin/gnucash didn't seem to do the trick. My 
current
workaround is to use Terminal or an xterm to lauch it, but can anyone
shed any light on why it won't launch from the menu?


It does not launch from the menu because you do not have /sw/bin in 
your path.
Make sure you have /sw/bin/ in your path and it will launch. 
/sw/bin/gnucash is a script which puts /sw/lib/gnucash/overrides at the 
front of your path and exec's gnucash there. That gnucash script sets 
some more env vars and tries to exec guile-1.6, if /sw/bin is not in 
your path, guile-1.6 will not be found.

I will make sure to instead launch /sw/bin/guile-1.6 is a future 
revision of gnucash for fink. However, you should have /sw/bin in your 
path. This is worth repeating, you should have /sw/bin in your path. 
Use a .xinitrc with Apple's X11 to set up your paths.

Thanks,
Peter


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users


[Fink-users] (slightly OT) Launching fink installed apps from Apple X11 applications menu

2003-06-18 Thread Adrian Simmons
For a while now some of my fink installed apps haven't been launching 
from Apple's X11 Applications menu. 

gnumeric, konqueror, mozilla X11, gimp, abiword all do, gnucash 
doesn't. In fact maybe gnucash is the only one that  doesn't. 

Currently I'm trying to launch it with ./sw/bin/init.sh ; gnucash in 
the menu, since /sw/bin/gnucash didn't seem to do the trick. My current 
workaround is to use Terminal or an xterm to lauch it, but can anyone 
shed any light on why it won't launch from the menu? 

--
Adrian
[EMAIL PROTECTED]
IM ID: perlucida


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users