Solved Icons left that I can't remove from Kali.

Solved issue

hacktheworld

Active Member
Joined
Mar 28, 2023
Messages
277
Reaction score
114
Credits
2,104

Attachments

  • Screenshot_2024-09-26_11-44-22.png
    Screenshot_2024-09-26_11-44-22.png
    25.4 KB · Views: 71


The following is from wine wiki (can't find link), I only assume same applies to other icons, so first verify this is true:

Markdown (GitHub flavored):
### Wipe menu items

The list in Application menu
- `~/.local/share/desktop-directories/`
- `~/.local/share/applications/PROGRAM_NAMEPrograms/`
- `~/.config/menus/applications-merged/PROGRAM_NAME-*.menu`

Possible files are also:

- `~/.local/share/applications/PROGRAM_NAME-protocol*.desktop`

### Clean the Open With List

The list in right click context menu -> open with

- `~/.local/share/mime/application/PROGRAM-extension*`
- `~/.local/share/mime/packages/PROGRAM-extension*`
- `~/.local/share/applications/PROGRAM-extension*.desktop`
- `~/.local/share/icons/hicolor/*/apps/`


The above applies to locally installed programs, other system wide locations of icons of interest are:
/usr/share/applications/

This is possilby not definitive or correct, use it as hints to figure out.

It is suggested to reinstall any software depending on those icons if that's the plan, or reinstall software for which you accidentally removed icons.
 
The following is from wine wiki (can't find link), I only assume same applies to other icons, so first verify this is true:

Markdown (GitHub flavored):
### Wipe menu items

The list in Application menu
- `~/.local/share/desktop-directories/`
- `~/.local/share/applications/PROGRAM_NAMEPrograms/`
- `~/.config/menus/applications-merged/PROGRAM_NAME-*.menu`

Possible files are also:

- `~/.local/share/applications/PROGRAM_NAME-protocol*.desktop`

### Clean the Open With List

The list in right click context menu -> open with

- `~/.local/share/mime/application/PROGRAM-extension*`
- `~/.local/share/mime/packages/PROGRAM-extension*`
- `~/.local/share/applications/PROGRAM-extension*.desktop`
- `~/.local/share/icons/hicolor/*/apps/`


The above applies to locally installed programs, other system wide locations of icons of interest are:
/usr/share/applications/

This is possilby not definitive or correct, use it as hints to figure out.

It is suggested to reinstall any software depending on those icons if that's the plan, or reinstall software for which you accidentally removed icons.

If I right-click on the icons in question (Edit Application), I have the output as in the screenshot.
 

Attachments

  • Screenshot_2024-09-26_14-18-31.png
    Screenshot_2024-09-26_14-18-31.png
    34.3 KB · Views: 63
If I right-click on the icons in question (Edit Application), I have the output as in the screenshot.
These entries are defined in *.desktop files which need to be removed from locations I mentioned.
programs which own desktop files need to be uninstalled prior that as well, and should remove menu entries, if not you delete desktop files manually.
 
These entries are defined in *.desktop files which need to be removed from locations I mentioned.
programs which own desktop files need to be uninstalled prior that as well, and should remove menu entries, if not you delete desktop files manually.
I have tried:
cd /usr/share/applications
sudo rm <name-of-application>.desktop

I have also tried to search the file with Catfish File Search
Both attempts were unsuccessful.
 
Icons are generally located in either ~/.icons or /usr/share/icons, are there any freenet related directories in there? If so, try sudo rm -r /path/to/freenet/icons , sudo not required if located in ~/.icons
 
sudo rm -r /path/to/freenet/ico
Icons are generally located in either ~/.icons or /usr/share/icons, are there any freenet related directories in there? If so, try sudo rm -r /path/to/freenet/icons , sudo not required if located in ~/.icons
Thank you, but the output is always the same:
No such file or directory
 
I don't mean to sound insulting; I don't know your experience level so I have to cover the basics.

You're not actually using /path/to/freenet/icons are you? You'd be surprised how many people just copy and paste. That directory will most definitely not exist.

Just to make sure we're on the same page.

cd /usr/share/icons

look for any folders labeled freenet with ls. If there is a folder there, then you can sudo rm -r /usr/share/icons/nameoffolder where nameoffolder = whatever the name of the freenet folder is.

You can do the same thing with the ~/.icons folder with cd ~/.icons and seeing if there is any directory freenet related in there.

Again, just covering the basics here.

If you want to scan your entire root partition for anything freenet related you can do
Code:
find / -type d -name "freenet" 2>/dev/null
and if anything turns up it will list it. Do note this process may take a while depending on your hardware capabilities.
 
I don't mean to sound insulting; I don't know your experience level so I have to cover the basics.

You're not actually using /path/to/freenet/icons are you? You'd be surprised how many people just copy and paste. That directory will most definitely not exist.

Just to make sure we're on the same page.

cd /usr/share/icons

look for any folders labeled freenet with ls. If there is a folder there, then you can sudo rm -r /usr/share/icons/nameoffolder where nameoffolder = whatever the name of the freenet folder is.

You can do the same thing with the ~/.icons folder with cd ~/.icons and seeing if there is any directory freenet related in there.

Again, just covering the basics here.

If you want to scan your entire root partition for anything freenet related you can do
Code:
find / -type d -name "freenet" 2>/dev/null
and if anything turns up it will list it. Do note this process may take a while depending on your hardware capabilities.

My background is basic, I have never taken a programming course, but I understand something about it.

Below is what I tried to do and the output:

sunrise㉿sunrise)-[/usr/share/icons]
└─$ sudo rm -r /usr/share/icons/freenet
[sudo] password for sunrise:
rm: cannot remove '/usr/share/icons/freenet': No such file or directory

sunrise㉿sunrise)-[/usr/share/icons]
└─$ sudo rm -r/icons/freenet
rm: invalid option -- '/'
Try 'rm --help' for more information.

(sunrise㉿sunrise)-[/usr/share/icons]
└─$ sudo rm -r/icons freenet
rm: invalid option -- '/'
Try 'rm --help' for more information.
 
Last edited:
To be more clear, I didn't mean to insinuate the files/directory was there. I was only pointing out why you were getting that error.
 
I managed to delete all Freenet icons using Catfish File Search: in the upper right click on the three dots and click on "show hiddens files" and "Search file contents"and typing exactly the name of the icon (e,g. "shutdown Freenet") when it appears, right click and delete, and you’re done! :D
 
Last edited:
Most GUI based file explorers offer the "show hidden files" option in the context menu. You can also do it via CLI with

ls -a

and just remove the desired files. Had I known they were hidden I'd of recommended this earlier. Though I'm pretty sure the

find / -type d \( -name "freenet" -o -name ".freenet" \) 2>/dev/null

command would show hidden files as well provided you add ".freenet" to include said hidden files.

Glad you got it worked out.
 
Last edited:
Most GUI based file explorers offer the "show hidden files" option in the context menu.

It's often also just ctrl + H to show hidden files in a GUI file manager. It's not universal, but it's something I've noticed along the way.
 
@hacktheworld if you are satisfied that your problem is solved, you can mark it as same.

Go to your first Post
Choose Edit
Select No Prefix
Choose Solved

Cheers

Wizard
 

Members online


Top