Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Fink, init scripts, and X11 apps UNIX
When you launch an app from Apple's X11's launch menu, it doesn't get fink's init script beforehand. This is easily shown by the fact that they aren't in the path; I had to put them as /sw/bin/appname. This is a problem in some apps in that their font selection and font smoothing won't show through, for example, this is evident in all GTK2 apps. Also, apps will lack sound. However, if launched from an xterm, they'll be fine, as the xterm runs the init script for fink. The solution is to use a path through a script for launching the apps, but running the init first.

You can call this file whatever you want, and store it wherever you want, but I called it .x11launch.sh for easy location, and so it'd be hidden. Inside the script, I have:
#!/bin/sh
source /sw/bin/init.sh
$@ &
Then in my X11 app menu I have:
sh ~/.x11launch.sh appname
Modify the appname to match your program, and the file/location for what you called the script, and it should be fine. I get font smoothing in Pan and GQView, and sound in FreeCiv, without launching from a terminal this way.
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[6,050 views]  

Fink, init scripts, and X11 apps | 5 comments | Create New Account
Click here to return to the 'Fink, init scripts, and X11 apps' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Fink, init scripts, and X11 apps
Authored by: BigCityBoy on Aug 14, '03 11:22:32AM

Using the following in your app menu will accomplish the same thing:

source /sw/bin/init.sh; pan



[ Reply to This | # ]
Fink, init scripts, and X11 apps
Authored by: neoookami on Aug 15, '03 06:00:14PM

I could've sworn I had tried that or something similar, but that indeed does work too. Thanks.



[ Reply to This | # ]
Fink, init scripts, and X11 apps
Authored by: c8h10n4o2 on Aug 14, '03 12:56:46PM

Great hint. I was wondering why the Apple X11 App menu wasn't working for me.



[ Reply to This | # ]
Fink, init scripts, and X11 apps
Authored by: gmackenz on Aug 14, '03 11:26:58PM
source /sw/bin/init.sh; pan
What's "pan"? Never heard of it. Ahhh, found it in FINK:


"pan 0.14.0-1 Graphical newsreader"


Just in case anybody else was confused like I was by the example given above... Seems to be the way to go for the X11 Menu.

[ Reply to This | # ]
Fink, init scripts, and X11 apps
Authored by: Ptitboul on Sep 08, '03 12:17:05PM
Another technique is to add in /etc/X11/xinit/xinitrc the line . /sw/bin/init.sh before exec quartz-wm.

[ Reply to This | # ]