Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open mailto link in an already opened sup instance #540

Open
CaptainQuirk opened this issue Nov 21, 2017 · 2 comments
Open

Open mailto link in an already opened sup instance #540

CaptainQuirk opened this issue Nov 21, 2017 · 2 comments

Comments

@CaptainQuirk
Copy link

Hi,

I've managed to invoke sup in a terminal through a bash script, a .desktop file pointing to it and a new entry in ~/.config/mimeapps.list.

However, when sup is already opened, I get a warning about the index file being locked. Is there any way I could circumvent this ?

Thanks in advance !

@rakoo
Copy link

rakoo commented Nov 21, 2017

Hey @CaptainQuirk ! sup is supposed to be used with a single instance, and there's no way to switch to the first opened session if you start it again.

A workaround would be to have sup run inside a tmux/screen/dtach session, and instead of running sup you reattach that session. There are probably some guides on the web on how to do this (irrespective of the actual application that is embedded)

@CaptainQuirk
Copy link
Author

Hi !

Thanks for your answer.

I was looking actually looking for a way to switch to my $EDITOR the same way launching sup with --compose. (As it is described in the wiki page about following mailto links)

As an alternative, I'm currenty trying to send keys with tmux to the pane containing sup but its cumbersome.

Any plan on implementing a kind of remote api (like in vim for example) ?

Bye

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants