Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-10-16 17:06:21

Tabespe
Member
Registered: 2019-12-04
Posts: 64

remove a program from the list "favourite Apps."

open thunar -> right click to a *.xlsx file  -> click on "properties" -> click "open with" -> "other programs":
https://www.bilder-upload.eu/bild-031cd … 7.png.html

There I have added by mistake "adblock" as favourite App.

Question:
How can I remove "adblock" there?

What I have already tried out:
Right click on "adblock". What happens: A field appears with a greyed out text "remove starter". So as it is greyed out, I can not remove it.

Thank you.

Offline

#2 2020-10-17 12:07:29

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 7,116

Re: remove a program from the list "favourite Apps."

Delete its entries from ~/.config/mimeapps.list.

Offline

#3 2020-10-17 14:59:36

Tabespe
Member
Registered: 2019-12-04
Posts: 64

Re: remove a program from the list "favourite Apps."

Thank you ToZ.

I was successful. I had to search for the word "advert" in ~/.config/mimeapps.list.

But just wondering. What does it mean, when the "remove starter"-button is not active?

Offline

#4 2020-10-17 16:16:50

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 7,116

Re: remove a program from the list "favourite Apps."

Tabespe wrote:

But just wondering. What does it mean, when the "remove starter"-button is not active?

My guess is that the desktop file for that entry is located in /usr/share/applications and you do not have the rights to make changes to the file.

Offline

#5 2020-10-17 16:56:02

Tabespe
Member
Registered: 2019-12-04
Posts: 64

Re: remove a program from the list "favourite Apps."

Yes, it could in fact be, that this desktop files are in /usr/share/applications.

Quote: "... and you do not have the rights to make changes to the file."

But would this action change the desktop file? Wouldn't pressing the "remove Starter"-button just change the file ~/.config/mimeapps.list?
I understand, that this means "remove starter from ~/.config/mimeapps.list".
Do I miss anything?

Offline

#6 2020-10-17 17:12:33

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 7,116

Re: remove a program from the list "favourite Apps."

Digging through the code.....

Here:

  /* append the "Remove Launcher" item */
  item = gtk_menu_item_new_with_mnemonic (_("_Remove Launcher"));
  gtk_widget_set_sensitive (item, g_app_info_can_delete (app_info));
  g_signal_connect_swapped (G_OBJECT (item), "activate", G_CALLBACK (thunar_chooser_dialog_action_remove), dialog);
  gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
  gtk_widget_show (item);

It sets the sensitivity (greyed out) of the menu item based on the g_app_info_can_delete GIO function and creates a callback to thunar_chooser_dialog_action_remove. In this function, there is the comment:

"This will remove the application launcher that appears in the file "
"context menu, but will not uninstall the application itself.\n\n"
"You can only remove application launchers that were created using "
"the custom command box in the \"Open With\" dialog of the file "
"manager."));

So it appears that it will only delete custom commands, but not actually remove associations.

There is also this bug report.

Offline

Board footer

Powered by FluxBB