LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-20-2024, 11:19 AM   #1
Grobe
Member
 
Registered: Aug 2019
Location: Close to north
Distribution: Fedora
Posts: 117

Rep: Reputation: Disabled
appimage - is it possible to make the app use a different path for user profile


In particular I'm thinking about Inkscape.

I'm using Fedora 39 Cinnamon and have Inkscape 1.3.2 (latest stable as per feb. 2024) installed by flatpak.

However, I also have the appimage version of Inkscape 1.1.2 - fallback if it turns out the latest version get unstable for my projects.

However - there is a caveat. Both the flatpak version and the appimage version points to the same config file:
/home/grobe/.config/inkscape/preferences.xml
and thus each Inkscape version can potentially make a mess for the other version because pointing to same setting file.

I can probably partially solve the issue by using a bash script and use the export command to tell Inkscape to use another folder for /home. However this will probably cause problems when trying to open files that is located inside the actual /home directory - haven't tested this.

I do not want to solve this by having a script file that temporarily rename the config/inkscape folder for the session, because it still have a potential for causing mess if I'm unfortuately happens to open the other version of Inkscape while still running.

Any ideas? Some features of appimages that I haven't taught about yet ?
 
Old 02-20-2024, 11:49 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Grobe View Post
In particular I'm thinking about Inkscape.
I'm using Fedora 39 Cinnamon and have Inkscape 1.3.2 (latest stable as per feb. 2024) installed by flatpak. However, I also have the appimage version of Inkscape 1.1.2 - fallback if it turns out the latest version get unstable for my projects.

However - there is a caveat. Both the flatpak version and the appimage version points to the same config file:
/home/grobe/.config/inkscape/preferences.xml
and thus each Inkscape version can potentially make a mess for the other version because pointing to same setting file.

I can probably partially solve the issue by using a bash script and use the export command to tell Inkscape to use another folder for /home. However this will probably cause problems when trying to open files that is located inside the actual /home directory - haven't tested this. I do not want to solve this by having a script file that temporarily rename the config/inkscape folder for the session, because it still have a potential for causing mess if I'm unfortuately happens to open the other version of Inkscape while still running. Any ideas? Some features of appimages that I haven't taught about yet ?
I would just make a copy of the XML files to something like "oldinkscape.xml" and "newinkscape.xml", then when you run the program, you can go into System settings and choose one to restore from. Since you've got a copy, it'll just shove it to the above-mentioned filename each time, but it'll be version dependent. It's a little bit of a pain, but it'd be SLIGHTLY clean.
 
Old 02-20-2024, 12:04 PM   #3
Grobe
Member
 
Registered: Aug 2019
Location: Close to north
Distribution: Fedora
Posts: 117

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
I would just make a copy of the XML files to something like "oldinkscape.xml" and "newinkscape.xml", then . . .
Yes I know, and I also asked for a different approach to avoid this method if possible - I consider renaming parent folder or xml file itself to be the same method.

Any other approach not already mention ?

I may put a feature request for Inkscape itself so that it will accept a parameter specifying where the settings file are located. But this question is not only related to Inkscape.


[edit 1]
Seems like this feature is actually added to the windows version:
https://alpha.inkscape.org/vectors/f...indexf294.html


[edit 2]

I found a way of change the config location for Inkscape installed normally - probably works the same for flatpak, but I've only tested on Inkscape that was installed normally from the repository.

Without further due, it goes like this:
Code:
$ env INKSCAPE_PROFILE_DIR=/home/grobe/Documents/inkscapeTemporarySettings inkscape
Because Inkscape actually supports the INKSCAPE_PROFILE_DIR variable.

Last edited by Grobe; 02-20-2024 at 12:51 PM. Reason: found workaround for Inkscape in particular
 
  


Reply

Tags
inkscape



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
WithOUT opening profile manager each time, make another firefox launcher to *always* use specific profile LenHoff Linux - Software 3 12-12-2022 06:34 PM
[SOLVED] Ok to copy and rename Chromium profile folder to use as Chrome profile? linustalman Linux - Software 4 01-10-2017 08:54 AM
[SOLVED] I added a PATH to /etc/profile but "echo $PATH" says it's not there? cravengemetzel Linux - Newbie 6 12-30-2012 06:52 PM
Do you add to the path line or make a new path in /etc/profile? M$ISBS Linux - Newbie 2 12-13-2006 02:14 PM
system profile vs user profile bonito SUSE / openSUSE 3 06-28-2006 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:49 PM.

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
Open Source Consulting | Domain Registration