Tiny Core Linux

General TC => General TC Talk => Topic started by: hal9king on April 07, 2015, 07:37:57 PM

Title: The Desktop directory
Post by: hal9king on April 07, 2015, 07:37:57 PM
I'm running fluxbox on TinyCore Plus (6.1).  A newbie question:

I see a Desktop directory  under /home/tc .. it serves no purpose under the way I'm running fluxbox.
Question is how do I get rid of it?  Deleting doesn't work, after awhile it comes back. So some process is creating it.
So the basic question is what process is doing this and how can it be disabled?
Title: Re: The Desktop directory
Post by: curaga on April 08, 2015, 03:28:55 AM
Could be the startup script of something (grep Desktop /usr/local/tce.installed/*) or maybe you're running something that can make use of the directory (pcmanfm or similar).
Title: Re: The Desktop directory
Post by: Misalf on April 08, 2015, 01:40:18 PM
I've got ~/Desktop too without using it.
In my case I have WINE in suspect.

Also, Firefox creates ~/Downloads, I think.

You could add those to  /opt/.xfiletool.lst ?
Title: Re: The Desktop directory
Post by: hal9king on April 08, 2015, 11:05:18 PM
Been looking for likely suspects .. haven't found anything yet.
Tried grep Desktop /usr/local/tce.installed/* -- nothing
Currently I have a process checking for the directory and deleting it -- rather harsh solution.

It is my understanding that opt/.xfiletool.lst  is only effective at BackUp so that doesn't stop it from reappearing -- correct?
Title: Re: The Desktop directory
Post by: Misalf on April 09, 2015, 12:09:30 AM
Yes.
Title: Re: The Desktop directory
Post by: Rich on April 09, 2015, 12:12:34 AM
Hi hal9king
Quote
It is my understanding that opt/.xfiletool.lst  is only effective at BackUp so that doesn't stop it from reappearing -- correct?
Yes. That will only keep it out of your backup so you don't restore it next time you boot.
Quote
Currently I have a process checking for the directory and deleting it -- rather harsh solution.
That's a good start. Now have your process execute the following line when it detects the Desktop directory:
Code: [Select]
popup DesktopThat should pop up a small dialog box and based on what you were doing at the time give a clue as to which app is causing it.
Title: Re: The Desktop directory
Post by: hal9king on April 09, 2015, 12:16:51 AM
Thanks, I'll give it a try!
Title: Re: The Desktop directory
Post by: Rich on April 09, 2015, 12:23:04 AM
Hi hal9king
If that doesn't work, here's a plan B. Delete the Desktop directory and create a file called Desktop. Make sure you have syslogd
running. When the app tries to access the directory, it might leave an error message in  /var/log/messages.
Title: Re: The Desktop directory
Post by: hal9king on April 09, 2015, 12:28:54 AM
Now that is a good thought! Thanks!
Title: Re: The Desktop directory
Post by: Rich on April 09, 2015, 12:38:50 AM
Hi hal9king
Let us know what you find.
Title: Re: The Desktop directory
Post by: hal9king on April 09, 2015, 12:41:43 AM
I have both in place -- may be awhile took nearly an hour last time I saw it.
Title: Re: The Desktop directory
Post by: coreplayer2 on April 09, 2015, 01:41:49 AM
I think you'll find that Firefox or one of it's dependencies creates a desktop directory on first run after a reboot, why? I have no idea but obviously the directory is expected..
Title: Re: The Desktop directory
Post by: hal9king on April 09, 2015, 02:17:52 AM
That could make sense.  Last time I saw it, it was after a reboot -- and likely didn't occur until I started firefox -- sounds like a Windows feature -- i.e. annoying.  It looks to be in the morning before I might have a chance to reboot.
Title: Re: The Desktop directory
Post by: Juanito on April 09, 2015, 02:38:35 AM
Not exactly a windows feature:

http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
Title: Re: The Desktop directory
Post by: hal9king on April 09, 2015, 03:24:19 AM
Yes, I found the same ... but its typical of the 'thought' process where the providers assumes he knows better than the user.

I've implemented the fix -- not fully tested as yet.  Nearly makes me want to dump firefox.
Title: Re: The Desktop directory
Post by: hal9king on April 09, 2015, 04:11:34 AM
OK confirmed testing works!