URL:
  <http://gna.org/bugs/?21183>

                 Summary: MyPaint won't start when there is no config
directory created
                 Project: MyPaint
            Submitted by: helb
            Submitted on: Wed 09 Oct 2013 02:38:26 AM GMT
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 6bf88b8
         Planned Release: None
        Operating System: gentoo linux

    _______________________________________________________

Details:

MyPaint won't start when there is no config directory created. Creating
_~/.local/share/mypaint/palettes_ directory manually helps…

== Symptoms ==

[helb@raven~] % rm -rf .local/share/mypaint .config/mypaint
[helb@raven~] % mypaint                                    
INFO: gui.application: Created basedir u'/home/helb/.config/mypaint'
INFO: gui.application: Created basedir u'/home/helb/.local/share/mypaint'
INFO: gui.application: Created data subdir
u'/home/helb/.local/share/mypaint/backgrounds'
INFO: gui.application: Created data subdir
u'/home/helb/.local/share/mypaint/brushes'
INFO: gui.application: Created data subdir
u'/home/helb/.local/share/mypaint/scratchpads'

(mypaint:14744): Gtk-CRITICAL **: gtk_box_reorder_child: assertion `old_link
!= NULL' failed
INFO: gui.brushmanager: Merging upstream brush changes into your collection.
Traceback (most recent call last):
  File "/usr/bin/mypaint", line 315, in <module>
    main.main(datapath, extradata, old_confpath, version)
  File "/usr/share/mypaint/gui/main.py", line 162, in main
    run()
  File "/usr/share/mypaint/gui/main.py", line 135, in run
    version=version, fullscreen=options.fullscreen)
  File "/usr/share/mypaint/gui/application.py", line 238, in __init__
    self.brush_color_manager = BrushColorManager(self)
  File "/usr/share/mypaint/gui/brushcolor.py", line 30, in __init__
    colors.ColorManager.__init__(self, app.preferences)
  File "/usr/share/mypaint/gui/colors/adjbases.py", line 166, in __init__
    palette = Palette(filename=default)
  File "/usr/share/mypaint/gui/colors/palette.py", line 110, in __init__
    fp = open(filename, "r")
IOError: [Errno 2] No such file or directory:
u'./palettes/MyPaint_Default.gpl'


== Workaround ==

[helb@raven~] % mkdir .local/share/mypaint/palettes
[helb@raven~] % mypaint #runs now


== Fix ==
Add _palettes_ to a list at gui/application.py:125
<https://gitorious.org/mypaint/mypaint/source/6bf88b8423475b2fe20bf51a79856c84f7f6e7de:gui/application.py#L125>.
Patch attached.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 09 Oct 2013 02:38:26 AM GMT  Name: palettes-dir-creation.patch 
Size: 581B   By: helb

<http://gna.org/bugs/download.php?file_id=19145>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?21183>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs

Reply via email to