mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-09-09 22:51:05 -07:00
[PR #10751/d6ad9beb backport][stable-10] kdeconfig: add support for kwriteconfig6 (#10761)
kdeconfig: add support for kwriteconfig6 (#10751)
* kdeconfig: add support for kwriteconfig6
Rationale:
With a minimal install of KDE Plasma 6, the kdeconfig module would systematically fail with the following error: `kwriteconfig is not installed.`
In this configuration, kwriteconfig6 is the only version of kwriteconfig installed, and the kdeconfig module did not not find it.
Fixes #10746
* Add changelog fragment
* Update changelogs/fragments/10751-kdeconfig-support-kwriteconfig6.yml
---------
(cherry picked from commit d6ad9beb58
)
Co-authored-by: Thibault Geoffroy <33561374+nebularnoise@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
94699318e2
commit
02fa9106c6
2 changed files with 4 additions and 1 deletions
|
@ -0,0 +1,3 @@
|
|||
bugfixes:
|
||||
- kdeconfig - ``kwriteconfig`` executable could not be discovered automatically on systems with only ``kwriteconfig6`` installed.
|
||||
``kwriteconfig6`` can now be discovered by Ansible (https://github.com/ansible-collections/community.general/issues/10746, https://github.com/ansible-collections/community.general/pull/10751).
|
|
@ -257,7 +257,7 @@ def main():
|
|||
if module.params['kwriteconfig_path'] is not None:
|
||||
kwriteconfig = module.get_bin_path(module.params['kwriteconfig_path'], required=True)
|
||||
else:
|
||||
for progname in ('kwriteconfig5', 'kwriteconfig', 'kwriteconfig4'):
|
||||
for progname in ('kwriteconfig6', 'kwriteconfig5', 'kwriteconfig', 'kwriteconfig4'):
|
||||
kwriteconfig = module.get_bin_path(progname)
|
||||
if kwriteconfig is not None:
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue