OSDN Git Service

LinGui: allow multiple instances of the gui to run
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 9 Apr 2010 18:17:51 +0000 (18:17 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 9 Apr 2010 18:17:51 +0000 (18:17 +0000)
commit38411ed3d2e33bd434f7f255279924eba7c55e46
tree1f31a34f7ba2df5f4e726240cecff0e8f77607d0
parent83562d30ec55dda3268374a64258aa17be189d35
LinGui: allow multiple instances of the gui to run

Each instance has a queue named "queue.<pid>".  On startup, the gui
opens and locks with lockf a file "ghb.pid.<pid>".  Then it searches
for any other ghb.pid.<pid> files that exist that are not locked.  If
it finds one, then some instance of ghb exited and may have left behind
a queue.  Try to reload it.  If there are no items in the queue, continue
looking for unlocked ghb.pid.<pid> files.

git-svn-id: svn://localhost/HandBrake/trunk@3212 b64f7644-9d1e-0410-96f1-a4d463321fa5
gtk/src/main.c
gtk/src/presets.c
gtk/src/presets.h
gtk/src/queuehandler.c