! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
startxfce4 fails with 'Unrecognized option: --'
Status:
RESOLVED: INVALID
Product:
Xfce4-session
Component:
General

Comments

Description bob53181 2019-06-17 19:00:30 CEST
Created attachment 8643 
Redirected stderr to a log file

Description of problem:

When I run startxfce4 on Fedora 30, it fails with the error 'Unrecognized option: --'.

Version-Release number of selected component (if applicable):

xfce4-session-4.13.1-23.fc30.x86_64

How reproducible:

Every time

Steps to Reproduce:
1. run startxfce4
2.
3.

Actual results:

X fails to start

Expected results:

X and XFCE4 start.

Additional info:

If I run `xinit /usr/bin/startxfce4 -- :0 vt1` it starts XFCE4 correctly.
I have posted it on the Red Hat Bug Tracker (id=1718968) and I was then asked to post it here too.
Comment 1 Theo Linkspfeifer editbugs 2019-06-17 22:59:05 CEST
I can only trigger the bug when I run `startxfce4 --` on my system. Removing the space character in this line fixes it:

https://git.xfce.org/xfce/xfce4-session/tree/scripts/startxfce4.in#n55
Comment 2 bob53181 2019-06-18 10:15:30 CEST
I removed that space but I still get the same error message.
Comment 3 Theo Linkspfeifer editbugs 2019-06-18 10:32:06 CEST
Please add "set -x" (verbose output) as first command to the script, run startxfce4 and attach the output to this report.
Comment 4 bob53181 2019-06-18 12:40:31 CEST
Created attachment 8648 
Added `set -x` and redirected stderr to a log file - $ startxfce4 2>Xorg-error.log
Comment 5 Theo Linkspfeifer editbugs 2019-06-18 13:41:27 CEST
Is /etc/X11/xinit/xserverrc missing?
Comment 6 bob53181 2019-06-18 14:07:59 CEST
It is missing indeed. What should be there?

root@localhost ~# rpm --query --list xorg-x11-xinit | grep /etc/
/etc/X11/Xmodmap
/etc/X11/Xresources
/etc/X11/xinit
/etc/X11/xinit/Xclients
/etc/X11/xinit/Xclients.d
/etc/X11/xinit/Xsession
/etc/X11/xinit/xinitrc
/etc/X11/xinit/xinitrc-common
/etc/X11/xinit/xinitrc.d
/etc/X11/xinit/xinitrc.d/localuser.sh
root@localhost ~# rpm --query --list xorg-x11-server-Xorg | grep /etc/
/etc/X11/xorg.conf.d
/etc/pam.d/xserver
Comment 7 Theo Linkspfeifer editbugs 2019-06-18 15:21:25 CEST
I found the actual problem with xfce4-session-4.13.1-23.fc30.x86_64. A distro-specific patch is applied to startxfce4, and it conflicts with the following commit:

https://git.xfce.org/xfce/xfce4-session/commit/?id=04e45b5bbdefe4e174c95dcbc70a725b8198b50d
Comment 9 bob53181 2019-06-18 17:24:07 CEST
Fedora released xfce4-session-4.13.2-2.fc30.x86_64 so I updated it to test it. It still gave me the same error message. Then I reversed the patch you linked. This fixed the issue and running `$ startxfce4` now works correctly. Running `$ startxfce4 --` gave me the error so I removed the space on line 55. This fixed it and running `$ startxfce4 --` now works correctly as well.
Comment 10 Theo Linkspfeifer editbugs 2019-06-19 11:15:50 CEST
The space is most likely needed to distinguish plain '--' from '--parameter' while parsing the command line options. My example is not a proper use case, so I will close this report.

Bug #15618

Reported by:
bob53181
Reported on: 2019-06-17
Last modified on: 2019-06-19

People

Assignee:
Xfce Bug Triage
CC List:
2 users

Version

Version:
4.13.2

Attachments

Additional information