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 334149 - traceback on 'Programs' backend
traceback on 'Programs' backend
Status: RESOLVED FIXED
Product: deskbar-applet
Classification: Deprecated
Component: general
2.13.x
Other Linux
: Normal major
: ---
Assigned To: Deskbar Applet Maintainer(s)
Deskbar Applet Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2006-03-10 18:09 UTC by Gustavo Carneiro
Modified: 2006-03-10 18:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gustavo Carneiro 2006-03-10 18:09:31 UTC
Deskbar v. 2.13.92.

Initializing Programs
Error while initializing Programs: File 'file:///home/gjc/.local/share/applications/ooo2-base.desktop' is not a regular file or directory.
Traceback (most recent call last):
  • File "/usr/lib/python2.4/site-packages/deskbar/ModuleLoader.py", line 169 in initialize_module
    context.module.initialize ()
  • File "/usr/lib/deskbar-applet/handlers/programs.py", line 146 in initialize
    self._scan_desktop_files()
  • File "/usr/lib/deskbar-applet/handlers/programs.py", line 154 in _scan_desktop_files
    result = parse_desktop_file(f)
  • File "/usr/lib/deskbar-applet/handlers/programs.py", line 183 in parse_desktop_file
    desktop = deskbar.gnomedesktop.item_new_from_file(desktop, deskbar.gnomedesktop.LOAD_ONLY_IF_EXISTS)
GError: File 'file:///home/gjc/.local/share/applications/ooo2-base.desktop' is not a regular file or directory.

The file in question is a symlink:

gjc@spectrum:~$ ls -l /home/gjc/.local/share/applications/ooo2-base.desktop
0 lrwxrwxrwx 1 gjc gjc 59 2006-02-22 19:20 /home/gjc/.local/share/applications/ooo2-base.desktop -> /chroot/unstable32/usr/share/applications/ooo2-base.desktop

Could it be a libgnomedesktop error?
Comment 1 Raphael Slinckx 2006-03-10 18:19:33 UTC
It looks like. I can add a try/catch around the call, but it shouldn't fail for symlinks (libgnome-desktop)

Do you think it's wise to reassign ? (which module ?)
Comment 2 Gustavo Carneiro 2006-03-10 18:21:51 UTC
OK, now I also noticed it is a dangling symlink.  Still, deskbar should just ignore the error and move on...
So libgnomedesktop is not to blame after all.
Comment 3 Raphael Slinckx 2006-03-10 18:41:58 UTC
Allright, adding a try catch clause