-
Notifications
You must be signed in to change notification settings - Fork 847
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
Comments
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? Unfortunately, changing this path, or introducing a QSetting for it, is not straightforward. |
There should be *preference* setting. Almost all other apps that I use have a
paths preference category. (Sure, you can use QtStandardPaths for defaults,
but having a user preference should be available.)
At Sat, 19 Oct 2024 07:50:53 -0700 fritzing/fritzing-app ***@***.***> wrote:
…
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?
--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
***@***.*** -- Webhosting Services
|
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. |
And Fritzing should *also* have a preferences setting to allow a user to
specify a different location. Using QtStandardPaths for *default* locations
is fine and probably proper for many users, but *some* of us have things
organized differently.
At Tue, 22 Oct 2024 09:15:05 -0700 fritzing/fritzing-app ***@***.***> wrote:
…
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.
--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
***@***.*** -- Webhosting Services
|
That are not random files. When you import a Fritzing part, by default you are adding it to your personal library. |
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/ |
The point is they are not "Documents" in commonly understood sense. They are
application data files, in much the same sense as the files under
/usr/share/fritzing/ or /usr/local/share/fritzing/ or ~/.local/share/fritzing/
At Wed, 23 Oct 2024 01:19:38 -0700 fritzing/fritzing-app ***@***.***> wrote:
…
That are not random files. When you import a Fritzing part, by default you
are adding it to your personal library.
--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
***@***.*** -- Webhosting Services
|
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? |
At Wed, 23 Oct 2024 10:17:23 -0700 fritzing/fritzing-app ***@***.***> wrote:
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.
That would be stupid. It *should* check and if this is an upgrade, move the
files to the new (proper) location.
Anyway, this is distracting from the original issue. It seems to be more about overriding whatever the default is?
YES!!!! Esp. since the default is *bad*.
…--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
***@***.*** -- Webhosting Services
|
How bizarre that such an awesome and popular program is not using
|
To avoid ambiguity, could you please list some example files from that location that you consider debris? |
Right now the only files in ~/Documents are Fritzing's parts files. I have no use for a Documents directory. These parts files really don't belong there. For those that are fine with a Documents directory that directory should only have end level files, not internal data files - these belong in a hidden directory, like .local/share (my preference would be .fritzing, but realize that old school UNIX norms are pase).
A Documents directory in my home directory is debris in itself.
…
On Dec 22, 2024 at 10:57, Kjell ***@***.***> wrote:
To avoid ambiguity, could you please list some example files from that location that you consider debris?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Anything that is not a personal file that I create and want there, or anything that is unavoidable.
|
Fritzing did not create this in my home directory. I also object to a |
The title of the issue literally states it: These are user parts, not the parts that come with Fritzing. If there are any parts, it is likely you created or downloaded them. If you do backups, you will want to include them. They will not be restored with a Fritzing reinstall. If "Documents" as a standard is a concern, this could be a good starting point: https://cgit.freedesktop.org/xdg/xdg-user-dirs/tree/user-dirs.defaults , at least for Linux. I don't know if Microsoft or Apple have place to address this, but to my knowledge they create Documents folders, too. Out of curiosity, what system are you using to not have this folder created by default for each user? A related issue, which I think is important here, is that the Documents folder increasingly often gets (even by default) synced as a OneDriver folder, and there are some reports that this does not work well with Fritzing. This is an issue I'd like to spend resources on. A custom folder location would help, but only so far, until it gets used (and I think this is the more common feature request, and therefore dangerous), to specifically point it to a network location, to share Fritzing projects across multiple machines. That is a good feature to have, but would release havoc on the data with the current way files are handled. |
Disclaimer: I still think this program is awesome and will keep on using it.
The directories are created, even when I download nothing.
No. They are there after
Doubtful. Why would I include files that can be downloaded in a backup?
I read this: More specifically this: Though I would also be happy with the old standard of
Installation was four years ago, I may have done
I have hope that people capable of designing schematics are also capable of understanding directories. Hopefully one day this project will use one of the common locations in Linux to put these files. I consider this a feature request and not a bug. Thanks for you time. |
I only tested this on Ubuntu 22.04. If you don't have or want a Documents folder, maybe you can try this workaround:
then start Fritzing. It will respect the XDG_DOCUMENTS_DIR folder, at least it did when I just tried this.
XDG_DATA_DIRS folders is a list off folders that a regular user does not have write access:
|
That works. Thanks!!!
|
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>
The text was updated successfully, but these errors were encountered: