diff --git a/src/Info.plist b/src/Info.plist
index 0ff366e76..29d75a13b 100644
--- a/src/Info.plist
+++ b/src/Info.plist
@@ -15,6 +15,28 @@
CFBundleIdentifier
com.qupzilla.QupZilla
+
+
+ CFBundleTypeExtensions
+
+ html
+ htm
+ shtml
+ xhtml
+
+ CFBundleTypeIconFile
+ @ICON@
+ CFBundleTypeName
+ HTML Document
+ CFBundleTypeOSTypes
+
+ HTML
+
+ CFBundleTypeRole
+ Viewer
+
+
+
CFBundleDevelopmentRegion
English
CFBundleName
@@ -23,6 +45,6 @@
QupZilla
NOTE
- This file was generated by Qt/QMake.
+ QupZilla Web Browser
diff --git a/src/app/mainapplication.cpp b/src/app/mainapplication.cpp
index 9050c22b2..fa098992f 100644
--- a/src/app/mainapplication.cpp
+++ b/src/app/mainapplication.cpp
@@ -47,10 +47,20 @@
#ifdef Q_WS_WIN
#define DEFAULT_CHECK_UPDATES true
-#define DEFAULT_THEME_NAME "windows"
#else
#define DEFAULT_CHECK_UPDATES false
+#endif
+
+#ifdef Q_WS_WIN
+#define DEFAULT_THEME_NAME "windows"
+#elif defined(Q_WS_X11)
#define DEFAULT_THEME_NAME "linux"
+#elif defined(Q_WS_MAC)
+#define DEFAULT_THEME_NAME "mac"
+#elif defined(Q_OS_OS2)
+#define DEFAULT_THEME_NAME "windows"
+#else
+#define DEFAULT_THEME_NAME "default"
#endif
#if defined(PORTABLE_BUILD) && !defined(NO_SYSTEM_DATAPATH)
@@ -82,12 +92,16 @@ MainApplication::MainApplication(const QList &cm
, m_isRestoring(false)
, m_databaseConnected(false)
{
-#if defined(Q_WS_X11) & !defined(NO_SYSTEM_DATAPATH)
+#if defined(Q_WS_X11) && !defined(NO_SYSTEM_DATAPATH)
DATADIR = USE_DATADIR;
#else
DATADIR = qApp->applicationDirPath() + "/";
#endif
+#ifdef Q_WS_MAC
+ DATADIR.append("Resources/");
+#endif
+
#ifdef PORTABLE_BUILD
PROFILEDIR = DATADIR + "profiles/";
#else
@@ -561,7 +575,7 @@ void MainApplication::quitApplication()
// everything gets saved also when quitting application in other
// way than clicking Quit action in File menu or closing last window
//
- // * this can occur on Mac OS
+ // * this can occur on Mac OS (see #157)
quit();
}
diff --git a/src/src.pro b/src/src.pro
index a9235d73a..e89b10a24 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -377,6 +377,13 @@ win32 {
mac {
QMAKE_INFO_PLIST = Info.plist
ICON = data/icons/exeicons/qupzilla.icns
+
+ bundle_target.files += ../bin/locale
+ bundle_target.files += ../bin/plugins
+ bundle_target.files += ../bin/themes
+ bundle_target.path = Resources
+
+ QMAKE_BUNDLE_DATA += bundle_target
}
unix {