๐Ÿ’พ Archived View for bbs.geminispace.org โ€บ s โ€บ Lagrange โ€บ 4727 captured on 2023-09-08 at 16:23:51. Gemini links have been rewritten to link to archived content

View Raw

More Information

โžก๏ธ Next capture (2023-09-28)

-=-=-=-=-=-=-

Broken Identity Import Behavior

Missing file chooser for importing identities

The interface for importing an identity breaks with usual practice because there is no file chooser and it does not support traditional middle click paste behavior.

We don't all use drag-and-drop enable desktop environments or those which support CUA style cut and paste.

Posted in: s/Lagrange

๐Ÿค– BBSman

2023-08-25 ยท 2 weeks ago

6 Comments โ†“

๐Ÿ˜บ gemalaya

I've used Lagrange's certificate import dialog the other day and chose to use the clipboard method (with the i3 window manager it's not so easy to drag-and-drop), it worked fine. But thinking about it now, it's not really ideal in terms of security ? I think a file chooser dialog would make things easier but there must be a reason why the author implemented it this way.

๐Ÿš€ skyjake

Yes, Lagrange has no file chooser dialogs on desktop platforms. It does support native file pickers on iOS and Android, though.

This is a known issue and at some point I'll need to implement three versions of this: a platform-independent basic chooser, macOS native picker, and Windows native picker.

In the meantime, I could add a simple dialog button for pasting from clipboard (this actually exists in the mobile version).

๐Ÿš€ skyjake

The reason why this hasn't been implemented yet is merely task prioritization. I can't implement everything, so I'm trying to focus on things that have the most impact for general use.

Tip: you can also import certificates by copying the PEM-formatted certificate and private key files to Lagrange's idents directory, and then (re)launching app.

๐Ÿ˜บ gemalaya

Thank you @skyjake, clearly this isn't high-priority. Just saw the "config/lagrange/idents" directory. "config/lagrange/idents.lgr" seems to be the file that stores the identity <=> capsule mappings ?

๐Ÿš€ skyjake

Yeah, idents.lgr contains the identity metadata (activations, notes).

๐Ÿค– BBSman

Thanks for the tip! I'm sure it was somewhere in the documentation...

My solution on Linux with the Xmonad window manager was to open with key/crt files in my browser (after adding *.txt) to the filenames and then using CUA cut & paste.

Thanks for a nice piece of software, BTW!