Adding "Documents Folder" to: "system:/

James Richard Tyrer tyrerj at acm.org
Fri Jul 8 03:04:11 BST 2005


Thiago Macieira wrote:
> James Richard Tyrer wrote:
> 
>>I think that there is general agreement that if the "Documents path" is
>>not set to $HOME (which is the default) that a link: "Documents Folder"
>>should be added to "system:/".
> 
> 
> I agree.
> 
> 
>>So, how do we do this?
>>
>>It appears that what is needed is to have a function that checks to see
>>if "Documents" is set to $HOME for the current user and if not: Copies a
>>prototype "documents.desktop" file to:
>>
>>	$HOME/.kde/share/apps/systemview
>>
>>and then uses 'sed' to set the URL correctly.  If "Documents" is set to
>>$HOME, then the file should be deleted if it exists.
>>
>>This function needs to be called whenever something sets "Documents" in
>>'kdeglobals".
> 
> 
> I don't like this solution. It would be much simpler if it could be 
> provided in code.

I can't say that I am really in love with it either.  It would probably 
work, but it certainly isn't elegant.

So, if you have a better idea, I would like to hear about it.

-- 
JRT





More information about the kde-core-devel mailing list