Path /usr/share/tunnelmanager should not be hard wired in source

Bug #1759941 reported by Bio Mon on 2018-03-29
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Tunnel Manager
Undecided
Unassigned

Bug Description

Ok, I managed to get it working on Ubuntu 18.04 simply by installing the python-glade2 package, which seems to pull in the dependencies like pygtk. Then I installed with

sudo ./setup.py install

from the source folder, but got this error

Failed to open file “/usr/share/tunnelmanager/tunnelmanager.ui

this path seems to be hardcoded - but the required files are in /usr/local/share/tunnelmanager !

I do not know if there is a shortcut in python to search all obvious directories on a linux system or if you have to add all possible target directories manually. I temporarily fixed it with a symlink, but the source should use valid paths, I believe.

The program does not hard code the path to the .ui file. It only hard codes the default, but allows the location to be over-ridden with a command line option: -g or --glade-path

I'm not great with setup.py; I created the one I have based on a recipe from somewhere. I might be able to figure out how to auto-generate a config file that can be used to get the default glade path and default locale path, but since I never install it directly with setup.py I've never encountered a problem with it.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers