You are not logged in.

#1 2016-03-30 09:06:56

LuX
Member
From: France
Registered: 2010-06-14
Posts: 79

lightdm: Add icons in session's menu (solved)

Hello

Lightdm provides a menu allowing to select a desktop (gnome, xfce,...) among those listed in the *.desktop files in /usr/share/xsessions. It also displays in the topbar an icon corresponding to the selected desktop (a foot for gnome, etc). But some entries are lacking a specific icon : a default one is displayed instead, looking like the icon of a text file.

How can I attach another icon to a specific entry?

It seems that the icon corresponding to gnome.desktop, say, is /usr/share/icons/hicolor/scalable/places/gnome_badge-symbolic.svg. For example, if I rename a file myWM.desktop according to an existing svg file in this directory such as mate_badge-symbolic.svg (that is if I call it mate.desktop) this icon is used by lightdm.

On the other hand, if I make a copy of mate_badge-symbolic.svg and name it myWM_badge-symbolic.svg then lightdm doesn't use this icon for myWM.desktop. Adding the field 'Icon= /usr/share/icons/hicolor/scalable/places/myWM_badge-symbolic.svg' in myWM.desktop also has no effect.

I have found various related questions on the web, suggesting to put the *badge-symbolic.svg file in /usr/share/pixmaps instead or convert it to a png file, but every such attempt failed for me until now.

Thank you for your help,

LuX

Last edited by LuX (2016-03-30 21:07:05)

Offline

#2 2016-03-30 21:06:28

LuX
Member
From: France
Registered: 2010-06-14
Posts: 79

Re: lightdm: Add icons in session's menu (solved)

Hi!

Oddly enough, the problem has disappeared: the session icon that I previously placed in /usr/share/icons/hicolor/scalable/places/myWM_badge-symbolic.svg now appears in the session menu, and in the topbar when "myWM" is selected.

In the meantime I have set 'icon-theme-name=' in /etc/lightdm/lightdm-gtk-greeter.conf (from no-value to 'hydroxygen'), but canceled this change latter. Is it the reason why lightdm realised that a new icon session was available, and kept this information once for all? I'm puzzled but... it's OK.

LuX

Last edited by LuX (2016-03-30 21:12:38)

Offline

Board footer

Powered by FluxBB