Thanks for the hint. I had a look on
/opt/ltsp/i386/usr/share/ldm/rc.d/X50-generate-env

line 17:
The command "basename readlink -qs /etc/alternatives/x-session-manager" 
results to "startxfce4"

line 19:
There are two files in /usr/share/xsessions and both are matching
admini@LTS2:/usr/share/xsessions$ grep -R "Exec=startxfce4" *
xfce.desktop:Exec=startxfce4
xubuntu.desktop:Exec=startxfce4

admini@LTS2:/usr/share/xsessions$ grep -lR "Exec=startxfce4" *
xfce.desktop
xubuntu.desktop

The sed command takes only the first match:
admini@LTS2:/usr/share/xsessions$ grep -lR "Exec=startxfce4" * | sed -n 
'/\(.*\)\.desktop/{s//\1/p;q}'
xfce

But it seems to be, that "sometimes" (why ever) the file 
xubuntu(.desktop) is found. Because, if I change the line
Name=Xubuntu Session
in xubuntu.desktop
to
Name=XFCE

env gives "XDG_CURRENT_DESKTOP=XFCE"

and the missing entries aren't missing any more.

(Just to remember: which line inside the *.desktop-file is found, is 
defined by line 28 and 30)

Greetings
Frank


Am 30.05.2016 11:05, schrieb Alkis Georgopoulos:
> The XDG_CURRENT_DESKTOP variable is wrong, that's why the entries are
> missing.
>
> It's set by this script:
> ($CHROOT)/usr/share/ldm/rc.d/X50-generate-env
>
> I don't have any Xubuntu installations handy and it'll take much time
> to troubleshoot this over email.
>
> You might be able to find me in IRC so that I can see it with remote
> support:
> http://ltsp.org/irc
>
> Otherwise someone else might have more time than me currently and be
> able to help via email.
>
> Cheers,
> Alkis Georgopoulos
> LTSP developer
> Professional LTSP support: alk...@gmail.com
>
>
> On 30/05/2016 11:50 πμ, Frank Heuser wrote:
>> Hello Alkis,
>> as requested:
>>
>> Server:
>> admini@LTS2:~$ env | grep XDG
>> XDG_VTNR=7
>> XDG_SESSION_ID=c22
>> XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/admini
>> XDG_MENU_PREFIX=xfce-
>> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session10
>> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
>> XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/usr/share/upstart/xdg:/etc/xdg:/etc/xdg
>>
>> XDG_SESSION_TYPE=x11
>> XDG_SEAT=seat0
>> XDG_SESSION_DESKTOP=xubuntu
>> XDG_DATA_DIRS=/usr/share/xubuntu:/usr/share/xfce4:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/usr/share
>>
>> XDG_RUNTIME_DIR=/run/user/1000
>> XDG_CURRENT_DESKTOP=XFCE
>> admini@LTS2:~$
>>
>> Thin Client:
>> admini@LTS2:/etc/xdg/menus$ env | grep XDG
>> XDG_SESSION_ID=361
>> XDG_MENU_PREFIX=xfce-
>> XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/usr/share/upstart/xdg:/etc/xdg:/etc/xdg
>>
>> XDG_DATA_DIRS=/usr/share/xubuntu:/usr/share/xfce4:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/usr/share
>>
>> XDG_RUNTIME_DIR=/run/user/1000
>> XDG_CURRENT_DESKTOP=Xubuntu Session
>


-- 
Wilfried Schmidt Maschinenbau     Tel.  (+49) 7071 38870
Aixer Strasse 44                  Fax.  (+49) 7071 38876
D-72072 Tuebingen                 email i...@nabendynamo.de
Germany                           http://www.nabendynamo.de


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to