LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   X with different config file? (https://www.linuxquestions.org/questions/linux-general-1/x-with-different-config-file-207291/)

stting 07-20-2004 02:29 AM

X with different config file?
 
Hello all,

I have been searching around without any success yet. I am wondering if it's possible to specify the config file to be used when starting X with the command startx.

My scenario is as follows. I have one server running on display :0 with the standard config file in the standard location. I want to be able to, from the console, start another server on display :1 with a different config file. I know that

Code:

startx -- :1
will start the new server with the standard config file. Now I want to use a different config file which possibly may be in a different location.

Is this possible?

BTW, I am using slackware current.

Dark_Helmet 07-20-2004 03:52 AM

After some snooping, yes, I'm sure you can do it. The argument you're looking for is -xf86config

You would use it something like:
Code:

$ startx -- -xf86config <config file> :1
For a regular user, the path to config file must be relative to your current path, and cannot contan ".." references. There is no such restriction for root. I didn't test it myself, but I'm fairly certain it's what you're after :)

stting 07-20-2004 10:29 AM

I just tried that with the new config file in my home directory. It kills the current X server and fails to start the new one.

I guess I'll keep looking.

stting 07-20-2004 10:31 AM

ok...you are right, it _should_ work. The error that popped up was related to something about kde. I'll look more closely at it later.


All times are GMT -5. The time now is 11:14 AM.