Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Show a message when reboot required #45

Closed
wants to merge 8 commits into from
Closed

Conversation

danirabbit
Copy link
Member

@danirabbit danirabbit commented Apr 4, 2018

Copy link
Collaborator

@donadigo donadigo left a comment

Choose a reason for hiding this comment

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

Before you check for that file, you should probably also check if the monitor event was GLib.FileMonitorEvent.CREATED before doing anything else.

Also since you create a file for /var/run, you can get the reboot-required file by calling GLib.File.resolve_relative_path on it like that:
restart_file = restart_folder.resolve_relative_path ("reboot-required"); (I think). While we're at it you can also cache this file because there is no need to create it everytime there's an event.

@cassidyjames
Copy link
Contributor

Hmm, I like the idea, but I'm not sure how I feel about the styling. Something feels kind of crammed in there or unbalanced.

@jeremypw
Copy link
Collaborator

Looks like some work is required on this so converting to draft.

@jeremypw jeremypw marked this pull request as draft March 11, 2021 09:55
@danirabbit danirabbit closed this Mar 15, 2023
@danirabbit danirabbit deleted the restart-required branch March 15, 2023 18:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Indicate restart required
4 participants