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


Click here to return to the 'Associate X11 applications with filename extensions' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Associate X11 applications with filename extensions
Authored by: KOHb on May 17, '03 12:18:52PM

If you really want to get rid of the PATH dependence, you can use .Xdefaults and set "GV.gsInterpreter". (Look at man gv.) It looks like it'll even use a ".gv" file if you want.

I timed (using zsh's 'time') checking for X11 already running versus just running "open -a X11" (which doesn't seem to do anything except gain window focus) and open was faster. YMMV.

One could probably write an all-in-one Unix opener (per extension) by copying the idea of UnShove.sh (from DropScript's example).

So far I use the idea to open postscript, dvi, and occasionally vim.

BTW, a quick way to make these dropscripts is to do "open -a DropScript script.sh".



[ Reply to This | # ]