Skip to content

feature request: do not make hdajackretask hard depend on systemd or provide the functionality for openrc/other init systems #46

@ingenarel

Description

@ingenarel

currently, at the time of writing this, hdajackretask calls systemctl directly

static gboolean call_systemctl(gchar* user, gchar* operation, gchar *unit, GError **err)

which makes it not work on non systemd systems, for example openrc, which i'm currently using

with systemd's recent controversies with age verification and everything, more and more users are trying out alternative init systems and using non systemd systems in a day to day basis, but hdajackretask does not work on that

for the fix, i have an idea:
hdajackretask could try to detect what init system is running, and it could then run the appropriate commands, if it's unable to detect the init system, or fail to run the commands, it could then open a prompt saying:

unable to (detect the init system OR run command OR basically wtv happend)
please run these commands or their equivalent manually
systemctl systemctlstuff

if hdajackretask needs to do more stuff afterwards, the prompt can just wait after the user clicks "done" or something, and then it could continue doing the rest of the stuff

if upstream decides to do this functionality, then they could also add the logic for openrc/other init systems or anything whenever they want, without breaking the rest of the stuff

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions