- full-replacement PXML is one option, another is
- apply override to all sections that match -- by unique-id, so apply override to all sub-apps that apply?
+- switch default skin to davec
+- kill -3 .. request quit
+
- add font and fontcolour control to conf
- About screen and shoutouts // konami code?
+- Perhaps a seriesof conf sections for per-file-extension or per-mimetype or both
+ [Section-FILEEXT] and [Section-MIMETYPE]
+ icon /some/path
+ invoke /path/to/proggy/to/run/it
+ -- this would thus let us do things like invoke a video player
+ -- alternative: parse the MIME handlers for xfce (say), to poach the info. Could be really slow.
- add check.. if bad skin reported by mmenu, have mmwrapper set it back to default? or mm itself do it?
- deploy..
- .desktop for deployment, for running from xfce
-- maybe:
- - directory browser; easy hack
-
- future
- - honor render_mask to know what to update
- handle SD eject/insert? or leave on manual
- add callback to pnd_disco_Search (maybe new func to not break cpas code), so can show number apps found so far
- - note taking field
#include <ctype.h>
#include <sys/wait.h>
#include <dirent.h>
+#include <signal.h> // for sigaction
#include "pnd_logger.h"
#include "pnd_pxml.h"
char *g_skinpath = NULL; // where 'skin_selected' is located .. the fullpath including skin-dir-name
pnd_conf_handle g_skinconf = NULL;
+void sigquit_handler ( int n );
+
int main ( int argc, char *argv[] ) {
int logall = -1; // -1 means normal logging rules; >=0 means log all!
int i;
emit_and_quit ( MM_QUIT );
}
+ /* set up quit signal handler
+ */
+ sigset_t ss;
+ sigemptyset ( &ss );
+
+ struct sigaction siggy;
+ siggy.sa_handler = sigquit_handler;
+ siggy.sa_mask = ss; /* implicitly blocks the origin signal */
+ siggy.sa_flags = SA_RESTART; /* don't need anything */
+ sigaction ( SIGQUIT, &siggy, NULL );
+
/* category conf file
*/
{
return;
}
+
+void sigquit_handler ( int n ) {
+ pnd_log ( pndn_rem, "SIGQUIT received; graceful exit.\n" );
+ emit_and_quit ( MM_QUIT );
+}