shortcut/direct PCBNew launch has write protect popups

Bug #1596382 reported by PCB Wiz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Low
Wayne Stambaugh

Bug Description

When launched directly from a shortcut to allow File.Append to be used eg

(Windows, C:\Program Files\KiCad\bin\pcbnew.exe)

launches fine, and edits ok, but I think it is trying to autosave the the protected bin\ directory ?

See the attached message.
Does not seem to crash, but does pop up the messages.

Fix ? - maybe use some kiCad related path for the Autosave, not the .exe path ?

Related branches

Revision history for this message
PCB Wiz (1-pcb-wiz) wrote :
Revision history for this message
PCB Wiz (1-pcb-wiz) wrote :

 Above was with File.New and File.Append
 I think after I do a Save-as, to a working dir, the issue clears as maybe now it has a new path to use for the Autosave ?
 Tested in Windows 8.1 and kiCad build 6943.

Revision history for this message
Novak Tamas (novak-7) wrote :

For me it seems that if I click Save, the default save path is the last path saved from previous run. But autosave use another path points to the bin folder.

Changed in kicad:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
jean-pierre charras (jp-charras) wrote :

Please, explain exactly how to reproduce your problem.

@Novak
"For me it seems that if I click Save, the default save path is the last path saved from previous run":
Saving a board file in an other project has no sense.
Explains exactly what is your problem (and how to reproduce).

Changed in kicad:
status: Confirmed → Incomplete
Revision history for this message
PCB Wiz (1-pcb-wiz) wrote :

See above. "Autosave uses another path than save, and points to the Bin folder by default"
- and of course writes to Bin fail.
This occurs when File Append is used, not file-open, so there is no active/alternative file-path defined at this stage, but auto-save tries to work on what is loaded.

ie it looks like missing or poor default choice for Autosave path, when no other information is there.

Revision history for this message
Novak Tamas (novak-7) wrote :

If I directly start pcbnew.exe, draw some tracks (no file append, so no any path "hint"), then wait for autosave,
autosave tries to work into "C:\Program Files\KiCad-6936\bin", where exe started from, and got the write permission error.
In this case TEMP folder should rather be used.

Changed in kicad:
status: Incomplete → Confirmed
Changed in kicad:
assignee: nobody → Wayne Stambaugh (stambaughw)
status: Confirmed → In Progress
Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

I committed a patch to r7019 to fix this issue. Please test it when you get a chance to make sure this resolves the issue.

Changed in kicad:
status: In Progress → Fix Committed
Revision history for this message
PCB Wiz (1-pcb-wiz) wrote :

Tested this in r7066, and as best I can tell, this is now "Well behaved" on Win 8.1 machine
- no bad default choices, and sensible prompts, when expected. Looks great :)

Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.