snaketail-net icon indicating copy to clipboard operation
snaketail-net copied to clipboard

Singleton Application

Open MaDDoGo opened this issue 9 years ago • 3 comments

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)

MaDDoGo avatar Aug 11 '15 10:08 MaDDoGo

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

PGS62 avatar Oct 03 '18 13:10 PGS62

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).

snakefoot avatar Oct 03 '18 17:10 snakefoot

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.

PGS62 avatar Oct 03 '18 17:10 PGS62