-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There was no snap, and like this it's a little containerized. --platform xcb switches to an x11 environment because there auto type works. See keepassxreboot/keepassxc#2281
- Loading branch information
Showing
6 changed files
with
49 additions
and
1 deletion.
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
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,3 @@ | ||
--- | ||
- name: Reload desktop database | ||
command: update-desktop-database |
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,3 @@ | ||
--- | ||
dependencies: | ||
- role: flatpak |
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,29 @@ | ||
- name: basic_utils print var | ||
debug: | ||
var: basic_utils | ||
|
||
# region keepassxc | ||
- name: install keepassxc flatpak | ||
when: basic_utils.enable_keepassxc | default(false) | ||
command: flatpak install flathub org.keepassxc.KeePassXC --assumeyes | ||
|
||
- name: Modify Desktop file | ||
become: true | ||
lineinfile: | ||
dest="/var/lib/flatpak/app/org.keepassxc.KeePassXC/current/active/files/share/applications/org.keepassxc.KeePassXC.desktop" | ||
line="{{ item.line }}" | ||
regexp="{{ item.regexp }}" | ||
state=present | ||
insertafter=EOF | ||
create=True | ||
mode="u+rw" | ||
with_items: | ||
- { regexp: "^Exec=", line: "Exec=keepassxc --platform xcb %f" } | ||
- { regexp: "^TryExec=", line: "TryExec=keepassxc --platform xcb" } | ||
notify: | ||
- Reload desktop database | ||
# manually to do: | ||
# enable ssh-agent integration | ||
# enable auto type for shortcut | ||
|
||
# endregion |
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,9 @@ | ||
- name: install flatpak | ||
become: true | ||
package: | ||
name: flatpak | ||
|
||
- name: add flathub repository | ||
become: true | ||
command: | | ||
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo |