LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-17-2008, 10:12 AM   #1
harecanada
LQ Newbie
 
Registered: May 2008
Posts: 20

Rep: Reputation: 0
can't remove icon from desktop


I'm running Kubuntu Hardy Heron. I tried to download a program called Super. It's a video converter, but only works for Windows and doesn't work with WINE in Linux. My problem is I can't get the dam super.exe icon off my desktop or system. I thought I could just send it to Trash but that doesn't work. Everytime I reboot , it is still on my desktop. Tel me there is a simple solution to this, please!
 
Old 05-17-2008, 11:06 AM   #2
jpk
Member
 
Registered: Apr 2006
Location: Copenhagen, Denmark
Distribution: FC5->Ubuntu 6.10->Ubuntu 7.04->Ubuntu 7.10->Ubuntu 8.04
Posts: 39

Rep: Reputation: 16
hi,

Open Terminal (in Accessories), then type:

cd Desktop [enter]
rm -rf super.exe [enter]
 
Old 05-17-2008, 11:20 AM   #3
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Code:
rm -rf super.exe
Two points here. First of all the '-r' switch is unnecessary (because super.exe is a file, not a directory, so there is no point in doing a recursive operation, which -r means). Secondly, -f is a little dangerous since it doesn't ask questions, just removes the file - so if you happened to make a typo or something, you could easily remove a lot of files you really didn't want to. In this case it's maybe ok, because you probably don't have files on your desktop that are named closely to super.exe that you could accidentally remove..but if you however do use the '-r' switch, which makes rm work recursively on subdirectories and files, and did a small mistake, you could end up removing a lot of files.
Code:
rm -i super.exe
This asks if you'd like to remove the file currently being operated, in this case only super.exe.

The same should happen if you select the file on your desktop, then hold SHIFT while pressing DEL/DELETE - instead of moving to trash the file is immediately removed.
 
Old 05-17-2008, 12:54 PM   #4
harecanada
LQ Newbie
 
Registered: May 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Hi,
Thanks for responding so quickly. I tried all of these suggestions but the icon is still there.
"supersetup.exe"

darrell@harecanada-desktop:~$ sudo rm -i super.exe
[sudo] password for darrell:
rm: cannot remove `super.exe': No such file or directory
darrell@harecanada-desktop:~$ sudo rm -rf super.exe
darrell@harecanada-desktop:~$
The same should happen if you select the file on your desktop, then hold SHIFT while pressing DEL/DELETE - instead of moving to trash the file is immediately removed.

Any other ideas?
harecanada
 
Old 05-17-2008, 02:27 PM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Quote:
Originally Posted by harecanada View Post
rm: cannot remove `super.exe': No such file or directory
You were not in the correct place when you tried to remove the file. The -f option in the second command prevented this message to display again.

Please, try to locate where it is and issue the following commands:
Code:
ls -l *.exe
lsattr *.exe
The latter will show special attributes (if any) that can prevent deleting.
 
Old 05-17-2008, 06:45 PM   #6
harecanada
LQ Newbie
 
Registered: May 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks for trying to help colucix
How do I locate where it is on my system?
harecanadacolucix
 
Old 05-17-2008, 07:33 PM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Ok. First double check the name of the file (in a previous post you called it supersetup.exe, whereas in your first post you named super.exe). Then open a terminal, go to the directory corresponding to your desktop, maybe "Desktop" (I don't know on Kubuntu for sure). Anyway look around using cd and ls, until you locate the file.

Or eventually use the find command:
Code:
find $HOME -name super.exe
or whatever the file is called. You should get the full path of the file. Go to the directory containing the file, and post the output of the commands suggested in my previous message.
 
Old 05-18-2008, 12:39 PM   #8
harecanada
LQ Newbie
 
Registered: May 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Hi colucix,
Here's what's happening.
I entered the following:
darrell@harecanada-desktop:~$ cd ~/Desktop
darrell@harecanada-desktop:~/Desktop$ ls -l *.exe
-rw-r--r-- 1 darrell darrell 0 2008-05-18 13:14 SU
darrell@harecanada-desktop:~/Desktop$ lsattr *.exe
------------------ SUPERsetup.exe
darrell@harecanada-desktop:~/Desktop$ sudo rm -i ------------------ SUPERsetup.exe
[sudo] password for darrell:
rm: unrecognized option `------------------'
Try `rm --help' for more information.
darrell@harecanada-desktop:~/Desktop$ sudo rm -i SUPERsetup.exe
rm: remove regular empty file `SUPERsetup.exe'? y
darrell@harecanada-desktop:~/Desktop$ cd
darrell@harecanada-desktop:~$

So it looks like it removed it, but then I did a cold reboot and it is still on my Desktop. I'm confused. Either I'm doing something wrong or I'm not understanding enough of the syntax to get this removed.
harecanada
 
Old 05-19-2008, 03:24 AM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Quote:
Originally Posted by harecanada View Post
So it looks like it removed it, but then I did a cold reboot and it is still on my Desktop.
But did you see it actually disappeared before rebooting?
 
Old 05-19-2008, 05:26 AM   #10
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
Originally Posted by harecanada View Post
darrell@harecanada-desktop:~/Desktop$ ls -l *.exe
-rw-r--r-- 1 darrell darrell 0 2008-05-18 13:14 SU
darrell@harecanada-desktop:~/Desktop$ lsattr *.exe
------------------ SUPERsetup.exe
Ok so it indeed seems to be in your desktop (the files visible in your "desktop" are in the /home/darrell/Desktop directory -- that is, ~/Desktop). If you use lsattr, it prints the dashes in front of the filename, but they are not part of it -- hence trying to remove "------------------SUPERsetup.exe" will fail, because the file does not have dashes in it's name.

Did you try to select the file on your desktop with your mouse, then hold SHIFT key, press DELETE key and release SHIFT? Did it work or did you get an error?

On the command line you can try this:
Code:
cd
find Desktop -name "*.exe"
That first changes current working directory to your home directory and then uses 'find' to find any files that are somewhere under your desktop directory (or it's subdirectories) whose file ends with .exe -- shortly, that should print the SUPERsetup.exe if it is there. And if it indeed prints it, you can use the same approach to remove it:
Code:
find Desktop -name "*.exe" -exec rm -i '{}' +
That should ask you one by one whether you'd like to remove any files that have .exe in the end. Answer 'y' (and hit ENTER to confirm) for the SUPERsetup.exe, and 'n' for any other files it finds that you do not want to remove.
Or just use rm -i with the full filename you got from 'find':
Code:
rm -i Desktop/SUPERsetup.exe
^in the above I assume 'find' printed "Desktop/SUPERsetup.exe".

Filenames are case sensitive, so SUPERsetup.exe and SUPErsetup.exe are two different things - be careful when typing. And if the filename contains any special characters such as spaces, quotation marks, parenthesis or such, you should either use escape character (slash \) in front of each of those special characters, or just enclose the whole filename into quotes, like "filename.exe" to prevent the shell from interpreting the special characters when there is no need for that.

Last edited by b0uncer; 05-19-2008 at 05:31 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
remove trash icon on Gnome 2.4 desktop dfuse Linux - General 11 08-01-2011 07:46 PM
Gnome - how to remove shortcut link icon from desktop ncbillp Linux - Desktop 3 05-01-2007 10:51 AM
Remove trash icon from desktop or change trash iscon cad Linux - General 7 02-27-2007 12:50 AM
Desktop icons dosnt have ToolTips (apear when mouse hover above desktop icon) Acidx Linux - General 1 12-03-2006 08:48 PM
Cannot Remove Volume Group Icon from Desktop rsmith Linux - Newbie 0 01-16-2005 08:21 PM


All times are GMT -5. The time now is 03:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration