[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to use remote desktop?



> On Wed, Nov 01, 2017 at 03:22:10PM +0100, roman.meier@gismap.ch wrote:
>> >> Again, this issue occurs on xrdp only (not 100% sure though).
>> >
>> > It means that /usr/games is not in $PATH. I will check on my xrdp
>> server
>> > later.
>> >
>> > In the meantime, you can add something like
>> >
>> >     export PATH=$PATH:/usr/games
>> >
>> > to a file in /etc/profile.d
>
> Adding four lines to /etc/xrdp/startwm.sh fixes the PATH issue for me.
> Don't know if this change could cause some side effect. Maybe
> /etc/profile isn't sourced for a reason?
>
> --- /etc/xrdp/startwm.sh	2017-10-09 16:41:44.000000000 +0200
> +++ startwm.sh	2017-11-01 17:56:13.042371563 +0100
> @@ -2,6 +2,10 @@
>  # xrdp X session start script (c) 2015 mirabilos
>  # published under The MirOS Licence
>
> +if test -r /etc/profile; then
> +	. /etc/profile
> +fi
> +
>  if test -r /etc/default/locale; then
>  	. /etc/default/locale
>  	test -z "${LANG+x}" || export LANG

This fix works perfectly for me!!! Thanks!!!

Kind regards,
Roman





Reply to: