Can't run Dexter outside of build folder after .ui file refactoring

Bug #687534 reported by Cris Dywan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dexter - Old
Fix Released
Critical
Allen Lowe

Bug Description

After the .ui file refactoring, I can no longer run Dexter as "dexter", which is a symbolic link to "~/bau/dexter/bin/dexter".

LANGUAGE=en dexter
Traceback (most recent call last):
  File "~/bin/dexter", line 81, in <module>
    app = DexterApp(datadir, options)
  File "~/bau/dexter/dexter/app.py", line 75, in __init__
    os.path.join(datadir, "ui", "dexter-main.ui"), "dexter")
  File "~/bau/dexter/dexter/SimpleGtkbuilderApp.py", line 30, in __init__
    self.builder.add_from_file(path)
glib.GError: Failed to open file '/usr/share/dexter/ui/dexter-main.ui': No such file or directory

Dexter should look in the folder it *resides* in, not the working directory.

Related branches

Cris Dywan (kalikiana)
Changed in dexter-rolodex:
assignee: nobody → Andrew (and471)
importance: Undecided → Critical
Revision history for this message
Allen Lowe (lallenlowe) wrote :

yes, and make sure it works after being packaged by "quickly package" also. (currently it does, so just don't break it)

Revision history for this message
Allen Lowe (lallenlowe) wrote :

this worked fine before the refactor, fyi

Allen Lowe (lallenlowe)
Changed in dexter-rolodex:
status: New → Confirmed
Allen Lowe (lallenlowe)
Changed in dexter-rolodex:
assignee: Andrew (and471) → nobody
assignee: nobody → Allen Lowe (lallenlowe)
status: Confirmed → In Progress
status: In Progress → Fix Committed
Allen Lowe (lallenlowe)
Changed in dexter-rolodex:
milestone: none → 0.15
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.