Tiny Core Linux
General TC => General TC Talk => Topic started 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?
-
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).
-
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 ?
-
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?
-
Yes.
-
Hi hal9king
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.
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:
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.
-
Thanks, I'll give it a try!
-
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.
-
Now that is a good thought! Thanks!
-
Hi hal9king
Let us know what you find.
-
I have both in place -- may be awhile took nearly an hour last time I saw it.
-
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..
-
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.
-
Not exactly a windows feature:
http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
-
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.
-
OK confirmed testing works!