lxsession - No icons in lxsession-logout window

All questions and problems regarding LXDE components including LXSession, LXAppearance, GPicView, Leafpad, LXTerminal, Xarchiver, LXNM to be discussed here.

For PCManFM questions, please ask in the dedicated forum below.
Locked
inurfez
Posts: 6
Joined: Wed Oct 29, 2008 6:18 pm

lxsession - No icons in lxsession-logout window

Post 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
Attachments
snapshot
snapshot
capture.jpg (31.45 KiB) Viewed 10006 times
delirium
Posts: 30
Joined: Tue Oct 07, 2008 11:15 am

Re: lxsession - No icons in lxsession-logout window

Post by delirium »

check if your user is allowed to read these icons?
they schould be somewhere around /usr/share/lxpanel
inurfez
Posts: 6
Joined: Wed Oct 29, 2008 6:18 pm

Re: lxsession - No icons in lxsession-logout window

Post 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
delirium
Posts: 30
Joined: Tue Oct 07, 2008 11:15 am

Re: lxsession - No icons in lxsession-logout window

Post by delirium »

sorry.... you find these images in:
/usr/share/lxsession/images
or at least so do I..
inurfez
Posts: 6
Joined: Wed Oct 29, 2008 6:18 pm

Re: lxsession - No icons in lxsession-logout window

Post 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.
cwickert
Posts: 47
Joined: Tue Dec 09, 2008 7:36 pm
Contact:

Re: lxsession - No icons in lxsession-logout window

Post 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"?
Image
kinu
Posts: 4
Joined: Mon Oct 13, 2008 9:36 pm

Re: lxsession - No icons in lxsession-logout window

Post 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?
cwickert
Posts: 47
Joined: Tue Dec 09, 2008 7:36 pm
Contact:

Re: lxsession - No icons in lxsession-logout window

Post 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
Image
Locked