fritzing / fritzing-app

Fritzing desktop application
http://fritzing.org
Other
4.04k stars 835 forks source link

Parts editor error message does not show full path on write error. #4075

Open botgeek opened 1 year ago

botgeek commented 1 year ago

Current Behaviour

Getting an error when trying to right click on an IC image to edit a new part.

**Build:1.01 <e.g. Version 0.9.3 (b5c895d32 2016-04-19) Cocoa [Qt 5.12.2]

Operating System: <Windows 10>

Steps to reproduce:

Expected Behaviour

Expected to start editing a new part.

FritzingPartsEditorError

KjellMorgenstern commented 1 year ago

I have seen that a few times now, please avoid issue titles that read like click bait. What is "this case"? Why "at least", what are the other cases then? If there are other cases, please open separate issues.

KjellMorgenstern commented 1 year ago

The editor opens just fine here.

Fritzing checks for the operating systems AppDataLocation (depends on OS and OS Version). There might be multiple locations. From the possibilities, Fritzing tries to choose the first writable location.

The above error message indicates that the location used for the icon was not writable. Unfortunately, the error message does not give the full path, only a subfolder -> this is a bug.

Please check the AppDataLocations, if there are any files, and if they are writable (user permissions?)

APPNAME is Fritzing APPDIR is the location of the Fritzing executable

macOS
AppDataLocation "~/Library/Application Support/<APPNAME>", "/Library/Application Support/<APPNAME>". "<APPDIR>/../Resources"

Windows
"C:/Users/<USER>/AppData/Roaming/<APPNAME>", "C:/ProgramData/<APPNAME>", "<APPDIR>", "<APPDIR>/data", "<APPDIR>/data/<APPNAME>"

Linux
"~/.local/share/<APPNAME>", "/usr/local/share/<APPNAME>", "/usr/share/<APPNAME>"
vanepp commented 1 year ago

Windows "C:/Users//AppData/Roaming/", "C:/ProgramData/", "", "/data", "/data/"

Note on Windows (which you appear to be on) AppData is a hidden directory so you need to enable Show hidden directories by clicking on the Folder options tag and selecting views (circled in green here) then click "Show hidden files and folders" (I run with this always enabled) to show Appdata in Explorer.

capture