[ubuntu] crashes if run without root permission

Bug #811118 reported by michalstec
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Undecided
Wayne Stambaugh

Bug Description

Application: KiCad
Version: (2011-07-08 BZR 3044)-stable
Build: wxWidgets 2.8.12 (no debug,Unicode,compiler with C++ ABI 1002,GCC 4.4.3,wx containers)
Platform: Linux 2.6.38-10-generic i686, 32 bit, Little endian, wxGTK
Ubuntu 11.04

KiCad works ok if I 've got root permissions (I type: sudo '/usr/local/kicad/bin/kicad')
If I use it as user eeschema crashes when:
- I click on "Doc" (context menu on some components),
- I try to set path to libraries (preferences - library - add (user defined search path)) - both eeschema and pcbnew,
- I try to save schematics component in library editor.

Related branches

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

I'm not sure why EESchema crashes but I can tell you the reason it works when logged in as root. You are trying to modify a system library installed in /usr or /usr/local. You don't have permission to write to any files in these folders unless (in your case) you're running EESchema with root privileges. I can't duplicated the crash running 64-bit Debian testing. In my case EESchema gives me a warning that it cannot write the library file when I attempt to change any the system libraries. In any event, all of the Kicad applications should warn you when you don't have write access to a file rather than allowing you to edit the file.

Revision history for this message
Dick Hollenbeck (dickelbeck) wrote : Re: [Bug 811118] Re: [ubuntu] crashes if run without root permission

> In any event, all of the Kicad applications should warn you
> when you don't have write access to a file rather than allowing you to
> edit the file.

Good idea, flag the loaded data model as read only at time of load, if any of
the loaded file(s?) are read only. If user does "Save As" to another name
successfully, unflag it, otherwise don't let him edit?

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

On 8/11/2011 10:51 AM, Dick Hollenbeck wrote:
>> In any event, all of the Kicad applications should warn you
>> when you don't have write access to a file rather than allowing you to
>> edit the file.
>
> Good idea, flag the loaded data model as read only at time of load, if any of
> the loaded file(s?) are read only. If user does "Save As" to another name
> successfully, unflag it, otherwise don't let him edit?
>
I'll assign this bug to myself and fix the library editor first which
specifically addresses this bug report. I'll chip away at the rest of the
Kicad apps over the next few weeks.

Changed in kicad:
assignee: nobody → Wayne Stambaugh (stambaughw)
Changed in kicad:
status: New → Fix Committed
Martin Errenst (imp-d)
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.