[plt-scheme] Make multiple attempts to open DrScheme join running process?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sun Feb 25 09:41:48 EST 2007

At Sat, 24 Feb 2007 22:59:12 -0500, "Todd O'Bryan" wrote:
> As I've mentioned before, I'm running DrScheme in a thin terminal lab
> and have 30 students sharing one server. Students seem to be in the very
> bad habit of double-clicking files to open them, not realizing that (I
> think) this spawns a new DrScheme process and eats up lots of memory.
> 
> Is there any way to have subsequent calls to DrScheme (well, the
> drscheme binary) check for a running version for the given user and open
> a new tab with the file if there is one, or open a new instance if not.
> 
> A pointer to a command-line option or a manual entry to check is
> sufficient, if there is one I didn't see in my cursory check.

There's nothing already in place for X (unlike Windows or Mac OS X).

Offhand, I don't know how double-clicking works these days in X, so
I'll have to learn about when and how an application is supposed to
find an existing instance of itself. I expect I can improve things
after I become better informed, but only for future versions.

Matthew



Posted on the users mailing list.