Skip to content

Conversation

@ahmouse15
Copy link

@ahmouse15 ahmouse15 commented Dec 23, 2025

This PR adds support for an OpenRC user service for appimagelauncherd. By default, it builds exactly the same as currently, however an optional -DSERVICE_TYPE="openrc" flag can be adding during the build process to build the OpenRC service instead of the System-D service.

This allows maintainers of OpenRC-based systems to build with this flag if they wish, without affecting existing System-D based builds. It also allows support for future init systems to be added easily.

The only change made within the program itself is how the service is toggled, since OpenRC uses different commands for that. I added the changes with two define macros, SERVICE_TYPE_SYSTEMD and SERVICE_TYPE_OPENRC which adds support for the respective init system. These macros are automatically handled by CMake.

While working on this I found a few bugs which made the build process difficult, so expect a PR to for those soon.

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.

1 participant