Auto add convert if this was not found before

This commit is contained in:
Michiel Broek
2004-08-21 13:46:15 +00:00
parent b7843e3500
commit fc8a84633c
4 changed files with 9 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ m_tty.o: ../config.h ../lib/mbselib.h screen.h mutil.h ledit.h stlist.h m_modem.
mutil.o: ../config.h ../lib/mbselib.h ../lib/diesel.h screen.h ledit.h mutil.h
m_archive.o: ../config.h ../lib/mbselib.h ../paths.h screen.h mutil.h ledit.h stlist.h m_global.h m_archive.h
m_fdb.o: ../config.h ../lib/mbselib.h ../lib/users.h ../lib/mbsedb.h screen.h mutil.h ledit.h m_global.h m_farea.h m_fdb.h
m_global.o: ../config.h ../lib/mbselib.h screen.h mutil.h ledit.h m_node.h m_marea.h m_ticarea.h m_new.h m_fgroup.h m_mgroup.h m_limits.h m_global.h
m_global.o: ../config.h ../paths.h ../lib/mbselib.h screen.h mutil.h ledit.h m_node.h m_marea.h m_ticarea.h m_new.h m_fgroup.h m_mgroup.h m_limits.h m_global.h
m_magic.o: ../config.h ../lib/mbselib.h screen.h mutil.h ledit.h stlist.h m_ticarea.h m_global.h m_magic.h
m_mgroup.o: ../config.h ../lib/mbselib.h screen.h mutil.h ledit.h stlist.h m_global.h m_node.h m_marea.h m_mgroup.h
m_node.o: ../config.h ../lib/mbselib.h screen.h mutil.h ledit.h grlist.h stlist.h m_global.h m_lang.h m_ticarea.h m_marea.h m_node.h

View File

@@ -29,6 +29,7 @@
*****************************************************************************/
#include "../config.h"
#include "../paths.h"
#include "../lib/mbselib.h"
#include "screen.h"
#include "mutil.h"
@@ -1455,6 +1456,11 @@ void global_menu(void)
Syslog('+', "Main config, upgraded rules directory");
}
if (!strlen(CFG.www_convert) && strlen(_PATH_CONVERT)) {
sprintf(CFG.www_convert,"%s -geometry x100", _PATH_CONVERT);
Syslog('+', "Main config, installed convert for thumbnails");
}
if (!CFG.is_upgraded) {
CFG.priority = 15;
#ifdef __linux__