Add crude installer for development purposes

main
Micke Nordin 3 years ago
parent 6fe8e46117
commit 978908e5af

@ -0,0 +1,10 @@
#!/usr/bin/env bash
if [[ -f /usr/bin/apk ]]; then # PostmarketOS/Alpine
sudo apk add py3-wxpython
elif [[ -f /usr/bin/apt ]]; then # Mobian/Debian/Ubuntu
sudo apt install python3-wxgtk4.0
elif [[ -f /usr/bin/dnf ]]; then # Fedora
sudo dnf install python3-wxpython4
fi
sudo cp passui /usr/local/bin/
sudo cp passui.desktop /usr/share/applications/

@ -173,7 +173,7 @@ def pass_pull():
result = run_command('/usr/bin/pass git pull')
def pass_push():
result = run_command('/usr/bin/pass git pull')
result = run_command('/usr/bin/pass git push')
def run_command(command1, command2=None):
"""Run a command on system and capture result"""
@ -192,13 +192,11 @@ def run_command(command1, command2=None):
return process1.communicate()
def save_to_pass(event, path, text):
pass_pull()
password = text.GetLineText(0)
print(password)
command1 = '/bin/echo ' + password
command2 = '/usr/bin/pass insert -m ' + path
result = run_command(command1, command2)
pass_push()
if __name__ == '__main__':
# When this module is run (not imported) then create the app, the

@ -0,0 +1,17 @@
[Desktop Entry]
Type=Application
Name=PassUi
Version=1.0
GenericName=Password Manager
GenericName[ca]=Gestor de contrasenyes
GenericName[nl]=Wachtwoordbeheerder
GenericName[sv_SE]=Lösenordshanterare
Comment=GUI for the standard unix password store
Comment[ca]=Interfície gràfica per al magatzem de contrasenyes UNIX estàndard
Comment[nl]=GUI voor de standaard Unix wachtwoordopslag
Comment[sv_SE]=GUI för Unix standardlösenordshanterare
Exec=/usr/local/bin/passui
Icon=dialog-password
Terminal=false
Categories=Security;Utility;
Keywords=Password;Manager;
Loading…
Cancel
Save