Xfce Forum

Sub domains
 

You are not logged in.

#1 Yesterday 16:17:34

MitraMai
Member
Registered: 2019-10-02
Posts: 8
LinuxFirefox 140.0

Thunar-plugin missing icon

Hello!

I managed to build the thunar-nextcloud-plugin, from this https://github.com/frederikmoellers/thu … oud-plugin. It seems to work just fine, except that is lacking the icon. I assume "call" for the icon is in this file https://github.com/frederikmoellers/thu … provider.c but my coding skills are very limited, and the plugin is old, and perhaps the code-snippet that handles the icon i deprecated (it says something about GTK2).

But does anyone with some python-skills know how to get the plugin use an icon? It is not essential for the plugin to work, but it bothers my sensitive esthetic mind that I see this black and red square instead of the Nextcloud icon.

Regards

/M

Offline

#2 Yesterday 16:41:09

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 12,486
LinuxFirefox 148.0

Re: Thunar-plugin missing icon

But does anyone with some python-skills know how to get the plugin use an icon?

It's actually written in C.

From tnp-provider.c:

    item = thunarx_menu_item_new("Tnp::share",
                                 _("Share via _Nextcloud"),
                                 tooltip,
                                 "Nextcloud");

The last parameter is the name of the icon to use. You can either change that name in the source code to use another name in your icon theme, or you could try putting the nextcloud icon in ~/.icons (create the folder if it doesn't exist) and name it "Nextcloud.png". You might need to log out and back in again for it to take effect (or completely close thunar via "thunar -q" and restart it).


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.014 seconds, 8 queries executed - Memory usage: 523.22 KiB (Peak: 524.2 KiB) ]