Skip to content

"has_option: command not found" multiple times in .xsession-errors #410

@Herzfinsternis

Description

@Herzfinsternis

Distribution

Mint 22.1

Package version

6.4.8

Graphics hardware in use

AMD ATI Radeon Vega Series / Radeon Vega Mobile Series (AMD Ryzen 5 PRO 3400G)

Frequency

Always

Bug description

I saw "has_option: command not found" several times in .xsession-errors:

/etc/X11/Xsession.d/30x11-common_xresources: line 16: has_option: command not found
/etc/X11/Xsession.d/75dbus_dbus-launch: line 9: has_option: command not found
/etc/X11/Xsession.d/90x11-common_ssh-agent: line 9: has_option: command not found

Steps to reproduce

I have only recently installed Linux Mint, so this should be reproducible with a new installation.

Expected behavior

The function has_option should be found. It's in /etc/X11/Xsession.

Additional information

In /usr/sbin/lightdm-session at line 85+86 is this piece of code:

# Run all system xinitrc shell scripts.
xinitdir="/etc/X11/xinit/xinitrc.d"

However, this directory doesn't exsist. So I changed it to:
xinitdir="/etc/X11/xinit"
In there is xinitrc which runs /etc/X11/Xsession.

That fixed the error on my machine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions