Hiding/Removing Icons


Forum: X and Fluxbox
Topic: Hiding/Removing Icons
started by: novdar

Posted by novdar on Dec. 03 2005,00:03
Looking for some help. I want to remove some icons from the desktop.  I switched to JWM which looks great.  I was able to put a new Background in the '.fluxbox/backgrounds' directory but I cannot seem to delete icons I do not want from the '.xtdesktop' directory.   I mean they go away when I use 'rm' but after a restart they come back.  I created a test file in the '.xtdesktop' directory and it survived a reboot.  I am not sure how to get rid of the icons I don't like like "Aterm". I am running DSL2 Embedded.  Thanks.
Posted by mikshaw on Dec. 03 2005,05:21
The icons are copied into /home/dsl/.xtdesktop when you boot a liveCD or frugal system.  Doesn't matter how many times you delete, they will always come back unless you remaster.  I assume it works the same in embedded.

You can have the files automatically deleted so they are gone before you see them.  Add commands to remove the unwanted files in /opt/bootlocal.sh or /home/dsl/.bash_profile and back up that file:

rm /home/dsl/.xtdesktop/Xterm.*

Posted by novdar on Dec. 04 2005,00:45
mikshaw,  thanks.  I was poking around today and thought I would have to remaster the KNOPPIX image.  Issuing the 'rm' command at runtime is certainly easier.  I might still go down the path of remastering the the KNOPPIX image, I found the desktop stuff in the /etc path.

I really appreciate you taking the time to point me in the right direction.  I am going to assume that I can also issue any other commad in the places you referenced.  I plan to mount another device automatically and start a service.  

DSL is pretty damn awesome.  I was playing around with SLAX but even as a local full install (not even frugal like) it was too slow.  DSL is incredible especially after boosting up the embedded version's ram to 256.

Posted by mikshaw on Dec. 04 2005,01:55
With that particular issue (removing icons), the command can be done from any standard startup script, but the two mentioned are more appropriate because they run only once in a typical DSL system.  Determining which script to use for which command mostly depends on which user needs to run the command and when it needs to run.

/opt/bootlocal.sh runs (as root) at the end of the boot process...used for anything automatically run as root (services, daemons).
/home/dsl/.bash_profile runs (as dsl) when dsl logs in...used for anything automatically run once as dsl that does not require a graphical system.
/home/dsl/.xinitrc runs when the graphical system starts...used for anything that requires a graphical interface.
/home/dsl/.bashrc runs every time you open a new shell...can be used for various things, but typically used to set aliases and bash prompt.  It runs MANY times during a typical session, so you don't want to use it for starting applications.

Posted by novdar on Dec. 05 2005,04:58
mikshaw.  I added the 'rm' script to .bash_profile but it still prompts to confirm the delete before the GUI started.  How can I overcome this prompting?  Also how would I place commands to change the properties of other .lnk files I want to remain on the desktop.  Thanks.
Posted by cbagger01 on Dec. 05 2005,06:18
Try

rm -f filename

Posted by roberts on Dec. 05 2005,06:22
Lots of changes comming soon to this area controlled via a GUI tool.
Deleteing icons, adding icons, single or double click, dragging icons, or specify auto arrange parameters. I should have it ready for the first RC of 2.1 rsn.

Posted by novdar on Dec. 05 2005,23:36
Sounds great.  Really looking forward to seeing the next RC.
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.