Skip to content

Linux Mint 22 to 22.1 update fails if you are using Wayland #928

Open
@Kasoo

Description

@Kasoo

Describe the bug
Using mintupdate Update Manager to upgrade from 22 to 22.1 fails with no explaination if you're logged in to a Wayland session

Screenshots
Image

To Reproduce
Steps to reproduce the behavior:

  1. Login to Mint 22 desktop using Wayland
  2. Follow usual steps to upgrade to 22.1

Distribution: Linux Mint

Software version: 6.1.5

Logs:
Nothing in logs, however stdout has:

Missing arguments!
Command 'pkexec /usr/bin/mint-release-upgrade-root wilma' returned non-zero exit status 1.

Additional context

The script /usr/lib/linuxmint/mintUpdate/rel_upgrade_root.py expects two arguments, codename and window_id however the previous script /usr/lib/linuxmint/mintUpdate/rel_upgrade.py only adds the window_id if the current session is X11:

        if os.environ.get("XDG_SESSION_TYPE", "x11") == "x11":
            cmd += ["%s" % self.assistant.get_window().get_xid()]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions