I have installed PDCurses 2.5 and THE-3.1 on Linux
2.4.7-10 (RH 7.2). When I try the command line switch
"-1", I get the following error:
> the-3.1-X11 -1 test
*** Messages from profile file ***
Warning: Unable to run in single instance mode:
Operation not permitted
The problem is that my home directory is in AFS, and
AFS does not support fifo's.
I have solved the problem by slightly modifying the.c.
A new variable is defined (fifo_dir) as
"/tmp/.LOGNAME", LOGNAME being the contents of the
corresponding environment variable (or an empty string
!). The pipe name is "/tmp/.LOGNAME.thefifo", which is
in a local filesystem (unless you have /tmp in AFS !!!).
The differences file is attached.
Pablo
differences file (the.c)
Logged In: YES
user_id=86185
I've implemented a different solution. The -1 switch can
take an optional directory string. So you can start THE as:
the -1/tmp/logname
This enables the user to tailor THE to their specific
environment and it also allows a single user to run
multiple, single session instances of THE (if anyone would
want to ;-)
Logged In: YES
user_id=254511
That's a nice idea, that of the "optional directory string".
However, I would still prefer either the default location
for the fifo was in /tmp or being able to set this default
somehow. Typing "the -1/tmp/logname" each time seems a bit
odd to me (would require an alias or script)...