LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Deleting Icons on Desktop (https://www.linuxquestions.org/questions/mandriva-30/deleting-icons-on-desktop-88475/)

Micro420 09-02-2003 01:03 PM

Deleting Icons on Desktop
 
How do I delete icons on my desktop? I have the XawTV icon on my desktop, but I cannot get rid of that. It will not let me delete it. I do not want it showing on the desktop.

I want my desktop to only show the "Home" icon and the "Trash bin" icon.

Proud 09-02-2003 01:13 PM

Assuming the default KDE desktop for a non-root user:
Right click desktop -> Behaviours, disable um/mounted devices being shown. Also accessable via the Kde Control Centre -> Look N Feel.

Micro420 09-04-2003 01:32 AM

I did what you said and unchecked all those things. However, the XawTV thing is still there and I have no clue how to get rid of it.

I logged on as root and went to /usr/share/apps/kdesktop/Desktop and deleted it from there. However, everytime I reboot it comes back! I want to get rid of the XawTV icon as I don't really use my TV card at all.

Can someone tell me how to disable that icon from coming up everytime I reboot???!?!? It's really annoying.

bitpicker 09-04-2003 09:27 AM

Maybe you can change the setup of your video card to not include the TV functionality. I think that icon might be similar to the gtkam icon which always pops up on my desktop as soon as I attach my camera. If the TV functionality is (can be) switched off it might disappear.

Robin

Micro420 09-04-2003 03:57 PM

You must be right Robin as probably Mandrake autodetects these hardware and just automatically assumes you want it on your desktop for a quickstart. Anyone know how to disable it?
It's actually a seperate TV card NOT attached to my video card.

Weiss Nacht Klavier!

quatsch 09-04-2003 04:13 PM

is that thing in your ~/.Desktop directory (not the one is /usr/share...)? If it is, maybe you could delete it and get rid of write permissions for ~/.Desktop Kind of brute force but might work. Make sure you don't change the permissions for Trash and Home, though.

trpn 09-04-2003 06:53 PM

to get rid of the xawtv icon you can do this
1. look in the scripts that are provided with the dynamic package ( i think they are located in /etc/dynamic)
2. there is a script that pertains to webcams
3. comment out the parts of the script that pertain to xawtv/tvcards
4. delete the icon from your desktop AND the icon file that the desktop icon is linked to.
done

sorry i can;t give you a better descriotion about doing this but i am at work and I am working on wonderful win95.

Micro420 09-04-2003 07:06 PM

Quote:

Originally posted by trpn
to get rid of the xawtv icon you can do this
1. look in the scripts that are provided with the dynamic package ( i think they are located in /etc/dynamic)
2. there is a script that pertains to webcams
3. comment out the parts of the script that pertain to xawtv/tvcards
4. delete the icon from your desktop AND the icon file that the desktop icon is linked to.
done

sorry i can;t give you a better descriotion about doing this but i am at work and I am working on wonderful win95.

Uff!! I think you're on to something because I see in script file that it is referencing the TVTuner card and the XawTV software. If you get a chance, can you tell me what exactly to do? I don't know what to do.

trpn 09-04-2003 07:42 PM

yeah i can, if you want me to post it sooner, rather than later since I don't have access to my computer at the moment can you tell me where the xawtv destop link is pointing to and can you post the webcam script so i can see it (and so i can remember what I did). just copy and paste it.

Micro420 09-05-2003 12:48 AM

Quote:

Originally posted by trpn
yeah i can, if you want me to post it sooner, rather than later since I don't have access to my computer at the moment can you tell me where the xawtv destop link is pointing to and can you post the webcam script so i can see it (and so i can remember what I did). just copy and paste it.
XawTV desktop is here:

/usr/share/apps/kdesktop/Desktop/dynamic_dev_v4l_video0.desktop

Webcame script:

#!/bin/sh
#---------------------------------------------------------------
# Project : Mandrake Linux
# Module : dynamic
# File : webcam.script
# Version : $Id: webcam.script,v 1.3 2002/04/29 18:21:21 flepied Exp $
# Author : Frederic Lepied
# Created On : Thu Sep 13 01:09:08 2001
# License : GPL
# Purpose : script run when a webcam is plugged.
#---------------------------------------------------------------

. /etc/dynamic/scripts/functions.script

check_activated $0

procfilename="/proc/video/dev/`basename $2`"

if grep -q VID_TYPE_TUNER $procfilename > /dev/null 2>&1; then
call_hooks $1 tvtuner $2 ""
else
call_hooks $1 webcam $2 ""
fi

# webcam.script ends here

trpn 09-05-2003 10:16 AM

delete /usr/share/apps/kdesktop/Desktop/dynamic_dev_v4l_video0.desktop


then just do this to your webcam script:
#if grep -q VID_TYPE_TUNER $procfilename > /dev/null 2>&1; then
# call_hooks $1 tvtuner $2 ""
#else

add the # to the beginning of the line...
i just commented everything out since i don't have a webcam either

then delete the link on your desktop and it shouldn't come back

Micro420 09-05-2003 06:40 PM

Quote:

Originally posted by trpn
delete /usr/share/apps/kdesktop/Desktop/dynamic_dev_v4l_video0.desktop


then just do this to your webcam script:
#if grep -q VID_TYPE_TUNER $procfilename > /dev/null 2>&1; then
# call_hooks $1 tvtuner $2 ""
#else

add the # to the beginning of the line...
i just commented everything out since i don't have a webcam either

then delete the link on your desktop and it shouldn't come back

Unfortunately this did not work. You mention webcam, but I do not have a webcam - it is a TV Card. Does this make a difference? Any other suggestions?


trpn 09-05-2003 07:18 PM

I mentioned webcam because this script is for both your webcam and your tvtuner.. both use /dev/video# where # is 0,1,2 etc... make sure you delete the file that the desktop link is pointing too, and the desktop link. If you don't have a webcam then comment everything out (put # signs in front of every line of the script) .....you could just try deleting the whole script.. or move it somehwere else just in case you need to move it back

the scripts are basically used to place an icon on your desktop if you plug in such things like a webcam, camera, etc... the tvtuner is always plugged in (in most cases) so thats why you have the icon.

its works for me, so i guess too bad for you if it doesn't!
sorry, i tried.

Micro420 09-05-2003 08:32 PM

Quote:

Originally posted by trpn

its works for me, so i guess too bad for you if it doesn't!

Geez, thanks for the kind words.

I got it fixed - just renamed the files like you said.


All times are GMT -5. The time now is 09:03 PM.