sup icon indicating copy to clipboard operation
sup copied to clipboard

Open mailto link in an already opened sup instance

Open CaptainQuirk opened this issue 8 years ago • 2 comments

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 !

CaptainQuirk avatar Nov 21 '17 12:11 CaptainQuirk

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)

rakoo avatar Nov 21 '17 18:11 rakoo

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

CaptainQuirk avatar Nov 21 '17 19:11 CaptainQuirk