After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 353731 - sniff has path to glade and icons file paths hardcoded in script
sniff has path to glade and icons file paths hardcoded in script
Status: RESOLVED FIXED
Product: dogtail
Classification: Deprecated
Component: Sniff
CVS HEAD
Other Linux
: Normal normal
: ---
Assigned To: Dogtail Maintainers
Dogtail Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-08-31 20:10 UTC by Tim Lee
Modified: 2006-09-11 16:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tim Lee 2006-08-31 20:10:32 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.
Comment 1 Zack Cerza 2006-09-11 16:38:35 UTC
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')