Date: Thu, 3 Jul 2008 07:20:56 +0200 From: Matthias Apitz <matthias.apitz@oclc.org> To: ronggui <ronggui.huang@gmail.com> Cc: freebsd-questions@freebsd.org, prad <prad@towardsfreedom.com> Subject: Re: Execute the command when login Message-ID: <20080703052056.GA2774@rebelion.Sisis.de> In-Reply-To: <38b9f0350807022030l6748d6c2g460c2f2d0309304b@mail.gmail.com> References: <38b9f0350807020011y35080e75ge2d8d083635be72a@mail.gmail.com> <20080702080013.GA2989@rebelion.Sisis.de> <20080702154730.2dad476e@gom.home> <38b9f0350807021939m4ce0aadfyb7d2bb3e30b871ac@mail.gmail.com> <38b9f0350807022030l6748d6c2g460c2f2d0309304b@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
El día Thursday, July 03, 2008 a las 11:30:03AM +0800, ronggui escribió: > My solution: > > add the command to ~/xinitrc > ### content of ~/.xinitrc > xmodmap ~/.xmodmaprc > exec fvwm > ### > xmodmap must come before exec fvwm, otherwise it take no effect. Of course it will not work if you put it after 'exec fvwm' because than it will get executed after fvwm dies and perhaps Xorg terminates; as I said in my post you must ensure to have a proper DISPLAY variable in your environment and X must be up in the moment you lauch any X-application; both are missing in your ~/.xinitrc above; try this: make a file xmodmap.sh with #!/bin/sh DISPLAY=:0.0 export DISPLAY sleep 10 xclock put into your ~/.xinitrc the lines: sh ~/xmodmap.sh & exec fvwm (don't miss the '&' sign!) and watch if the xclock comes up after fvwm is up; matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <matthias.apitz@oclc.org> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080703052056.GA2774>