Hello community, here is the log from the commit of package kmozillahelper for openSUSE:Factory checked in at 2019-08-05 10:36:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kmozillahelper (Old) and /work/SRC/openSUSE:Factory/.kmozillahelper.new.4126 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kmozillahelper" Mon Aug 5 10:36:45 2019 rev:5 rq:720162 version:5.0.5 Changes: -------- --- /work/SRC/openSUSE:Factory/kmozillahelper/kmozillahelper.changes 2019-07-21 11:33:37.932784517 +0200 +++ /work/SRC/openSUSE:Factory/.kmozillahelper.new.4126/kmozillahelper.changes 2019-08-05 10:36:51.747331168 +0200 @@ -1,0 +2,6 @@ +Thu Aug 1 08:39:43 UTC 2019 - Fabian Vogt <[email protected]> + +- Update to 5.0.5: + * Recognize if started from Thunderbird + +------------------------------------------------------------------- Old: ---- kmozillahelper-5.0.4.tar.gz New: ---- kmozillahelper-5.0.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kmozillahelper.spec ++++++ --- /var/tmp/diff_new_pack.36f4D8/_old 2019-08-05 10:36:52.231331110 +0200 +++ /var/tmp/diff_new_pack.36f4D8/_new 2019-08-05 10:36:52.235331109 +0200 @@ -20,7 +20,7 @@ # having a hard requirement on this package %define helper_version 6 Name: kmozillahelper -Version: 5.0.4 +Version: 5.0.5 Release: 0 Summary: Helper for KDE Firefox Integration License: MIT ++++++ kmozillahelper-5.0.4.tar.gz -> kmozillahelper-5.0.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kmozillahelper-5.0.4/main.cpp new/kmozillahelper-5.0.5/main.cpp --- old/kmozillahelper-5.0.4/main.cpp 2019-07-18 16:31:26.000000000 +0200 +++ new/kmozillahelper-5.0.5/main.cpp 2019-08-01 10:34:47.000000000 +0200 @@ -25,6 +25,7 @@ #include "main.h" #include <cassert> +#include <sys/types.h> #include <unistd.h> #include <iostream> @@ -54,7 +55,7 @@ //#define DEBUG_KDE #define HELPER_VERSION 6 -#define APP_HELPER_VERSION "5.0.4" +#define APP_HELPER_VERSION "5.0.5" int main(int argc, char* argv[]) { @@ -64,8 +65,14 @@ QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true); + // Check whether we're called from Firefox or Thunderbird + QString appname = i18n("Mozilla Firefox"); + QString parent = QFile::symLinkTarget(QStringLiteral("/proc/%1/exe").arg(int(getppid()))); + if(parent.contains("thunderbird", Qt::CaseInsensitive)) + appname = i18n("Mozilla Thunderbird"); + // This shows on file dialogs - KAboutData about("kmozillahelper", i18n("Mozilla Firefox"), APP_HELPER_VERSION); + KAboutData about("kmozillahelper", appname, APP_HELPER_VERSION); about.setBugAddress("https://bugzilla.opensuse.org/enter_bug.cgi"); KAboutData::setApplicationData(about); QApplication::setQuitOnLastWindowClosed(false);
