LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-30-2019, 02:40 AM   #1
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 138

Rep: Reputation: 17
Question 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?
 
Old 01-30-2019, 03:46 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 12,238

Rep: Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777
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.
 
Old 02-01-2019, 04:04 PM   #3
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 138

Original Poster
Rep: Reputation: 17
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.
 
Old 02-02-2019, 01:38 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 12,238

Rep: Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777
I just don't understand. What do you want to achieve at all?
 
Old 02-06-2019, 04:21 PM   #5
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 138

Original Poster
Rep: Reputation: 17
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
 
Old 02-07-2019, 05:16 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 12,238

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving /home to another volume breaks ext3 Trash on new volume uncleboarder Linux - General 3 10-01-2010 10:59 PM
contents of 'home' directory found at sda5: mounted as /home, and also on sda6:/home leswatson Linux - Newbie 4 04-18-2008 04:02 PM
Put a 2nd kanotix at hdb 3/,-4/home. 1st is at hdb8/,-9/home.#2 is using 1st's /home sleekmason Linux - General 3 12-09-2006 09:21 AM
ifup breaks x programs bluefire Linux - Networking 1 08-25-2004 09:31 AM
/home seperate partition from previous install, make it new /home in new install mipia Slackware 5 06-21-2004 10:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration