Applications does not work installed in non-default directories

Bug #982246 reported by Rafał Cieślak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Accomplishments Daemon
Fix Released
Wishlist
Rafał Cieślak
Ubuntu Accomplishments Viewer
Fix Released
Wishlist
Rafał Cieślak

Bug Description

Although my deamon works great if run from source or installed to /usr, it crashes if I run it installed in any other path.

There are two problems I have noticed:
 - paths in accomplishments/util/paths.py are hard-coded, and if the installation paths starts with /usr, it assumes the data dir is /usr/share/accomplishments-daemon, which is wrong, as it may be e.g. /usr/local/share/accomplishments-daemon
 - probably the pythonpath maybe set incorrectly, when I have installed the daemon to /opt/accomplishments, it crashed complaining about missing module accomplishments.daemon.

Specifically, I would love to be able to install the daemon to /opt/accomplishments, it is great for testing & developing, as I can be sure it does not touch any system files, and is much easier to clean all files installed by the daemon, by removing the whole directory.

Of course solving this bug will also fix several potentially possible problems with packaging.
Also, having the application recognize it's prefix, allows to install multiple versions of daemon on the same system without conflicts.

Related branches

description: updated
Revision history for this message
Rafał Cieślak (rafalcieslak256) wrote :

The same problem affects the viewer.

Changed in ubuntu-accomplishments-viewer:
importance: Undecided → Wishlist
summary: - Deamon does not work installed in non-default directories
+ Applications does not work installed in non-default directories
Changed in ubuntu-accomplishments-daemon:
assignee: nobody → Rafal Cieślak (rafalcieslak256)
Changed in ubuntu-accomplishments-viewer:
assignee: nobody → Rafal Cieślak (rafalcieslak256)
Changed in ubuntu-accomplishments-daemon:
status: New → In Progress
Changed in ubuntu-accomplishments-viewer:
status: New → In Progress
Changed in ubuntu-accomplishments-daemon:
milestone: none → 0.1
Changed in ubuntu-accomplishments-viewer:
milestone: none → 0.1
Changed in ubuntu-accomplishments-daemon:
status: In Progress → Fix Committed
Changed in ubuntu-accomplishments-viewer:
status: In Progress → Fix Committed
Jono Bacon (jonobacon)
Changed in ubuntu-accomplishments-daemon:
status: Fix Committed → Fix Released
Changed in ubuntu-accomplishments-viewer:
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.