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

Singleton Application #87

Open
MaDDoGo opened this issue Aug 11, 2015 · 3 comments
Open

Singleton Application #87

MaDDoGo opened this issue Aug 11, 2015 · 3 comments

Comments

@MaDDoGo
Copy link

MaDDoGo commented Aug 11, 2015

Allow to use snaketail as a singleton application (open all logs on a single app instead of opening a new window for every new log)

@PGS62
Copy link

PGS62 commented Oct 3, 2018

I was also hoping for something along these lines. My ideal would be a commandline switch to control whether the application runs as multi-instance or single-instance. NotePad++ has that via a commandline switch -multiInst

@snakefoot
Copy link
Owner

Like the command line parameter, then it would be the matter of opening a global named-pipe, and then communicate through instances using that (Forward the log-file-path to the main-instance).

@PGS62
Copy link

PGS62 commented Oct 3, 2018

Hi there
I'm not sure if I quite understand what you write. I was thinking of something more closely modelled on NotePad++'s -MultiInstance commandline switch, though the default behaviour of NotePad++ is single instance, whereas the default behaviour of SnakeTail appears to be multi instance.

From the commandline:
SnakeTail.exe -SingleInstance mylog.txt

Behaviour:
If there is an existing instance of SnakeFoot already running then it would open a new tab and display mylog.txt, otherwise a new instance of SnakeFoot would launch, displaying mylog.txt. This leaves open the question of what to do if mylog.txt is already being displayed in some instance of SnakeTail. Ideally in that case that tab should be "activated" so as to avoid having the same file "open twice".

From the commandline:
SnakeTail.exe -MultiInstance mylog.txt

Behaviour
Will always open a new instance of SnakeTail and display mylog.txt in that. As far as I can tell, this is the existing behaviour of SnakeTail.exe

By the way, I've only recently discovered SnakeTail. It's a gem.

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

No branches or pull requests

3 participants