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 599352 - hamster-applet fails to startup cause path checks (Debian Unstable system)
hamster-applet fails to startup cause path checks (Debian Unstable system)
Status: RESOLVED DUPLICATE of bug 594551
Product: hamster-applet
Classification: Deprecated
Component: general
2.28.x
Other Linux
: Normal normal
: ---
Assigned To: hamster-applet-maint
hamster-applet-maint
Depends on:
Blocks:
 
 
Reported: 2009-10-22 21:46 UTC by Andrea Veri
Modified: 2009-10-22 22:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andrea Veri 2009-10-22 21:46:07 UTC
we already discussed this issue on our IRC channel (#gnome-debian) some weeks ago.
This code prevents hamster-applet to startup correctly:

        if os.path.realpath(__file__).startswith(defs.PYTHONDIR):
            data_dir = os.path.join(defs.DATA_DIR, "hamster-applet")
        else:
            data_dir = os.path.realpath(os.path.join(os.path.dirname(__file__), '..', 'data'))

it would be nice to have it fixed somehow, I don't know which way you wanna follow to adjust it. We fixed it by totally removing the path checks:

-        if os.path.realpath(__file__).startswith(defs.PYTHONDIR):
-            data_dir = os.path.join(defs.DATA_DIR, "hamster-applet")
-        else:
-            data_dir = os.path.realpath(os.path.join(os.path.dirname(__file__), '..', 'data'))
+        data_dir = os.path.join(defs.DATA_DIR, "hamster-applet")
+

I'm CCing Joss so that he can give you some hints if needed.
Comment 1 Patryk Zawadzki 2009-10-22 22:30:30 UTC

*** This bug has been marked as a duplicate of bug 594551 ***