2.10 alpha - geany and named pipes

Please post any bugs you have found
Post Reply
Message
Author
GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

2.10 alpha - geany and named pipes

#1 Post by GuestToo »

geany has a problem with the way it detects whether an instance of geany is already running ... the problem is, it is extremely easy for geany to shut down without removing the pipe

it would probably be easy to start geany from a wrapper script which would check if there is a PID for geany, and if not, to delete the pipe files in ~/.geany before exec'ing geany

User avatar
Béèm
Posts: 513
Joined: Sun 16 Apr 2006, 16:18
Location: Brussels

#2 Post by Béèm »

I have this problem in 2.02 also.
Puppy Linux 2.02 SMkey, KDE354mini, wine0.9.20, devx-qt-renamed.
Puppy Linux 2.10r1 SMkey, JWM, devx_qt_renamed_210, KDE355mini

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#3 Post by MU »

geany also has the -p option, to use no named pipes.
Then each document is opened in a new window.

Maybe this is only available in the .svn version, I'm currently running Puppy 108.
http://dotpups.de/dotpups/Text_Editors/Geany-SVN.pup
http://dotpups.de/dotpups/Text_Editors/ ... altags.pup

Mark

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#4 Post by BarryK »

There only seems to be one named-pipe file created, 'geany_fifo.0'.

So, what if I created a file 'geanyshell' with this in it:

Code: Select all

#!/bin/sh
[ "`pidof geany`" = "" ] && rm -f ~/.geany/geany_fifo.0 2>/dev/null
exec geany $@

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#5 Post by GuestToo »

i did almost exactly that in my SP210a.pup, and it seems to work quite well ... i can kill -9 geany and geany will start up with no problems when i click a txt file ... it seems to be a fairly effective workaround, which works most of the time

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#6 Post by GuestToo »

geany does exactly the same thing when you click on a text file in Rox when it is running Icewm and when it is running Jwm

the bug is not unique to Jwm

my opinion is that this is a geany bug

my geanyshell script seems to be an effective workaround

Post Reply