Add an autostart file for 1Password on Linux

thibaulltt
thibaulltt
Community Member

I'm currently running 1Password on Linux (Fedora 40, KDE Spin) and use it most of the time for managing and using my SSH keys. However, the 1Password program does not automatically launch on startup; at least using KDE. This means my SSH keys are not accessible to my git commands automatically :(

This can be remedied quite easily by copying the 1password.desktop XDG Application file from /usr/share/applications to $HOME/.local/share/applications (renaming it to avoid any potential name clashes) and modifying it just a tad:

[Desktop Entry]
Name=1Password (Silent)
Exec=/opt/1Password/1password --silent %U
Terminal=false
Type=Application
Icon=1password
StartupWMClass=1Password
Comment=Password manager and secure wallet
MimeType=x-scheme-handler/onepassword;x-scheme-handler/onepassword8;
Categories=Office;

... and adding it to the autostarted applications in the system settings.

This is not a hard problem to fix by the end users. However, having such a daemon-like file handy would be a nice addition to the default 1Password packages.


1Password Version: 8.10.46
Extension Version: Not Provided
OS Version: Linux, Fedora 40 (KDE)
Browser: Not Provided