[Lubuntu] Permanently delete user Public folders?
John Hupp
lubuntu at prpcompany.com
Tue Feb 26 17:07:53 UTC 2013
On 2/26/2013 11:20 AM, Ioannis Vranos wrote:
> On Tue, Feb 26, 2013 at 12:08 AM, John Hupp <lubuntu at prpcompany.com> wrote:
>> On 2/23/2013 4:58 PM, P Bielecki wrote:
>>
>> Hi John,
>>
>> I think the mentioned dirs are created at user login by
>> /usr/bin/xdg-user-dirs-update
>> executed from /etc/X11/Xsession.d/60xdg-user-dirs-update
>>
>> Have a look in /etc/xdg/user-dirs.conf and try setting
>> XDG_PUBLICSHARE_DIR=""
>> or perhaps
>> enabled=False
>>
>> or changing content of the following for each individual user:
>> ~/.config/user-dirs.dirs
>>
>> I hope this helps.
>>
>> cheers!
>>
>> Thanks for the very helpful clues (and to Chris Green for confirming part 2
>> of that).
>>
>> Since I was more interested in a global application, I looked at
>> /etc/xdg/user-dirs.conf.
>>
>> The portion of interest there reads:
>>
>> # This controls the behaviour of xdg-user-dirs-update which is run on user
>> login
>> # You can also have per-user config in ~/.config/user-dirs.conf, or specify
>> # the XDG_CONFIG_HOME and/or XDG_CONFIG_DIRS to override this
>> #
>>
>> enabled=True
>>
>> I don't know what "or specify the XDG_CONFIG_HOME and/or XDG_CONFIG_DIRS to
>> override this" means -- where, for instance, those values should be
>> specified.
>>
>> But it seemed to me that setting enabled=False here might cause
>> xdg-user-dirs-update not to run. And again, I don't know what the
>> consequences of that would be.
>>
>> There didn't seem to be support for entering XDG_PUBLICSHARE_DIR="" here in
>> this file.
>>
>> But sitting right there also is /etc/xdg/user-dirs.defaults. And there,
>> changing PUBLICSHARE=Public to PUBLICSHARE= gave me what I was looking for.
>>
>> Oddly enough, event with key search words from your post, I could not find
>> official documentation of this anywhere at wiki.ubuntu.com or
>> help.ubuntu.com. There is https://wiki.ubuntu.com/TIPs_of_use_ubuntu which
>> looks relevant, but there is something wrong with the page's coding and its
>> rendering makes it nearly useless.
> Since Public directories are empty, and thus they occupy almost no
> space at all, is it really necessary to delete them?
>
Necessary? Clearly not necessary.
But in the small collection of default directories in the home
directory, I didn't want to have one that by its name indicates a
function that it does not actually support. (One would have to install
gnome-user-share to make it functional.) That doesn't seem very elegant.
And in my case, I was also setting up a Shared directory that had full
access by all users.
So the user would have seen in the same home directory Public and
Shared. One easily imagines user reactions like "Huh? What's the
difference?"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/lubuntu-users/attachments/20130226/2e6291f5/attachment.html>
More information about the Lubuntu-users
mailing list