GNOME Bugzilla – Bug 353731
sniff has path to glade and icons file paths hardcoded in script
Last modified: 2006-09-11 16:38:35 UTC
Same as bug #353719, the sniff script has the icon and glade file paths hard coded in the script, which causes problems when you install into a different prefix. I used the same work around as in #353719. An other options might be to use a conf file that was created with the correct paths at build time.
Thanks for the report, and the fix. I modified it very slightly, and committed it: try: x = gtk.glade.XML('sniff.glade') except RuntimeError: import sys exec_root = sys.argv[0].split("/bin/")[0] if exec_root[0] is not '/': exec_root = "/usr" x = gtk.glade.XML(exec_root + '/share/dogtail/glade/sniff.glade')