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


Click here to return to the 'A simple way to open files in X11 applications' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A simple way to open files in X11 applications
Authored by: n1mie on Sep 20, '07 01:59:36PM

I don't use Apple's X11 but rather XFree86 and it behaves that way too. And NO, I do NOT want an XTerm window to open every time I launch XWindows. What is the purpose of a GUI if I MUST have a CLI running active? Then when you accidentally close the CLI window the GUI closes since it is dependant.

Maybe we need to get the word to the developers to fix the real problem which is that it isn't reading in both environmental files.

---
--Chip



[ Reply to This | # ]
A simple way to open files in X11 applications
Authored by: LukeR on Sep 22, '07 02:20:58PM

How to avoid launching xterm when starting X11: take a look at my xinitrc:


#!/bin/sh
# $Id: xinitrc,v 1.3 2004/06/11 04:37:23 jharper Exp $

test -r /sw/bin/init.sh && . /sw/bin/init.sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f "$sysresources" ]; then
    xrdb -merge "$sysresources"
fi

if [ -f "$sysmodmap" ]; then
    xmodmap "$sysmodmap"
fi

if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi
quartz-wm

You just have to remove "xterm" line if you have them somewhere in your .xinitrc



[ Reply to This | # ]