Bug 234755 - error handling in copy-paste code
error handling in copy-paste code
Product: Fedora
Classification: Fedora
Component: xdg-user-dirs (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Alexander Larsson
Depends On:
  Show dependency treegraph
Reported: 2007-04-01 09:30 EDT by Matthias Clasen
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-04-11 10:29:16 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Matthias Clasen 2007-04-01 09:30:04 EDT
I used the lookup function to make gnome-screensavers slide show screensaver
use PICTURES. It turns out people don't like the fact that it falls back to
HOME if user-dirs are not set up. 

To fix this I had to use 
 strcmp (result, "/tmp") == 0 || strcmp (result, g_get_home_dir()) == 0)
which is a bit ugly. It would be nicer if I could either get some kind of
error reported, or pass in a replacement object a la

default = g_build_filename (g_get_home_dir (), "Pictures", NULL);
path = xdg_user_dirs_lookup_or_else ("PICTURES", default);
Comment 1 Alexander Larsson 2007-04-11 10:29:16 EDT
Fixed in xdg-user-dirs-0.6-1.fc7

Note You need to log in before you can comment on or make changes to this bug.