Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there some way to *NOT* use ~/Documents/Fritzing for the user parts tree? #4188

Open
RobertPHeller opened this issue Oct 14, 2024 · 9 comments

Comments

@RobertPHeller
Copy link

I don't want to have a $HOME/Documents directory on my Linux system. I find having the "standard" set of directories (no I won't call them folders -- folders are something completely different) obnoxious. I could not find a preference setting. I am using the ARM64 build in the Debian 12 repo on a Raspberry Pi 5: Version 0.9.6
(b ) 32 [Qt 5.15.6]:

marchhare% dpkg-query -l fritzing
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-==================================>
ii fritzing 0.9.6+dfsg-3 arm64 Easy-to-use electronic design soft>

@KjellMorgenstern
Copy link
Member

KjellMorgenstern commented Oct 19, 2024

Right now, it is not possible. Fritzing use QtStandardPaths, to choose standardized paths.

When a user downloads or creates a part, and loads it into Fritzing, where should Fritzing store this?
A similar question would be, where should Fritzing store a writable parts database, like a sqlite database?

Unfortunately, changing this path, or introducing a QSetting for it, is not straightforward.
There are multiple places, where the order of paths is important, and where Fritzing uses fallback paths, e.g. when loading am obsolete part, a user provided part, imported part, core part, core part that was modified (git hash differs). This makes it complex and risky to change things.

@RobertPHeller
Copy link
Author

RobertPHeller commented Oct 19, 2024 via email

@malnvenshorn
Copy link

There is nothing wrong in using QtStandardPaths. But Fritzing should not use the DocumentsLocation. As the name implies, that's a location for documents and not a place for an app to dump random files. For application specific files use AppLocalDataLocation instead.

@RobertPHeller
Copy link
Author

RobertPHeller commented Oct 22, 2024 via email

@KjellMorgenstern
Copy link
Member

That are not random files. When you import a Fritzing part, by default you are adding it to your personal library.

@malnvenshorn
Copy link

malnvenshorn commented Oct 23, 2024

It's still application specific data and that doesn't belong to ~/Documents. Application data should be stored to ~/.local/share/APPNAME.

In case of doubt use the XDG standard https://specifications.freedesktop.org/basedir-spec/latest/

@RobertPHeller
Copy link
Author

RobertPHeller commented Oct 23, 2024 via email

@KjellMorgenstern
Copy link
Member

If a re-install of Fritzing would delete those files, I am pretty sure that a lot of users would be unhappy about loosing these files. I don't have any doubt that they are user data.

Anyway, this is distracting from the original issue. It seems to be more about overriding whatever the default is?

@RobertPHeller
Copy link
Author

RobertPHeller commented Oct 23, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants