Bug 1158030
| Summary: | On login to to desktop session immediately terminates the session | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | Martin Steigerwald <martin.steigerwald> |
| Component: | x2goserver | Assignee: | Orion Poplawski <orion> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | epel7 | CC: | klaus, orion |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | x2goserver-4.0.1.18-3.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-11-14 20:23:28 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Martin Steigerwald
2014-10-28 11:17:42 UTC
Xsession scripts aborts after
echo 3 >> /tmp/schlumpf
# run all system xinitrc shell scripts.
for file in /etc/x2go/xinitrc.d/* ; do
[ -r "$file" ] && . $file
done
echo 4 >> /tmp/schlumpf
[root@lintraincentos7 x2go]# cat /tmp/schlumpf
1
2
3
It fails with running /etc/x2go/xinitrc.d/50-xinput.sh
# run all system xinitrc shell scripts.
for file in /etc/x2go/xinitrc.d/* ; do
echo "============= RUNNING $file =============="
set -x
[ -r "$file" ] && . $file
set +x
done
Okay, got it working with:
for file in /etc/x2go/xinitrc.d/* ; do
echo "============= RUNNING $file =============="
set -x
set +e
[ -r "$file" ] && . $file
set -e
set +x
So you have a bug in /etc/x2go/xinitrc.d/50-xinput.sh which makes the session start broke.
============= RUNNING /etc/x2go/xinitrc.d/50-xinput.sh ==============
[…]
++ log yes
++ echo yes
++ log -n 'Is imsettings enabled: '
++ echo -n 'Is imsettings enabled: '
++ print_result is_imsettings_enabled
++ is_imsettings_enabled
++ '[' -z '' ']'
++ is_dbus_enabled
++ /usr/libexec/imsettings-check --check-dbus
++ '[' 0 -eq 0 ']'
++ '[' 0 -eq 0 ']'
++ log yes
++ echo yes
++ log -n 'Is GTK+ supported: '
++ echo -n 'Is GTK+ supported: '
++ print_result is_gtk_supported
++ is_gtk_supported
++ '[' -n '' ']'
++ case "$(get_desktop|tr '[A-Z]' '[a-z]')" in
+++ get_desktop
+++ '[' -n '' ']'
+++ '[' -n '' ']'
+++ echo unknown
+++ tr '[A-Z]' '[a-z]'
++ return 1
[root@lintraincentos7 x2go]# diff -u Xsession.dist Xsession
--- Xsession.dist 2014-10-07 05:04:15.000000000 +0200
+++ Xsession 2014-10-28 12:54:24.899862879 +0100
@@ -177,7 +177,12 @@
# run all system xinitrc shell scripts.
for file in /etc/x2go/xinitrc.d/* ; do
+echo "============= RUNNING $file =============="
+set -x
+set +e
[ -r "$file" ] && . $file
+set -e
+set +x
done
# Prefix launch of session with ssh-agent if available and not already running.
x2goserver-4.0.1.18-3.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-3596/x2goserver-4.0.1.18-3.el7 I pulled the epel-testing version because I saw the same problem. It didn't help me - but the fix with the set+e -- set -e did the trick for me. |< (In reply to Fedora Update System from comment #4) > x2goserver-4.0.1.18-3.el7 has been submitted as an update for Fedora EPEL 7. > https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-3596/x2goserver-4.0. > 1.18-3.el7 x2goserver-4.0.1.18-3.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report. The set +e/set -e fix will be in 4.0.1.19. |