Kupfer (pandora's box)

Won't work if missing Desktop directory

Reported by gdw2 on 2012-02-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kupfer
Undecided
Unassigned

Bug Description

I don't have a lot installed on my system (Arch) right now. Mostly just openbox. Incendently, I didn't have a ~/Desktop directory, which kupfer didn't like. Upon creating my ~/Desktop directory, it works fine. I would think that it should gracefully continue to work if that directory is missing.

OSError: [Errno 2] No such file or directory: '/home/gwarner/Desktop'
Traceback (most recent call last):
  File "/usr/share/kupfer/kupfer/core/data.py", line 310, in search
    decorator=decorator)
  File "/usr/share/kupfer/kupfer/core/data.py", line 108, in search
    items = item_check(src.get_leaves())
  File "/usr/share/kupfer/kupfer/obj/base.py", line 421, in get_leaves
    return sort_func(self.get_items())
  File "/usr/share/kupfer/kupfer/obj/sources.py", line 164, in get_items
    it = S.get_leaves()
  File "/usr/share/kupfer/kupfer/obj/base.py", line 429, in get_leaves
    datatools.SavedIterable(sort_func(self.get_items()))
  File "/usr/share/kupfer/kupfer/utils.py", line 77, in locale_sort
    seq = seq if isinstance(seq, list) else list(seq)
  File "/usr/share/kupfer/kupfer/obj/sources.py", line 133, in get_items
    yield (self.use_reprs and s.get_leaf_repr()) or SourceLeaf(s)
  File "/usr/share/kupfer/kupfer/obj/sources.py", line 112, in get_leaf_repr
    if os.path.samefile(self.directory, os.path.expanduser("~")):
  File "/usr/lib/python2.7/posixpath.py", line 153, in samefile
    s1 = os.stat(f1)

Please try to remove `/Desktop from "Indexed Folders" in Kupfer's Preferences.

gdw2 (gdwarner) wrote :

That allows the program to work. Thanks.

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

Other bug subscribers