LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Quick Questions. (https://www.linuxquestions.org/questions/slackware-14/quick-questions-373470/)

byteframe 10-15-2005 08:35 PM

Quick Questions.
 
Where do I put something that I want to run when x (gdm) starts up? I have to run a whole bunch of xmodmap commands for my crazy keyboard, and I would like that to be for all users of course. If there is nothing like that for a system wide X startup script, where would I go PER user? I tried a little test in ~/.xsession

#!/bin/bash
mkdir ~/thisworked


but I didnt work, Ill keep trying but I thought someone would have more insight as to where these files would be on a slacwkare 10.2/10.1 system...Thanks.

paulsm4 10-15-2005 10:06 PM

Two suggestions:

1. Try your ~/.xinitrc

2. Make double-sure your "test script" itself isn't failing, e.g.
echo >> /tmp/this.worked

dracolich 10-16-2005 03:04 PM

.xinitrc is the place to put it per user. I don;t know of a global location. If all the users use the same wm you could put it in the appropriate xinitrc.<wm> somewhere under /etc/X11.

Assuming your commands are in ~/.Xmodmap, the command would be like this

xmodmad ~/.Xmodmap

For global use you could put it in, say, /etc/X11 then all users could access it with

xmodmap /etc/X11/.Xmodmap


All times are GMT -5. The time now is 07:23 AM.