Page 1 of 1

lxsession - No icons in lxsession-logout window

Posted: Wed Oct 29, 2008 9:20 pm
by inurfez
Hello,

I'm on a debian lenny. After the basic install, I couldn't reboot, shutdown, suspend etc ... throught the logout button in the panel.

So I almost followed these instructions :
To be able to shutdown, reboot, suspend and so on from lxde make sure that DBus and HAL are running. Then add your user to the power group.
As a root, I did :

Code: Select all

gpasswd -a <user> powerdev
where <user> if my user name of course.

Now I can shutdown, reboot etc ... but these buttons don't have no icons, see the jpg.
I got the same problem regardless the Icon theme I choose ( here Gnome icons ).

I hope someone can help me. Bye

Re: lxsession - No icons in lxsession-logout window

Posted: Thu Oct 30, 2008 5:53 pm
by delirium
check if your user is allowed to read these icons?
they schould be somewhere around /usr/share/lxpanel

Re: lxsession - No icons in lxsession-logout window

Posted: Thu Oct 30, 2008 6:28 pm
by inurfez
So I checked that, and my user can read every files in /usr/share/lxpanel/.

But apparently, the missing icons are in another place, because the icon of the green running guy ( see picture above ) is not in /usr/share/lxpanel/...

So, I may not have the good rights on the missing icons, but I looked for them (actually the icon I can see, the green running guy) but I didn't find it.

So if I don't know where to look for.

Thanks anyway

Re: lxsession - No icons in lxsession-logout window

Posted: Thu Oct 30, 2008 6:33 pm
by delirium
sorry.... you find these images in:
/usr/share/lxsession/images
or at least so do I..

Re: lxsession - No icons in lxsession-logout window

Posted: Thu Oct 30, 2008 9:10 pm
by inurfez
Okay, I'm sorry but actually it depends of the icon theme, I installed a new one and I got icons.

I would like to know how to configure that in a config file for example.

Because, I suppose the icons button were missing in the theme I used before. It would be fun to know how to change this easily.

Sorry for the none problem.

Re: lxsession - No icons in lxsession-logout window

Posted: Tue Dec 09, 2008 8:57 pm
by cwickert
I can confirm this problem and it does _not_depend on the icon theme, because if the current theme does not provide the necessary icons, lxsession should fall back to the ones from /usr/share/lxsession/images. But this is not the case, I guess the icon search path is not properly expanded.
Looking at lxsession-lite-0.3.6/lxsession-logout/main.c:

Code: Select all

     back = create_background();
 
     gtk_icon_theme_append_search_path( gtk_icon_theme_get_default(),
-                                            PACKAGE_DATA_DIR "/images" );
 
     dlg = gtk_dialog_new_with_buttons( _("Logout"), (GtkWindow*)back, GTK_DIALOG_MODAL,
                                                GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, NULL );
Shouldn't that be PACKAGE_DATA_DIR "/lxsession/images"?

Re: lxsession - No icons in lxsession-logout window

Posted: Tue Mar 17, 2009 8:38 am
by kinu
cwickert wrote:I can confirm this problem and it does _not_depend on the icon theme, because if the current theme does not provide the necessary icons, lxsession should fall back to the ones from /usr/share/lxsession/images. But this is not the case, I guess the icon search path is not properly expanded.
Looking at lxsession-lite-0.3.6/lxsession-logout/main.c:

Code: Select all

     back = create_background();
 
     gtk_icon_theme_append_search_path( gtk_icon_theme_get_default(),
-                                            PACKAGE_DATA_DIR "/images" );
 
     dlg = gtk_dialog_new_with_buttons( _("Logout"), (GtkWindow*)back, GTK_DIALOG_MODAL,
                                                GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, NULL );
Shouldn't that be PACKAGE_DATA_DIR "/lxsession/images"?

I've tried a lot of themes, and only a few ones have these icons. I think you're right. Is it a known bug?, Is it going to be fixed?

Re: lxsession - No icons in lxsession-logout window

Posted: Tue Mar 17, 2009 9:22 am
by cwickert
PCMan is pretty busy ATM, so I'll look intro fixing it, but I can't promise anything since I'm pretty busy too. :?

As a workaround you can

Code: Select all

mkdir /usr/share/icons/hicolor/48x48/actions/ (if it's not already there)
cp /usr/share/lxsession/images/*.png /usr/share/icons/hicolor/48x48/actions/
gtk-update-icon-cache /usr/share/icons/hicolor
Regards,
Christoph