LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   New $HOME breaks X programs (https://www.linuxquestions.org/questions/linux-desktop-74/new-%24home-breaks-x-programs-4175647277/)

ludist 01-30-2019 02:40 AM

New $HOME breaks X programs
 
How to reproduce the problem
Code:

run xdm (don't start GUI with startx, I didn't tried other managers like KDM/GDM)
login
mkdir /tmp/new-home
export HOME=/tmp/new-home
xmessage test
No protocol specified
Error: Can't open display: :0.0

I found the solution here: If I start the GUI with startx instead of xdm I can start gui programs with new home (export HOME=/tmp/new-home).

So, probably the right question is: How can I configure XDM to start programs with new $HOME?

pan64 01-30-2019 03:46 AM

first set the new home and start xdm
but using $HOME is not the same as moving your home. Also modifying HOME is not a good idea.

ludist 02-01-2019 04:04 PM

Thank you, but I don't like this solution. I prefer to ignore / disable xdm and start X with startx.

I issue new home only for one program (firefox) because I test several versions. For example version-49 has java.

So, I don't want firefox to mess my profile files of my latest firefox (ESR) installation. I also test the latest installation (non-ESR), so I have three different homes for firefox.

pan64 02-02-2019 01:38 AM

I just don't understand. What do you want to achieve at all?

ludist 02-06-2019 04:21 PM

I want to protect my firefox profile from different version of firefox, ok I can mv temporary my main firefox profile before start the older / newer firefox, but if I forgot...

For example I use
Code:

WINEPREFIX=path_to_wineprefix wine winecfg
to start wine without messing my main wine configuration

pan64 02-07-2019 05:16 AM

you might want to check firefox profiles: https://askubuntu.com/questions/2395...tory-from-bash

ludist 12-29-2019 03:11 PM

[SOLVED] New $HOME breaks X programs
 
Quote:

Originally Posted by ludist (Post 5955334)
So, probably the right question is: How can I configure XDM to start programs with new $HOME?

Today I had the same problem. The above question is wrong. I remembered the XAUTHORITY file. The solution is to specify XAUTHORITY before new home.

In my case this seems fine.
Code:

DIR=$HOME/.config/firefox-$VERSION
mkdir -p $DIR
export XAUTHORITY=$HOME/.Xauthority
export HOME=$DIR

Example working script here

mrmazda 01-02-2020 03:14 AM

You can have multiple profiles for every or any single user. This enables multiple versions all installed and running at once, just like Firefox developers do, by using the -no-remote startup switch, or exporting MOZ_NO_REMOTE=1.


All times are GMT -5. The time now is 12:44 AM.