Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use login1 dbus API, fix systemd-run #134

Merged
merged 2 commits into from
Oct 27, 2024
Merged

fix: use login1 dbus API, fix systemd-run #134

merged 2 commits into from
Oct 27, 2024

Conversation

gerblesh
Copy link
Collaborator

This PR supersedes: #133

session.py now uses the dbus API instead of using loginctl subprocess, instead using busctl as a subprocess, this can however be migrated to dbus-python easily. The dbus API is also hopefully more stable than the loginctl CLI, though we are still using busctl.

This also fixes an issue with update confirmation, where output wasn't probably being piped back into stdout when using systemd-run, meaning that update confirmations were impossible and ublue-update would error instead of update when confirming

@gerblesh gerblesh enabled auto-merge October 27, 2024 03:45
Copy link
Contributor

@bsherman bsherman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@gerblesh gerblesh added this pull request to the merge queue Oct 27, 2024
@bsherman bsherman requested a review from KyleGospo October 27, 2024 03:56
Merged via the queue into main with commit e18ec42 Oct 27, 2024
6 checks passed
@gerblesh gerblesh deleted the dbus-list-user branch October 27, 2024 03:56
KyleGospo pushed a commit to KyleGospo/ublue-update that referenced this pull request Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants