Opened 10 years ago

Closed 10 years ago

#2293 closed defect (fixed)

Can't resume projects by (double) clicking in Gnome

Reported by: rgs Owned by: walter
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Turtleart Version: Git as of bugdate
Severity: Unspecified Keywords: turtleart gnome
Cc: Distribution/OS: Unspecified
Bug Status: Unconfirmed

Description (last modified by rgs)

Depending on how you have Turtle Art installed in Gnome you might have problems when resuming an existing project:

Traceback (most recent call last):
  File "/home/rgs/devel/turtleart/turtleart.py", line 655, in <module>
    TurtleMain()
  File "/home/rgs/devel/turtleart/turtleart.py", line 204, in __init__
    win.set_icon_from_file(_ICON_SUBPATH)
glib.GError: Failed to open file 'images/turtle.png': No such file or directory

The attached patch makes sure TA is running from the source directory so it doesn't have problems finding relative paths.

Attachments (1)

move-to-current-dir-before-start.patch (518 bytes) - added by rgs 10 years ago.
move to cur dir before running the main loop

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by rgs

move to cur dir before running the main loop

comment:1 Changed 10 years ago by rgs

  • Description modified (diff)

comment:2 Changed 10 years ago by walter

rgs: this looks good. do you want to apply the patch to mainline?

comment:3 Changed 10 years ago by rgs

  • Resolution set to fixed
  • Status changed from new to closed

Pushed.

Note: See TracTickets for help on using tickets.