-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(linux): improve compatibility with Gentoo Linux
Gentoo doesn't use systemd. `libelogind` implements some aspects of systemd, so we use that on Gentoo (or rather when `libsystemd` is not available but `libelogind` is). Patch from https://forums.gentoo.org/viewtopic.php?p=8850566. See also https://community.software.sil.org/t/keyman-for-gentoo-linux/9615.
- Loading branch information
1 parent
356e38d
commit 4f65a41
Showing
5 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
linux/keyman-system-service/resources/com.keyman.SystemService1.service.libelogind
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 (e.g. on Gentoo) | ||
|
||
[D-BUS Service] | ||
Name=com.keyman.SystemService1 | ||
Exec=/usr/libexec/systemd-keyman.service | ||
User=root |
1 change: 1 addition & 0 deletions
1
...sources/com.keyman.SystemService1.service → ....keyman.SystemService1.service.libsystemd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
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/') | ||
install_data('com.keyman.SystemService1.service.' + systemd.name(), install_dir: get_option('datadir') / 'dbus-1/system-services/', rename: ['com.keyman.SystemService1.service']) | ||
install_data('systemd-keyman.service', install_dir: get_option('prefix') / 'lib/systemd/system/') |