-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
chore(linux): improve compatibility with Gentoo Linux 🏠 #12889
base: stable-17.0
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
#include "config.h" | ||
#include <cassert> | ||
#if DBUS_IMPLEMENTATION == SYSTEMD | ||
#include <systemd/sd-bus.h> | ||
#else | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you want to check For all the other .cpp and .h files too... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think that's necessary since |
||
#include <basu/sd-bus.h> | ||
#endif | ||
#include "KeymanSystemServiceClient.h" | ||
|
||
#define KEYMAN_BUS_NAME "com.keyman.SystemService1" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# /usr/share/dbus-1/system-services/com.keyman.SystemService1.service | ||
# This version used with elogind and basu (e.g. on Gentoo) | ||
|
||
[D-BUS Service] | ||
Name=com.keyman.SystemService1 | ||
Exec=/usr/libexec/systemd-keyman.service | ||
User=root |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
install_data('com.keyman.SystemService1.conf', install_dir: get_option('datadir') / 'dbus-1/system.d/') | ||
install_data('com.keyman.SystemService1.service', install_dir: get_option('datadir') / 'dbus-1/system-services/') | ||
|
||
if systemd.name() == 'libsystemd' | ||
install_data('com.keyman.SystemService1.service.systemd', install_dir: get_option('datadir') / 'dbus-1/system-services/', rename: ['com.keyman.SystemService1.service']) | ||
else | ||
# libelogind or basu | ||
install_data('com.keyman.SystemService1.service.basu', install_dir: get_option('datadir') / 'dbus-1/system-services/') | ||
endif | ||
|
||
install_data('systemd-keyman.service', install_dir: get_option('prefix') / 'lib/systemd/system/') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a failure if none of these are available?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the
dependency
function has an implicitrequired: true
parameter. But probably good to add it anyways to make it clearer.