Xfce Forum

Sub domains
 

You are not logged in.

#1 2018-11-28 21:04:54

jack_the_pirate
Member
Registered: 2016-09-10
Posts: 59

SOLVED Can't change icon on Directory Menu folder in Fedora 29

Hi,

I can't change icon, on Directory Menu, in Fedora 29.
I'm referring to "Directory Menu" applet, in the panels, which I use a lot.

I can do it on Debian 8.
I have taken screenshots to atach, but I can't see how to attach here.

But in Fedora, nothing happens when I click on the icon.
It should open a window to choose the icon file, like Debian does.

I like both Debian and Fedora, and I really would like to solve this because I use image of letters, so I can have multiple Directory Menus launchers in my panel.

Can you help?

Last edited by jack_the_pirate (2019-08-30 21:57:25)


Queen - Megadeth - Metallica - 80's

Offline

#2 2018-11-29 02:27:06

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: SOLVED Can't change icon on Directory Menu folder in Fedora 29

From the Live CD, it generates this error (in ~/.xsession-errors):

(xfce4-panel:2171): libdirectorymenu-CRITICAL **: 21:18:59.690: directorymenu.c:390 (directory_menu_plugin_configure_plugin_icon_chooser): expression 'XFCE_IS_PANEL_IMAGE (plugin->dialog_icon)' failed.

This bug was fixed 5 days ago: https://git.xfce.org/xfce/xfce4-panel/c … 591fa95a70


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2018-11-29 02:34:02

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: SOLVED Can't change icon on Directory Menu folder in Fedora 29

You can work around it though.

First, get the plugin number. In my case:

xfconf-query -c xfce4-panel -lv | grep directorymenu

... yields:

/plugins/plugin-14                 directorymenu
/plugins/plugin-16                 directorymenu

...I have two directory menu plugins active (14 and 16).

To manually change the icon, run the following command:

xfconf-query -c xfce4-panel -p /plugins/plugin-16/icon-name -t string -s gtk-edit --create

...and replace the "16" with your plugin number and "gtk-edit" with the name of the icon that you want to use.

To see the complete xfconf layout of your panel plugins, look at the xfce4-settings-editor in the xfce4-panel channel.

Last edited by ToZ (2018-11-29 02:35:06)


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#4 2018-11-29 10:39:22

jack_the_pirate
Member
Registered: 2016-09-10
Posts: 59

Re: SOLVED Can't change icon on Directory Menu folder in Fedora 29

Thank you very much, ToZ! smile
Your help is valuable!

Regards


Queen - Megadeth - Metallica - 80's

Offline

#5 2019-08-27 14:25:32

jack_the_pirate
Member
Registered: 2016-09-10
Posts: 59

Re: SOLVED Can't change icon on Directory Menu folder in Fedora 29

ToZ wrote:

and "gtk-edit" with the name of the icon that you want to use.

What about if someone wants to use a custom image and not an already existente icon?

I've tried with gtk-edit, but couldn't make it work.

Is it possible?

I have about 22 panel items in which I use custom images.


Queen - Megadeth - Metallica - 80's

Offline

#6 2019-08-27 19:33:21

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: SOLVED Can't change icon on Directory Menu folder in Fedora 29

This works on my system (don't have fedora 29 handy to test).

Copy your image file to ~/.icons (create the folder if it doesn't exist). As a test, lets call the icon file "my-icon.png".

You can then use the following command to set it as the default Directory Menu icon:

xfconf-query -c xfce4-panel -p /plugins/plugin-16/icon-name -s my-icon

...where "16" is the ID of your plugin. Note that when using this command we leave off the filename extension.

Or you can find it in xfce4-settings-editor and make the change there.

Let me know if this works for you in fedora 29.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2019-08-27 22:32:08

jack_the_pirate
Member
Registered: 2016-09-10
Posts: 59

Re: SOLVED Can't change icon on Directory Menu folder in Fedora 29

ToZ wrote:

This works on my system (don't have fedora 29 handy to test).

Copy your image file to ~/.icons (create the folder if it doesn't exist). As a test, lets call the icon file "my-icon.png".

You can then use the following command to set it as the default Directory Menu icon:

xfconf-query -c xfce4-panel -p /plugins/plugin-16/icon-name -s my-icon

...where "16" is the ID of your plugin. Note that when using this command we leave off the filename extension.

Or you can find it in xfce4-settings-editor and make the change there.

Let me know if this works for you in fedora 29.

Yes, it did work!
But now I am on Fedora 30, and not Fedora 29 which was my Fedora version when I started this thread.

Thank you, ToZ!


Queen - Megadeth - Metallica - 80's

Offline

Board footer

Powered by FluxBB