-mkdir wx-console.app/Contents/Resources/English.lproj
echo -n 'APPL????' > wx-console.app/Contents/PkgInfo
mv wx-console wx-console.app/Contents/MacOS/wx-console
- cp wx-console.conf wx-console.app/Contents/MacOS/wx-console.conf
+ -mkdir /Library/Preferences/org.bacula.wxconsole
+ cp wx-console.conf /Library/Preferences/org.bacula.wxconsole/wx-console.conf
wx-console: $(CONSOBJS) @WIN32@ ../lib/libbac.a
$(CXX) $(CONSOBJS) $(WIN32RES) -o $@ $(LIBS) -L../lib $(CONS_LDFLAGS) -lbac
general : Show nice messages boxes when errors occurs.
Mac OS X : Integrate Mac OS X into the automake process
- (note : add -DNO_GCC_PRAGMA to CPPFLAGS)
+ (note : add -DNO_GCC_PRAGMA to CPPFLAGS, build app,
+ define HAVE_MACOSX)
Mac OS X : "You must first get a unique identifier for your application,
a so called creator, a four letter constant. All you need to know about
char TERM_msg[] = "2999 Terminate\n";
#endif
+#ifdef HAVE_MACOSX
+#define CONFIGFILE "/Library/Preferences/org.bacula.wxconsole/wx-console.conf"
+#else
+#define CONFIGFILE "./wx-console.conf"
+#endif
+
/* Imported functions */
int authenticate_director(JCR *jcr, DIRRES *director, CONRES *cons);
init_msg(NULL, NULL);
/* TODO (#4#): Allow the user to choose his config file. */
- parse_config("./wx-console.conf");
+ parse_config(CONFIGFILE);
LockRes();
DIRRES *dir = (DIRRES *)GetNextRes(R_DIRECTOR, NULL);