[Portland] [PATCH] Ensure directory created in xdg-mime's make_default_generic()

Nathan Kidd nathan-svn at spicycrypto.ca
Mon Nov 27 08:57:47 PST 2006


Hi,

This small patch gets rid of output like:

> ./xdg-mime: line 545: /root/.local/share/applications/defaults.list.new: No such file or directory
> grep: /root/.local/share/applications/defaults.list.new: No such file or directory
> ./xdg-mime: line 547: /root/.local/share/applications/defaults.list.new: No such file or directory
> ./xdg-mime: line 549: /root/.local/share/applications/defaults.list.new: No such file or directory
> mv: cannot stat `/root/.local/share/applications/defaults.list.new': No such file or directory

when the xdg-mime is run by a user that doesn't have 
~/.local/share/applications/ already existing.

The problem was in make_default_generic() but I also tweaked 
make_default_kde() to match, for robustness.

The patch is against CVS HEAD and is just plain cvs diff output.  Let me 
know if another format is preferred.

Thanks for xdg-utils.

-Nathan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xdg-mime-mkdir.patch
Type: text/x-patch
Size: 707 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/portland/attachments/20061127/5e5a616f/xdg-mime-mkdir.bin


More information about the Portland mailing list