Remote Desktop via xrdp: Missing items in Applications menu and indicator applet
I followed Griffon's guide to install xrdp on Ubuntu 18.04 (http://c-nergy.be/blog/?p=12761) but modified /etc/xrdp/startwm.sh
to use it with gnome-flashback-metacity
:
#test -x /etc/X11/Xsession && exec /etc/X11/Xsession
#exec /bin/sh /etc/X11/Xsession
#gnome-session
gnome-session --session=gnome-flashback-metacity --disable-acceleration-check & gnome-panel
I could log in from Windows client (session: Xorg) but the desktop seems to be missing various items in Applications menu (particularly Terminal), as well as the indicator icons. I could start gnome-terminal using the "right-click on Home, Open in Terminal" trick.
NB: Based on past experience, I believe this might be related to permissions. However, I cannot tell if this is a problem with xrdp or GNOME Flashback or just bad config on my part. Regular login at the physical machine works just fine.
Current /etc/xrdp/startwm.sh:
#!/usr/bin/env bash
#
# This script is an example. You might need to edit this script
# depending on your distro if it doesn't work for you.
#fixGDM-by-Griffon
gnome-shell-extension-tool -e ubuntu-appindicators@ubuntu.com
gnome-shell-extension-tool -e ubuntu-dock@ubuntu.com
if [ -f ~/.xrdp-fix-theme.txt ]; then
echo 'no action required'
else
gsettings set org.gnome.desktop.interface gtk-theme 'Ambiance'
#gsettings set org.gnome.desktop.interface icon-theme 'Humanity'
gsettings set org.gnome.desktop.interface icon-theme 'Ubuntu-mono-dark'
echo 'check file for xrdp theme fix' >~/.xrdp-fix-theme.txt
fi
#
# Uncomment the following line for debug:
# exec xterm
# Execution sequence for interactive login shell - pseudocode
#
# IF /etc/profile is readable THEN
# execute ~/.bash_profile
# END IF
# IF ~/.bash_profile is readable THEN
# execute ~/.bash_profile
# ELSE
# IF ~/.bash_login is readable THEN
# execute ~/.bash_login
# ELSE
# IF ~/.profile is readable THEN
# execute ~/.profile
# END IF
# END IF
# END IF
pre_start()
{
if [ -r /etc/profile ]; then
. /etc/profile
fi
if [ -r ~/.bash_profile ]; then
. ~/.bash_profile
else
if [ -r ~/.bash_login ]; then
. ~/.bash_login
else
if [ -r ~/.profile ]; then
. ~/.profile
fi
fi
fi
return 0
}
# When loging out from the interactive shell, the execution sequence is:
#
# IF ~/.bash_logout exists THEN
# execute ~/.bash_logout
# END IF
post_start()
{
if [ -r ~/.bash_logout ]; then
. ~/.bash_logout
fi
return 0
}
#start the window manager
wm_start()
{
if [ -r /etc/default/locale ]; then
. /etc/default/locale
export LANG LANGUAGE
fi
# debian
if [ -r /etc/X11/Xsession ]; then
pre_start
export DESKTOP_SESSION=gnome-flashback-metacity
export XDG_CURRENT_DESKTOP="GNOME-Flashback:GNOME"
export GDMSESSION=gnome-flashback-metacity
export XDG_SESSION_DESKTOP=gnome-flashback-metacity
. /etc/X11/Xsession
post_start
exit 0
fi
# el
if [ -r /etc/X11/xinit/Xsession ]; then
pre_start
. /etc/X11/xinit/Xsession
post_start
exit 0
fi
# suse
if [ -r /etc/X11/xdm/Xsession ]; then
# since the following script run a user login shell,
# do not execute the pseudo login shell scripts
. /etc/X11/xdm/Xsession
exit 0
fi
pre_start
xterm
post_start
}
#. /etc/environment
#export PATH=$PATH
#export LANG=$LANG
# change PATH to be what your environment needs usually what is in
# /etc/environment
#PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
#export PATH=$PATH
# for PATH and LANG from /etc/environment
# pam will auto process the environment file if /etc/pam.d/xrdp-sesman
# includes
# auth required pam_env.so readenv=1
wm_start
exit 1
Current .xsession:
/usr/lib/gnome-session/run-systemd-session gnome-session-flashback.target
18.04 systemd remote-desktop xrdp gnome-flashback
add a comment |
I followed Griffon's guide to install xrdp on Ubuntu 18.04 (http://c-nergy.be/blog/?p=12761) but modified /etc/xrdp/startwm.sh
to use it with gnome-flashback-metacity
:
#test -x /etc/X11/Xsession && exec /etc/X11/Xsession
#exec /bin/sh /etc/X11/Xsession
#gnome-session
gnome-session --session=gnome-flashback-metacity --disable-acceleration-check & gnome-panel
I could log in from Windows client (session: Xorg) but the desktop seems to be missing various items in Applications menu (particularly Terminal), as well as the indicator icons. I could start gnome-terminal using the "right-click on Home, Open in Terminal" trick.
NB: Based on past experience, I believe this might be related to permissions. However, I cannot tell if this is a problem with xrdp or GNOME Flashback or just bad config on my part. Regular login at the physical machine works just fine.
Current /etc/xrdp/startwm.sh:
#!/usr/bin/env bash
#
# This script is an example. You might need to edit this script
# depending on your distro if it doesn't work for you.
#fixGDM-by-Griffon
gnome-shell-extension-tool -e ubuntu-appindicators@ubuntu.com
gnome-shell-extension-tool -e ubuntu-dock@ubuntu.com
if [ -f ~/.xrdp-fix-theme.txt ]; then
echo 'no action required'
else
gsettings set org.gnome.desktop.interface gtk-theme 'Ambiance'
#gsettings set org.gnome.desktop.interface icon-theme 'Humanity'
gsettings set org.gnome.desktop.interface icon-theme 'Ubuntu-mono-dark'
echo 'check file for xrdp theme fix' >~/.xrdp-fix-theme.txt
fi
#
# Uncomment the following line for debug:
# exec xterm
# Execution sequence for interactive login shell - pseudocode
#
# IF /etc/profile is readable THEN
# execute ~/.bash_profile
# END IF
# IF ~/.bash_profile is readable THEN
# execute ~/.bash_profile
# ELSE
# IF ~/.bash_login is readable THEN
# execute ~/.bash_login
# ELSE
# IF ~/.profile is readable THEN
# execute ~/.profile
# END IF
# END IF
# END IF
pre_start()
{
if [ -r /etc/profile ]; then
. /etc/profile
fi
if [ -r ~/.bash_profile ]; then
. ~/.bash_profile
else
if [ -r ~/.bash_login ]; then
. ~/.bash_login
else
if [ -r ~/.profile ]; then
. ~/.profile
fi
fi
fi
return 0
}
# When loging out from the interactive shell, the execution sequence is:
#
# IF ~/.bash_logout exists THEN
# execute ~/.bash_logout
# END IF
post_start()
{
if [ -r ~/.bash_logout ]; then
. ~/.bash_logout
fi
return 0
}
#start the window manager
wm_start()
{
if [ -r /etc/default/locale ]; then
. /etc/default/locale
export LANG LANGUAGE
fi
# debian
if [ -r /etc/X11/Xsession ]; then
pre_start
export DESKTOP_SESSION=gnome-flashback-metacity
export XDG_CURRENT_DESKTOP="GNOME-Flashback:GNOME"
export GDMSESSION=gnome-flashback-metacity
export XDG_SESSION_DESKTOP=gnome-flashback-metacity
. /etc/X11/Xsession
post_start
exit 0
fi
# el
if [ -r /etc/X11/xinit/Xsession ]; then
pre_start
. /etc/X11/xinit/Xsession
post_start
exit 0
fi
# suse
if [ -r /etc/X11/xdm/Xsession ]; then
# since the following script run a user login shell,
# do not execute the pseudo login shell scripts
. /etc/X11/xdm/Xsession
exit 0
fi
pre_start
xterm
post_start
}
#. /etc/environment
#export PATH=$PATH
#export LANG=$LANG
# change PATH to be what your environment needs usually what is in
# /etc/environment
#PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
#export PATH=$PATH
# for PATH and LANG from /etc/environment
# pam will auto process the environment file if /etc/pam.d/xrdp-sesman
# includes
# auth required pam_env.so readenv=1
wm_start
exit 1
Current .xsession:
/usr/lib/gnome-session/run-systemd-session gnome-session-flashback.target
18.04 systemd remote-desktop xrdp gnome-flashback
If you still have problems it might be good idea to update your post with your current configuration files. P.S. GNOME should be all capitalized.
– muktupavels
Dec 15 '18 at 16:25
gnome-panel
should not be ongnome-session --session...
line.
– muktupavels
Dec 15 '18 at 16:57
Does log files have some indication whygnome-panel
does not start?
– muktupavels
Dec 15 '18 at 23:12
add a comment |
I followed Griffon's guide to install xrdp on Ubuntu 18.04 (http://c-nergy.be/blog/?p=12761) but modified /etc/xrdp/startwm.sh
to use it with gnome-flashback-metacity
:
#test -x /etc/X11/Xsession && exec /etc/X11/Xsession
#exec /bin/sh /etc/X11/Xsession
#gnome-session
gnome-session --session=gnome-flashback-metacity --disable-acceleration-check & gnome-panel
I could log in from Windows client (session: Xorg) but the desktop seems to be missing various items in Applications menu (particularly Terminal), as well as the indicator icons. I could start gnome-terminal using the "right-click on Home, Open in Terminal" trick.
NB: Based on past experience, I believe this might be related to permissions. However, I cannot tell if this is a problem with xrdp or GNOME Flashback or just bad config on my part. Regular login at the physical machine works just fine.
Current /etc/xrdp/startwm.sh:
#!/usr/bin/env bash
#
# This script is an example. You might need to edit this script
# depending on your distro if it doesn't work for you.
#fixGDM-by-Griffon
gnome-shell-extension-tool -e ubuntu-appindicators@ubuntu.com
gnome-shell-extension-tool -e ubuntu-dock@ubuntu.com
if [ -f ~/.xrdp-fix-theme.txt ]; then
echo 'no action required'
else
gsettings set org.gnome.desktop.interface gtk-theme 'Ambiance'
#gsettings set org.gnome.desktop.interface icon-theme 'Humanity'
gsettings set org.gnome.desktop.interface icon-theme 'Ubuntu-mono-dark'
echo 'check file for xrdp theme fix' >~/.xrdp-fix-theme.txt
fi
#
# Uncomment the following line for debug:
# exec xterm
# Execution sequence for interactive login shell - pseudocode
#
# IF /etc/profile is readable THEN
# execute ~/.bash_profile
# END IF
# IF ~/.bash_profile is readable THEN
# execute ~/.bash_profile
# ELSE
# IF ~/.bash_login is readable THEN
# execute ~/.bash_login
# ELSE
# IF ~/.profile is readable THEN
# execute ~/.profile
# END IF
# END IF
# END IF
pre_start()
{
if [ -r /etc/profile ]; then
. /etc/profile
fi
if [ -r ~/.bash_profile ]; then
. ~/.bash_profile
else
if [ -r ~/.bash_login ]; then
. ~/.bash_login
else
if [ -r ~/.profile ]; then
. ~/.profile
fi
fi
fi
return 0
}
# When loging out from the interactive shell, the execution sequence is:
#
# IF ~/.bash_logout exists THEN
# execute ~/.bash_logout
# END IF
post_start()
{
if [ -r ~/.bash_logout ]; then
. ~/.bash_logout
fi
return 0
}
#start the window manager
wm_start()
{
if [ -r /etc/default/locale ]; then
. /etc/default/locale
export LANG LANGUAGE
fi
# debian
if [ -r /etc/X11/Xsession ]; then
pre_start
export DESKTOP_SESSION=gnome-flashback-metacity
export XDG_CURRENT_DESKTOP="GNOME-Flashback:GNOME"
export GDMSESSION=gnome-flashback-metacity
export XDG_SESSION_DESKTOP=gnome-flashback-metacity
. /etc/X11/Xsession
post_start
exit 0
fi
# el
if [ -r /etc/X11/xinit/Xsession ]; then
pre_start
. /etc/X11/xinit/Xsession
post_start
exit 0
fi
# suse
if [ -r /etc/X11/xdm/Xsession ]; then
# since the following script run a user login shell,
# do not execute the pseudo login shell scripts
. /etc/X11/xdm/Xsession
exit 0
fi
pre_start
xterm
post_start
}
#. /etc/environment
#export PATH=$PATH
#export LANG=$LANG
# change PATH to be what your environment needs usually what is in
# /etc/environment
#PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
#export PATH=$PATH
# for PATH and LANG from /etc/environment
# pam will auto process the environment file if /etc/pam.d/xrdp-sesman
# includes
# auth required pam_env.so readenv=1
wm_start
exit 1
Current .xsession:
/usr/lib/gnome-session/run-systemd-session gnome-session-flashback.target
18.04 systemd remote-desktop xrdp gnome-flashback
I followed Griffon's guide to install xrdp on Ubuntu 18.04 (http://c-nergy.be/blog/?p=12761) but modified /etc/xrdp/startwm.sh
to use it with gnome-flashback-metacity
:
#test -x /etc/X11/Xsession && exec /etc/X11/Xsession
#exec /bin/sh /etc/X11/Xsession
#gnome-session
gnome-session --session=gnome-flashback-metacity --disable-acceleration-check & gnome-panel
I could log in from Windows client (session: Xorg) but the desktop seems to be missing various items in Applications menu (particularly Terminal), as well as the indicator icons. I could start gnome-terminal using the "right-click on Home, Open in Terminal" trick.
NB: Based on past experience, I believe this might be related to permissions. However, I cannot tell if this is a problem with xrdp or GNOME Flashback or just bad config on my part. Regular login at the physical machine works just fine.
Current /etc/xrdp/startwm.sh:
#!/usr/bin/env bash
#
# This script is an example. You might need to edit this script
# depending on your distro if it doesn't work for you.
#fixGDM-by-Griffon
gnome-shell-extension-tool -e ubuntu-appindicators@ubuntu.com
gnome-shell-extension-tool -e ubuntu-dock@ubuntu.com
if [ -f ~/.xrdp-fix-theme.txt ]; then
echo 'no action required'
else
gsettings set org.gnome.desktop.interface gtk-theme 'Ambiance'
#gsettings set org.gnome.desktop.interface icon-theme 'Humanity'
gsettings set org.gnome.desktop.interface icon-theme 'Ubuntu-mono-dark'
echo 'check file for xrdp theme fix' >~/.xrdp-fix-theme.txt
fi
#
# Uncomment the following line for debug:
# exec xterm
# Execution sequence for interactive login shell - pseudocode
#
# IF /etc/profile is readable THEN
# execute ~/.bash_profile
# END IF
# IF ~/.bash_profile is readable THEN
# execute ~/.bash_profile
# ELSE
# IF ~/.bash_login is readable THEN
# execute ~/.bash_login
# ELSE
# IF ~/.profile is readable THEN
# execute ~/.profile
# END IF
# END IF
# END IF
pre_start()
{
if [ -r /etc/profile ]; then
. /etc/profile
fi
if [ -r ~/.bash_profile ]; then
. ~/.bash_profile
else
if [ -r ~/.bash_login ]; then
. ~/.bash_login
else
if [ -r ~/.profile ]; then
. ~/.profile
fi
fi
fi
return 0
}
# When loging out from the interactive shell, the execution sequence is:
#
# IF ~/.bash_logout exists THEN
# execute ~/.bash_logout
# END IF
post_start()
{
if [ -r ~/.bash_logout ]; then
. ~/.bash_logout
fi
return 0
}
#start the window manager
wm_start()
{
if [ -r /etc/default/locale ]; then
. /etc/default/locale
export LANG LANGUAGE
fi
# debian
if [ -r /etc/X11/Xsession ]; then
pre_start
export DESKTOP_SESSION=gnome-flashback-metacity
export XDG_CURRENT_DESKTOP="GNOME-Flashback:GNOME"
export GDMSESSION=gnome-flashback-metacity
export XDG_SESSION_DESKTOP=gnome-flashback-metacity
. /etc/X11/Xsession
post_start
exit 0
fi
# el
if [ -r /etc/X11/xinit/Xsession ]; then
pre_start
. /etc/X11/xinit/Xsession
post_start
exit 0
fi
# suse
if [ -r /etc/X11/xdm/Xsession ]; then
# since the following script run a user login shell,
# do not execute the pseudo login shell scripts
. /etc/X11/xdm/Xsession
exit 0
fi
pre_start
xterm
post_start
}
#. /etc/environment
#export PATH=$PATH
#export LANG=$LANG
# change PATH to be what your environment needs usually what is in
# /etc/environment
#PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
#export PATH=$PATH
# for PATH and LANG from /etc/environment
# pam will auto process the environment file if /etc/pam.d/xrdp-sesman
# includes
# auth required pam_env.so readenv=1
wm_start
exit 1
Current .xsession:
/usr/lib/gnome-session/run-systemd-session gnome-session-flashback.target
18.04 systemd remote-desktop xrdp gnome-flashback
18.04 systemd remote-desktop xrdp gnome-flashback
edited Dec 15 '18 at 17:00
prusswan
asked Dec 15 '18 at 5:26
prusswanprusswan
3751417
3751417
If you still have problems it might be good idea to update your post with your current configuration files. P.S. GNOME should be all capitalized.
– muktupavels
Dec 15 '18 at 16:25
gnome-panel
should not be ongnome-session --session...
line.
– muktupavels
Dec 15 '18 at 16:57
Does log files have some indication whygnome-panel
does not start?
– muktupavels
Dec 15 '18 at 23:12
add a comment |
If you still have problems it might be good idea to update your post with your current configuration files. P.S. GNOME should be all capitalized.
– muktupavels
Dec 15 '18 at 16:25
gnome-panel
should not be ongnome-session --session...
line.
– muktupavels
Dec 15 '18 at 16:57
Does log files have some indication whygnome-panel
does not start?
– muktupavels
Dec 15 '18 at 23:12
If you still have problems it might be good idea to update your post with your current configuration files. P.S. GNOME should be all capitalized.
– muktupavels
Dec 15 '18 at 16:25
If you still have problems it might be good idea to update your post with your current configuration files. P.S. GNOME should be all capitalized.
– muktupavels
Dec 15 '18 at 16:25
gnome-panel
should not be on gnome-session --session...
line.– muktupavels
Dec 15 '18 at 16:57
gnome-panel
should not be on gnome-session --session...
line.– muktupavels
Dec 15 '18 at 16:57
Does log files have some indication why
gnome-panel
does not start?– muktupavels
Dec 15 '18 at 23:12
Does log files have some indication why
gnome-panel
does not start?– muktupavels
Dec 15 '18 at 23:12
add a comment |
1 Answer
1
active
oldest
votes
Turns out to be a case of bad config and misunderstanding of how the GNOME Flashback environment is normally initialized. After looking through the related configuration files - /usr/lib/systemd/user/gnome-session.service
and
/usr/share/xsessions/gnome-flashback-metacity.desktop
, I came up with the following modifications to emulate the same behavior for xrdp:
/etc/xrdp/startwm.sh:
# these global variables are set during normal login through gdm greeter
export DESKTOP_SESSION=gnome-flashback-metacity
export XDG_CURRENT_DESKTOP="GNOME-Flashback:GNOME"
export GDMSESSION=gnome-flashback-metacity
export XDG_SESSION_DESKTOP=gnome-flashback-metacity
These exports should be set somewhere before . /etc/X11/Xsession
(when the xsession gets started)
~/.xsession:
# starting the session through systemd, just like normal login through gdm greeter
/usr/lib/gnome-session/run-systemd-session gnome-session-flashback.target
Running gnome-session
command directly was causing the indicator icons to not show up (similar to Gnome-panel applet "Indicator Applet Complete" is missing icons). So while this has been addressed with the use of run-systemd-session
, I haven't identified the portion that starts gnome-panel
(the panel that houses the indicator icons) during normal login, so for the xrdp xsession, I had to add gnome-panel
to Startup Applications.
1
gnome-panel
should be autostarted... It is in required components in *.session files. It might not be started only (if I remember correctly without looking) ifXDG_CURRENT_DESKTOP
is wrong. Also check ifXDG_MENU_PREFIX
is set tognome-flashback-
.
– muktupavels
Dec 15 '18 at 16:23
@muktupavels I agree, but something is causing it to fail. I will just stick with what I have now until someone has a better solution
– prusswan
Dec 15 '18 at 16:49
Please show your current config files.
– muktupavels
Dec 15 '18 at 16:55
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1101012%2fremote-desktop-via-xrdp-missing-items-in-applications-menu-and-indicator-applet%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Turns out to be a case of bad config and misunderstanding of how the GNOME Flashback environment is normally initialized. After looking through the related configuration files - /usr/lib/systemd/user/gnome-session.service
and
/usr/share/xsessions/gnome-flashback-metacity.desktop
, I came up with the following modifications to emulate the same behavior for xrdp:
/etc/xrdp/startwm.sh:
# these global variables are set during normal login through gdm greeter
export DESKTOP_SESSION=gnome-flashback-metacity
export XDG_CURRENT_DESKTOP="GNOME-Flashback:GNOME"
export GDMSESSION=gnome-flashback-metacity
export XDG_SESSION_DESKTOP=gnome-flashback-metacity
These exports should be set somewhere before . /etc/X11/Xsession
(when the xsession gets started)
~/.xsession:
# starting the session through systemd, just like normal login through gdm greeter
/usr/lib/gnome-session/run-systemd-session gnome-session-flashback.target
Running gnome-session
command directly was causing the indicator icons to not show up (similar to Gnome-panel applet "Indicator Applet Complete" is missing icons). So while this has been addressed with the use of run-systemd-session
, I haven't identified the portion that starts gnome-panel
(the panel that houses the indicator icons) during normal login, so for the xrdp xsession, I had to add gnome-panel
to Startup Applications.
1
gnome-panel
should be autostarted... It is in required components in *.session files. It might not be started only (if I remember correctly without looking) ifXDG_CURRENT_DESKTOP
is wrong. Also check ifXDG_MENU_PREFIX
is set tognome-flashback-
.
– muktupavels
Dec 15 '18 at 16:23
@muktupavels I agree, but something is causing it to fail. I will just stick with what I have now until someone has a better solution
– prusswan
Dec 15 '18 at 16:49
Please show your current config files.
– muktupavels
Dec 15 '18 at 16:55
add a comment |
Turns out to be a case of bad config and misunderstanding of how the GNOME Flashback environment is normally initialized. After looking through the related configuration files - /usr/lib/systemd/user/gnome-session.service
and
/usr/share/xsessions/gnome-flashback-metacity.desktop
, I came up with the following modifications to emulate the same behavior for xrdp:
/etc/xrdp/startwm.sh:
# these global variables are set during normal login through gdm greeter
export DESKTOP_SESSION=gnome-flashback-metacity
export XDG_CURRENT_DESKTOP="GNOME-Flashback:GNOME"
export GDMSESSION=gnome-flashback-metacity
export XDG_SESSION_DESKTOP=gnome-flashback-metacity
These exports should be set somewhere before . /etc/X11/Xsession
(when the xsession gets started)
~/.xsession:
# starting the session through systemd, just like normal login through gdm greeter
/usr/lib/gnome-session/run-systemd-session gnome-session-flashback.target
Running gnome-session
command directly was causing the indicator icons to not show up (similar to Gnome-panel applet "Indicator Applet Complete" is missing icons). So while this has been addressed with the use of run-systemd-session
, I haven't identified the portion that starts gnome-panel
(the panel that houses the indicator icons) during normal login, so for the xrdp xsession, I had to add gnome-panel
to Startup Applications.
1
gnome-panel
should be autostarted... It is in required components in *.session files. It might not be started only (if I remember correctly without looking) ifXDG_CURRENT_DESKTOP
is wrong. Also check ifXDG_MENU_PREFIX
is set tognome-flashback-
.
– muktupavels
Dec 15 '18 at 16:23
@muktupavels I agree, but something is causing it to fail. I will just stick with what I have now until someone has a better solution
– prusswan
Dec 15 '18 at 16:49
Please show your current config files.
– muktupavels
Dec 15 '18 at 16:55
add a comment |
Turns out to be a case of bad config and misunderstanding of how the GNOME Flashback environment is normally initialized. After looking through the related configuration files - /usr/lib/systemd/user/gnome-session.service
and
/usr/share/xsessions/gnome-flashback-metacity.desktop
, I came up with the following modifications to emulate the same behavior for xrdp:
/etc/xrdp/startwm.sh:
# these global variables are set during normal login through gdm greeter
export DESKTOP_SESSION=gnome-flashback-metacity
export XDG_CURRENT_DESKTOP="GNOME-Flashback:GNOME"
export GDMSESSION=gnome-flashback-metacity
export XDG_SESSION_DESKTOP=gnome-flashback-metacity
These exports should be set somewhere before . /etc/X11/Xsession
(when the xsession gets started)
~/.xsession:
# starting the session through systemd, just like normal login through gdm greeter
/usr/lib/gnome-session/run-systemd-session gnome-session-flashback.target
Running gnome-session
command directly was causing the indicator icons to not show up (similar to Gnome-panel applet "Indicator Applet Complete" is missing icons). So while this has been addressed with the use of run-systemd-session
, I haven't identified the portion that starts gnome-panel
(the panel that houses the indicator icons) during normal login, so for the xrdp xsession, I had to add gnome-panel
to Startup Applications.
Turns out to be a case of bad config and misunderstanding of how the GNOME Flashback environment is normally initialized. After looking through the related configuration files - /usr/lib/systemd/user/gnome-session.service
and
/usr/share/xsessions/gnome-flashback-metacity.desktop
, I came up with the following modifications to emulate the same behavior for xrdp:
/etc/xrdp/startwm.sh:
# these global variables are set during normal login through gdm greeter
export DESKTOP_SESSION=gnome-flashback-metacity
export XDG_CURRENT_DESKTOP="GNOME-Flashback:GNOME"
export GDMSESSION=gnome-flashback-metacity
export XDG_SESSION_DESKTOP=gnome-flashback-metacity
These exports should be set somewhere before . /etc/X11/Xsession
(when the xsession gets started)
~/.xsession:
# starting the session through systemd, just like normal login through gdm greeter
/usr/lib/gnome-session/run-systemd-session gnome-session-flashback.target
Running gnome-session
command directly was causing the indicator icons to not show up (similar to Gnome-panel applet "Indicator Applet Complete" is missing icons). So while this has been addressed with the use of run-systemd-session
, I haven't identified the portion that starts gnome-panel
(the panel that houses the indicator icons) during normal login, so for the xrdp xsession, I had to add gnome-panel
to Startup Applications.
answered Dec 15 '18 at 12:44
prusswanprusswan
3751417
3751417
1
gnome-panel
should be autostarted... It is in required components in *.session files. It might not be started only (if I remember correctly without looking) ifXDG_CURRENT_DESKTOP
is wrong. Also check ifXDG_MENU_PREFIX
is set tognome-flashback-
.
– muktupavels
Dec 15 '18 at 16:23
@muktupavels I agree, but something is causing it to fail. I will just stick with what I have now until someone has a better solution
– prusswan
Dec 15 '18 at 16:49
Please show your current config files.
– muktupavels
Dec 15 '18 at 16:55
add a comment |
1
gnome-panel
should be autostarted... It is in required components in *.session files. It might not be started only (if I remember correctly without looking) ifXDG_CURRENT_DESKTOP
is wrong. Also check ifXDG_MENU_PREFIX
is set tognome-flashback-
.
– muktupavels
Dec 15 '18 at 16:23
@muktupavels I agree, but something is causing it to fail. I will just stick with what I have now until someone has a better solution
– prusswan
Dec 15 '18 at 16:49
Please show your current config files.
– muktupavels
Dec 15 '18 at 16:55
1
1
gnome-panel
should be autostarted... It is in required components in *.session files. It might not be started only (if I remember correctly without looking) if XDG_CURRENT_DESKTOP
is wrong. Also check if XDG_MENU_PREFIX
is set to gnome-flashback-
.– muktupavels
Dec 15 '18 at 16:23
gnome-panel
should be autostarted... It is in required components in *.session files. It might not be started only (if I remember correctly without looking) if XDG_CURRENT_DESKTOP
is wrong. Also check if XDG_MENU_PREFIX
is set to gnome-flashback-
.– muktupavels
Dec 15 '18 at 16:23
@muktupavels I agree, but something is causing it to fail. I will just stick with what I have now until someone has a better solution
– prusswan
Dec 15 '18 at 16:49
@muktupavels I agree, but something is causing it to fail. I will just stick with what I have now until someone has a better solution
– prusswan
Dec 15 '18 at 16:49
Please show your current config files.
– muktupavels
Dec 15 '18 at 16:55
Please show your current config files.
– muktupavels
Dec 15 '18 at 16:55
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1101012%2fremote-desktop-via-xrdp-missing-items-in-applications-menu-and-indicator-applet%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
If you still have problems it might be good idea to update your post with your current configuration files. P.S. GNOME should be all capitalized.
– muktupavels
Dec 15 '18 at 16:25
gnome-panel
should not be ongnome-session --session...
line.– muktupavels
Dec 15 '18 at 16:57
Does log files have some indication why
gnome-panel
does not start?– muktupavels
Dec 15 '18 at 23:12