Start New UEx instance

A place for users to discuss the Linux-based version of UltraEdit, UEx

Start New UEx instance

Postby phgrove » Wed Sep 19, 2012 4:02 am

I have set that only one instance of UEX should be running as that is what i really want. However i have a tool that requires a text editor at times and it spurns a thread for the new instance of the text editor. Then this thread closes it knows the file contents can now be read again. To use UEX instead of say nedit i would have to change the config to allow more than one instance. Is there some command line switch that allows a new instance to be created even though the config says it shouldn't?
phgrove
Newbie
 
Posts: 2
Joined: Wed Aug 15, 2012 2:56 am

Re: Start New UEx instance

Postby Mofi » Wed Sep 19, 2012 4:27 am

UltraEdit for Windows has the command line parameter /fni to force a new instance which must be the first parameter on command line (left to file name or any other parameter).

I don't know if UEx supports this command line switch too. Try if launching UEx with /fni or with -fni results in starting a new instance of UEx if one is running already.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4049
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Start New UEx instance

Postby phgrove » Wed Sep 19, 2012 4:43 am

Unfortunately it is not one of the command line options yet :o . The only options we have are below. I could use the --config option, but this means keeping 2 of them in sync apart from the one difference. However i have not seen an easy way to work out where this information is stored or how to work it.

Usage: uex [-h] [-v] [-u] [-r] [-p] [-d] [-c <str>] [-m <str>] [-s <str>] [file to open...]
-h, --help show this help message
-v, --version show version
-u, --uninstall uninstall cleanup
-r, --read-only open files in read-only mode
-p, --print print file
-d, --debug enable debug logging
-c, --config=<str> configuration file to use
-m, --macro=<str> macro to run: [e,][<number of times to execute>,][<macro name>,]<full path to macro file>
-s, --script=<str> script to run: [e,]<script name>

The following standard GTK+ options are also supported:
--class=CLASS Program class as used by the window manager
--name=NAME Program name as used by the window manager
--display=DISPLAY X display to use
--screen=SCREEN X screen to use
--sync Make X calls synchronous
--gtk-module=MODULES Load additional GTK+ modules
--g-fatal-warnings Make all warnings fatal
phgrove
Newbie
 
Posts: 2
Joined: Wed Aug 15, 2012 2:56 am


Return to UEX General Discussion