Skip to content

[Feature request] Starting new sessions without asking for password #48

@alexcoder04

Description

@alexcoder04

Description

Some kind of "magic cookie" or local socket for LeoConsole instances to communicate between each other and enable starting new LC instances without typing the password / setting specific paramaters (as working dir).

Intended Use-Case

I am developing a file manager plugin (https://github.com/alexcoder04/LeoConsole-file-manager) which starts an external program (lf) as a file manager. I had the idea to create a built-in terminal in this file manager (a LeoConsole shell, of course), which would pop up on a key binding if you navigated to a directory:

start LeoConsole -> use "fm" (file manager) command -> file manager (lf) spawns -> navigate to directory of interest -> press "t" (for terminal) -> LeoConsole instance opens in this directory

However, it is annoying to type in the password and username again and cd to this directory manually.

Additional context

Magic cookie idea:

When LeoConsole starts, it generates a random ID for the session, which expires after some amount of time. It can be then used for automatic authentification instead of a password.

However, I don't know what security problems could emerge out of this feature and how exactly it show be implemented.

PS: maybe at least a command-line argument for working directory or setting the working directory from the OS environment ($PWD on Linux)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestverifiedIndicates that this issue is verified, so further triage can happen

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions