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: 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 | # ]