Hi, First: thanks for the great menu system! I have one small itch, though: It would be nice to be able to launch certain daemon programs (giFT comes to mind) from their menu entries. Using needs=text in their /usr/lib/menu/<name> file works ok, but if the prog forks to the background as a daemon should, it's not entirely true; the program runs fine without a console of any kind! To resolve this issue, I propose adding needs=daemon for these types of programs. Greets, --Chris -- System Information Debian Release: testing/unstable Kernel Version: Linux caviar 2.4.18 #1 Sat Jul 6 14:53:03 CEST 2002 i686 unknown unknown GNU/Linux Versions of the packages menu depends on: ii libc6 2.2.5-14.3 GNU C Library: Shared libraries and Timezone ii libstdc++2.10- 2.95.4-12 The GNU stdc++ library
Since no menu managers currently list daemon as 'supported' in their menu-method file, it would be a nice no-op until we fix every menu-method... Also we need to provide a reliable way to stop the daemon, maybe similar to the one used for system daemon. If you use need=text, it will be launched in a console only under X11. To avoid that, you can provide both X11 and text with the same command. Thanks for your interest for this package, Cheers,
So, if I just go ahead and use needs=daemon right now, what happens? Does the menu-entry get ignored, or does it do what I expect it to, i.e. start the daemon without a console? You're right about that, though "killall giFT" works fine for me ;) Thanks, I'll try that! If I remember correctly, the docs say not to do that though... btw: do I write needs=text,x11 or do I have to make 2 lines out of it? cheerio, --Chris
It will not appear in the menu at all, until you change the menu-method for your window manager and add daemon (and a suitable command) in the 'supported' section... You can add a 'Stop giFT' menu entry that just do 'killall giFT'. Of course, because this let the user the possibility to choose the xterm-like program to use, but here this is different. You must make two lines ?package(gift):needs=x11 ?package(gift):needs=text Cheers,