[arch-general] How to safe configs to another path than ~
Hi, how can I safe configurations to another path, instead of using ~? I need this for audio applications, to restore different audio sessions and to get different profiles for some applications. If I run HOME=/home/rocketmouse/alt_profiles/1 xfce4-terminal --maximize by xfce4-terminal the path gets completely ignored, all settings still are stored to /home/rocketmouse and not to the path /home/rocketmouse/alt_profiles/1. If I run HOME=/home/rocketmouse/alt_profiles/1 xfce4-terminal --maximize by the Xfce panel launcher I get "Failed to execute child process "HOME=/home/rocketmouse/alt_profiles/1" (No such file or directory)". If I run HOME=/home/rocketmouse/alt_profiles/1 gedit something is saved to /home/rocketmouse/alt_profiles/1, but it doesn't effect gedit. If I change settings, the settings are only used if I run gedit if I run HOME=/home/rocketmouse/alt_profiles/1 gedit gedit starts using it's defaults. The only good, t doesn't use the settings saved to /home/rocketmouse , as it does if I launch it by gedit. Regards, Ralf
[2013-07-25 10:35:11 +0200] Ralf Mardorf:
If I run HOME=/home/rocketmouse/alt_profiles/1 xfce4-terminal --maximize by xfce4-terminal the path gets completely ignored, all settings still are stored to /home/rocketmouse and not to the path /home/rocketmouse/alt_profiles/1.
Applications have different means of finding out what the HOME directory of a given user is. The HOME environment variable is just one of them. Other popular ones include the function calls getpwuid() and getpwuid(); they basically read the data from /etc/passwd so your only way to work around that and pretend having a different home directory would be to override those calls with LD_PRELOAD... -- Gaetan
Hi Ralf,
how can I safe configurations to another path, instead of using ~?
I need this for audio applications, to restore different audio sessions and to get different profiles for some applications.
another approach would be to put the config files into a version control system such as git. Using different tags or branches you could check out different configurations. Plus you get a history of all the changes you make. Best, Mathias
On 25/07/13 20:35, Ralf Mardorf wrote:
Hi,
how can I safe configurations to another path, instead of using ~?
I need this for audio applications, to restore different audio sessions and to get different profiles for some applications.
If I run HOME=/home/rocketmouse/alt_profiles/1 xfce4-terminal --maximize by xfce4-terminal the path gets completely ignored, all settings still are stored to /home/rocketmouse and not to the path /home/rocketmouse/alt_profiles/1.
If I run HOME=/home/rocketmouse/alt_profiles/1 xfce4-terminal --maximize by the Xfce panel launcher I get "Failed to execute child process "HOME=/home/rocketmouse/alt_profiles/1" (No such file or directory)".
If I run HOME=/home/rocketmouse/alt_profiles/1 gedit something is saved to /home/rocketmouse/alt_profiles/1, but it doesn't effect gedit. If I change settings, the settings are only used if I run gedit if I run HOME=/home/rocketmouse/alt_profiles/1 gedit gedit starts using it's defaults. The only good, t doesn't use the settings saved to /home/rocketmouse , as it does if I launch it by gedit.
Unless I have missed something I think one of the audio session-managers should help you on the audio side, not so sure about other apps though. Jack-session and ladish work well for me unless I have misunderstood. Non-session is also popular although I have not tried that myself yet.
On Fri, 2013-07-26 at 18:08 +1200, Ross Hamblin wrote:
Unless I have missed something I think one of the audio session-managers should help you on the audio side, not so sure about other apps though. Jack-session and ladish work well for me unless I have misunderstood. Non-session is also popular although I have not tried that myself yet.
Hi, I've doubts that session managers are that comfortable as a script is. I might be mistaken. I'm starting sessions by a script. I don't like to use jack dbus. Do those session managers really take care about the configurations in ~? AFAIK they automatically add changes I make during a session, even if I make those changes only temporarily or by mistake. When I tested ladish I was to stupid to use it without a learning curve and I don't want to add something complicated to my sessions, I also won't something to add that does need resources, CPU and/or RAM. Following the Linux audio users mailing list I read a lot of whining about unsupported applications, somebody lost a production, because he used jack-session in a wrong way. So IIUC session managers aren't neither safe to use, nor able to handle all applications. I don't want additional GUI stuff on the Desktop, I already avoid to use even qjackctl and for sure I won't be forced to use patchage or something similar confusingly. There should be as less Windows as possible. Several apps should be automatically startet in a terminal emulation, a script can do this, are session managers able to do this too? This unfortunately is important, since I never run an audio session were there wasn't the need to troubleshoot. Some audio apps are able to take care about the configurations (the user can save and restore them giving a path), others e.g. Qtractor don't and for some apps it's even hard to find the configuration files in ~. I don't need something to start the applications, a script can do this very good, I also don't need something to load songs, samples etc., this also can be done by a script, I just miss a way to find all hidden config files in ~ and to safe them to a path were I store the productions. My workaround is to save and restore ~ nearly completely, sure, without touching e.g. emails. It also would be nice, even if it's not that important, if I could use another configuration profile even for e.g. xfce4-terminal for audio sessions. Regards, Ralf
participants (4)
-
Gaetan Bisson
-
Mathias Huber
-
Ralf Mardorf
-
Ross Hamblin