Hello community,
here is the log from the commit of package lxqt-powermanagement for
openSUSE:Factory checked in at 2017-10-24 22:23:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lxqt-powermanagement (Old)
and /work/SRC/openSUSE:Factory/.lxqt-powermanagement.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lxqt-powermanagement"
Tue Oct 24 22:23:11 2017 rev:9 rq:535979 version:0.12.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/lxqt-powermanagement/lxqt-powermanagement.changes
2017-03-13 15:33:31.217964277 +0100
+++
/work/SRC/openSUSE:Factory/.lxqt-powermanagement.new/lxqt-powermanagement.changes
2017-10-24 22:23:12.484890212 +0200
@@ -1,0 +2,39 @@
+Mon Oct 23 11:21:56 UTC 2017 - [email protected]
+
+- Update to 0.12.0:
+ * Set patch version
+ * Spell check (add "," and "-")
+ * Don't export github templates
+ * Adding missing "Comment" section to .desktop files. Fix for
https://github.com/lxde/lxqt/issues/1339
+ * Added Lithuanian language
+ * Drops Qt5Core_VERSION_STRING
+ * lxqt-config-powermanagement: set Qt::AA_UseHighDpiPixmaps to true
+ * Added QCommandLineParser and basic cli interface to
lxqt-config-powermanagement and lxqt-powermanagement
+ * Added default CMAKE_BUILD_TYPE and LXQT_POWERMANAGEMENT_PATCH_VERSION
+ * added *pl.desktop
+ * Fixes a FTBFS in superbuild mode
+ * Added merged autostart to CMakeLists.txt
+ * Updated *_da.desktop files and removed *_da_DK.desktop files
+ * Update desktop entries and Replace fr_FR by fr
+ * Move Italian desktop entry to correct path
+ * Update Greek translation (el) Remove country variant from language code
+ * Rename LxQt to LXQt everywhere
+ * CMake: Adds Runtime and Devel install COMPONENTs
+ * Coding style changes
+ * Updates the build system to use the Targets infrastructure
+ * Rename Power Management module name again
+ * Rename LXQt Power Management module name
+ * Drops hardcoded /etc/xdg paths
+ * Updated german translation, replaced Qt4 by Qt in all xsession/translations
+ * Portuguese update for .desktop files
+ * Updates translations infrastructure
+ * Update the required minimum cmake version
+ * remove dead template lines switch OnlyShowIn from Razor -> LXQt
stringchanges LxQt -> LXQt
+ * Renamed lxqt-autosuspend.desktop.in --> lxqt-powermanagement.desktop.in
+ * Support lxqt-session and add necessary xdg autostart desktop entry files.
+ * Default to no action if the action is not specified in the config file
+ * BatteryWatcher: Fix indentation
+ * Bump year
+- Remove post and postun
+
+-------------------------------------------------------------------
Old:
----
lxqt-powermanagement-0.11.1.tar.xz
lxqt-powermanagement-0.11.1.tar.xz.asc
New:
----
lxqt-powermanagement-0.12.0.tar.xz
lxqt-powermanagement-0.12.0.tar.xz.asc
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ lxqt-powermanagement.spec ++++++
--- /var/tmp/diff_new_pack.m8p1tc/_old 2017-10-24 22:23:13.068862915 +0200
+++ /var/tmp/diff_new_pack.m8p1tc/_new 2017-10-24 22:23:13.072862727 +0200
@@ -17,14 +17,14 @@
Name: lxqt-powermanagement
-Version: 0.11.1
+Version: 0.12.0
Release: 0
Summary: Power Management and Auto-suspend
License: LGPL-2.1+
Group: System/GUI/LXQt
Url: http://www.lxqt.org
-Source:
http://downloads.lxqt.org/lxqt/%{version}/%{name}-%{version}.tar.xz
-Source1:
http://downloads.lxqt.org/lxqt/%{version}/%{name}-%{version}.tar.xz.asc
+Source:
https://github.com/lxde/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
+Source1:
https://github.com/lxde/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc
Source2: %{name}.keyring
BuildRequires: cmake >= 3.0.2
BuildRequires: fdupes
@@ -39,9 +39,8 @@
BuildRequires: pkgconfig(Qt5UiTools)
BuildRequires: pkgconfig(Qt5Xdg)
BuildRequires: pkgconfig(lxqt) >= %{version}
+#BuildRequires: pkgconfig(xcb)
Recommends: %{name}-lang
-Requires(pre): desktop-file-utils
-Requires(post): desktop-file-utils
%requires_eq libQt5Gui5
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -61,12 +60,6 @@
%cmake_install
%fdupes -s %{buildroot}%{_datadir}
-%post
-%desktop_database_post
-
-%postun
-%desktop_database_postun
-
%files
%defattr(-,root,root)
%doc AUTHORS LICENSE README.md
@@ -76,5 +69,6 @@
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/devices
%{_datadir}/icons/hicolor/scalable/devices/*.svg
+%{_sysconfdir}/xdg/autostart/lxqt-powermanagement.desktop
%changelog
++++++ lxqt-powermanagement-0.11.1.tar.xz -> lxqt-powermanagement-0.12.0.tar.xz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lxqt-powermanagement-0.11.1/AUTHORS
new/lxqt-powermanagement-0.12.0/AUTHORS
--- old/lxqt-powermanagement-0.11.1/AUTHORS 2017-01-01 23:19:58.000000000
+0100
+++ new/lxqt-powermanagement-0.12.0/AUTHORS 2017-10-21 21:31:32.000000000
+0200
@@ -2,7 +2,7 @@
LXQt team: http://lxqt.org
Copyright:
- Copyright (c) 2013-2016 LXQt team
+ Copyright (c) 2013-2017 LXQt team
License: LGPL-2.1+
The full text of the licenses can be found in the 'COPYING' file.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lxqt-powermanagement-0.11.1/CHANGELOG
new/lxqt-powermanagement-0.12.0/CHANGELOG
--- old/lxqt-powermanagement-0.11.1/CHANGELOG 2017-01-01 23:19:58.000000000
+0100
+++ new/lxqt-powermanagement-0.12.0/CHANGELOG 2017-10-21 21:31:32.000000000
+0200
@@ -1,7 +1,45 @@
-lxqt-powermanagement-0.11.1 / 2017-01-01
+lxqt-powermanagement-0.12.0 / 2017-10-21
========================================
+ * Set patch version
+ * Spell check (add "," and "-")
+ * Don't export github templates
+ * Adding missing "Comment" section to .desktop files. Fix for
https://github.com/lxde/lxqt/issues/1339
+ * Added Lithuanian language
+ * Drops Qt5Core_VERSION_STRING
+ * lxqt-config-powermanagement: set Qt::AA_UseHighDpiPixmaps to true
+ * Added QCommandLineParser and basic cli interface to
lxqt-config-powermanagement and lxqt-powermanagement
+ * Added default CMAKE_BUILD_TYPE and LXQT_POWERMANAGEMENT_PATCH_VERSION
+ * added *pl.desktop
+ * Fixes a FTBFS in superbuild mode
+ * Added merged autostart to CMakeLists.txt
+ * Updated *_da.desktop files and removed *_da_DK.desktop files
+ * Update desktop entries and Replace fr_FR by fr
+ * Move Italian desktop entry to correct path
+ * Update Greek translation (el) Remove country variant from language code
+ * Rename LxQt to LXQt everywhere
+ * CMake: Adds Runtime and Devel install COMPONENTs
+ * Coding style changes
+ * Updates the build system to use the Targets infrastructure
+ * Rename Power Management module name again
+ * Rename LXQt Power Management module name
+ * Drops hardcoded /etc/xdg paths
+ * Updated german translation, replaced Qt4 by Qt in all xsession/translations
+ * Portuguese update for .desktop files
+ * Updates translations infrastructure
+ * Update the required minimum cmake version
+ * remove dead template lines switch OnlyShowIn from Razor -> LXQt
stringchanges LxQt -> LXQt
+ * Renamed lxqt-autosuspend.desktop.in --> lxqt-powermanagement.desktop.in
+ * Support lxqt-session and add necessary xdg autostart desktop entry files.
+ * Default to no action if the action is not specified in the config file
+ * BatteryWatcher: Fix indentation
+ * Bump year
+
+0.11.1 / 2017-01-01
+===================
+
+ * Release 0.11.1: Update changelog
* Add lxqt-config-powermanagement_da.desktop
* Create lxqt-config-powermanagement_fr.desktop
* Make CMakeLists.txt more uniform.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lxqt-powermanagement-0.11.1/CMakeLists.txt
new/lxqt-powermanagement-0.12.0/CMakeLists.txt
--- old/lxqt-powermanagement-0.11.1/CMakeLists.txt 2017-01-01
23:19:58.000000000 +0100
+++ new/lxqt-powermanagement-0.12.0/CMakeLists.txt 2017-10-21
21:31:32.000000000 +0200
@@ -12,16 +12,26 @@
option(UPDATE_TRANSLATIONS "Update source translation translations/*.ts files"
OFF)
find_package(Qt5DBus REQUIRED)
-find_package(Qt5LinguistTools REQUIRED QUIET)
+find_package(Qt5LinguistTools REQUIRED)
find_package(Qt5Svg REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5X11Extras REQUIRED)
-message(STATUS "Building with Qt${Qt5Core_VERSION_STRING}")
+message(STATUS "Building with Qt${Qt5Core_VERSION}")
find_package(KF5Solid REQUIRED)
find_package(lxqt REQUIRED)
+if(NOT CMAKE_BUILD_TYPE)
+ set(CMAKE_BUILD_TYPE Release)
+endif()
+
+# Patch Version
+set(LXQT_POWERMANAGEMENT_PATCH_VERSION 0)
+
+set(LXQT_POWERMANAGEMENT_VERSION
${LXQT_MAJOR_VERSION}.${LXQT_MINOR_VERSION}.${LXQT_POWERMANAGEMENT_PATCH_VERSION})
+add_definitions("-DLXQT_POWERMANAGEMENT_VERSION=\"${LXQT_POWERMANAGEMENT_VERSION}\"")
+
include(LXQtCompilerSettings NO_POLICY_SCOPE)
# Translations **********************************
@@ -29,3 +39,6 @@
add_subdirectory(config)
add_subdirectory(src)
+
+# merged from lxqt-common
+add_subdirectory(autostart)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lxqt-powermanagement-0.11.1/autostart/CMakeLists.txt
new/lxqt-powermanagement-0.12.0/autostart/CMakeLists.txt
--- old/lxqt-powermanagement-0.11.1/autostart/CMakeLists.txt 1970-01-01
01:00:00.000000000 +0100
+++ new/lxqt-powermanagement-0.12.0/autostart/CMakeLists.txt 2017-10-21
21:31:32.000000000 +0200
@@ -0,0 +1,17 @@
+cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
+
+file(GLOB DESKTOP_FILES_IN *.desktop.in)
+
+# Translations **********************************
+lxqt_translate_desktop(DESKTOP_FILES
+ SOURCES
+ ${DESKTOP_FILES_IN}
+)
+add_custom_target(lxqt_powermanagement_autostart_desktop_files ALL DEPENDS
${DESKTOP_FILES})
+#************************************************
+
+install(FILES
+ ${DESKTOP_FILES}
+ DESTINATION "${LXQT_ETC_XDG_DIR}/autostart"
+ COMPONENT Runtime
+)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-powermanagement-0.11.1/autostart/lxqt-powermanagement.desktop.in
new/lxqt-powermanagement-0.12.0/autostart/lxqt-powermanagement.desktop.in
--- old/lxqt-powermanagement-0.11.1/autostart/lxqt-powermanagement.desktop.in
1970-01-01 01:00:00.000000000 +0100
+++ new/lxqt-powermanagement-0.12.0/autostart/lxqt-powermanagement.desktop.in
2017-10-21 21:31:32.000000000 +0200
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=Power Management
+TryExec=lxqt-powermanagement
+Exec=lxqt-powermanagement
+OnlyShowIn=LXQt;
+X-LXQt-Need-Tray=true
+X-LXQt-Module=true
+
+#TRANSLATIONS_DIR=translations
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-powermanagement-0.11.1/autostart/translations/lxqt-powermanagement_da.desktop
new/lxqt-powermanagement-0.12.0/autostart/translations/lxqt-powermanagement_da.desktop
---
old/lxqt-powermanagement-0.11.1/autostart/translations/lxqt-powermanagement_da.desktop
1970-01-01 01:00:00.000000000 +0100
+++
new/lxqt-powermanagement-0.12.0/autostart/translations/lxqt-powermanagement_da.desktop
2017-10-21 21:31:32.000000000 +0200
@@ -0,0 +1,2 @@
+# Translations
+Name[da]=Strømstyring
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-powermanagement-0.11.1/autostart/translations/lxqt-powermanagement_de.desktop
new/lxqt-powermanagement-0.12.0/autostart/translations/lxqt-powermanagement_de.desktop
---
old/lxqt-powermanagement-0.11.1/autostart/translations/lxqt-powermanagement_de.desktop
1970-01-01 01:00:00.000000000 +0100
+++
new/lxqt-powermanagement-0.12.0/autostart/translations/lxqt-powermanagement_de.desktop
2017-10-21 21:31:32.000000000 +0200
@@ -0,0 +1,2 @@
+#TRANSLATIONS
+Name[de]=LXQt-Energieverwaltung
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-powermanagement-0.11.1/autostart/translations/lxqt-powermanagement_el.desktop
new/lxqt-powermanagement-0.12.0/autostart/translations/lxqt-powermanagement_el.desktop
---
old/lxqt-powermanagement-0.11.1/autostart/translations/lxqt-powermanagement_el.desktop
1970-01-01 01:00:00.000000000 +0100
+++
new/lxqt-powermanagement-0.12.0/autostart/translations/lxqt-powermanagement_el.desktop
2017-10-21 21:31:32.000000000 +0200
@@ -0,0 +1 @@
+Name[el]=Διαχείριση ενέργειας
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-powermanagement-0.11.1/autostart/translations/lxqt-powermanagement_fr.desktop
new/lxqt-powermanagement-0.12.0/autostart/translations/lxqt-powermanagement_fr.desktop
---
old/lxqt-powermanagement-0.11.1/autostart/translations/lxqt-powermanagement_fr.desktop
1970-01-01 01:00:00.000000000 +0100
+++
new/lxqt-powermanagement-0.12.0/autostart/translations/lxqt-powermanagement_fr.desktop
2017-10-21 21:31:32.000000000 +0200
@@ -0,0 +1 @@
+Name[fr]=Gestion de l'énergie
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-powermanagement-0.11.1/autostart/translations/lxqt-powermanagement_it.desktop
new/lxqt-powermanagement-0.12.0/autostart/translations/lxqt-powermanagement_it.desktop
---
old/lxqt-powermanagement-0.11.1/autostart/translations/lxqt-powermanagement_it.desktop
1970-01-01 01:00:00.000000000 +0100
+++
new/lxqt-powermanagement-0.12.0/autostart/translations/lxqt-powermanagement_it.desktop
2017-10-21 21:31:32.000000000 +0200
@@ -0,0 +1,2 @@
+#TRANSLATIONS
+Name[it]=Gestore energia
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-powermanagement-0.11.1/autostart/translations/lxqt-powermanagement_lt.desktop
new/lxqt-powermanagement-0.12.0/autostart/translations/lxqt-powermanagement_lt.desktop
---
old/lxqt-powermanagement-0.11.1/autostart/translations/lxqt-powermanagement_lt.desktop
1970-01-01 01:00:00.000000000 +0100
+++
new/lxqt-powermanagement-0.12.0/autostart/translations/lxqt-powermanagement_lt.desktop
2017-10-21 21:31:32.000000000 +0200
@@ -0,0 +1 @@
+Name[lt]=Maitinimo valdymas
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-powermanagement-0.11.1/autostart/translations/lxqt-powermanagement_pl.desktop
new/lxqt-powermanagement-0.12.0/autostart/translations/lxqt-powermanagement_pl.desktop
---
old/lxqt-powermanagement-0.11.1/autostart/translations/lxqt-powermanagement_pl.desktop
1970-01-01 01:00:00.000000000 +0100
+++
new/lxqt-powermanagement-0.12.0/autostart/translations/lxqt-powermanagement_pl.desktop
2017-10-21 21:31:32.000000000 +0200
@@ -0,0 +1 @@
+Name[pl]=Zarządzanie energią
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-powermanagement-0.11.1/autostart/translations/lxqt-powermanagement_pt.desktop
new/lxqt-powermanagement-0.12.0/autostart/translations/lxqt-powermanagement_pt.desktop
---
old/lxqt-powermanagement-0.11.1/autostart/translations/lxqt-powermanagement_pt.desktop
1970-01-01 01:00:00.000000000 +0100
+++
new/lxqt-powermanagement-0.12.0/autostart/translations/lxqt-powermanagement_pt.desktop
2017-10-21 21:31:32.000000000 +0200
@@ -0,0 +1,2 @@
+#TRANSLATIONS
+Name[pt]=Gestor de energia do LXQt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lxqt-powermanagement-0.11.1/config/main.cpp
new/lxqt-powermanagement-0.12.0/config/main.cpp
--- old/lxqt-powermanagement-0.11.1/config/main.cpp 2017-01-01
23:19:58.000000000 +0100
+++ new/lxqt-powermanagement-0.12.0/config/main.cpp 2017-10-21
21:31:32.000000000 +0200
@@ -27,11 +27,24 @@
#include <LXQt/SingleApplication>
+#include <QCommandLineParser>
+
#include "mainwindow.h"
int main(int argc, char *argv[])
{
LXQt::SingleApplication a(argc, argv);
+ a.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
+
+ QCommandLineParser parser;
+ parser.setApplicationDescription(QStringLiteral("LXQt Config
Powermanagement"));
+ const QString VERINFO = QStringLiteral(LXQT_POWERMANAGEMENT_VERSION
+ "\nliblxqt " LXQT_VERSION
+ "\nQt " QT_VERSION_STR);
+ a.setApplicationVersion(VERINFO);
+ parser.addVersionOption();
+ parser.addHelpOption();
+ parser.process(a);
MainWindow mainWindow;
mainWindow.setWindowIcon(QIcon::fromTheme("preferences-system-power-management"));
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-powermanagement-0.11.1/config/powermanagementsettings.cpp
new/lxqt-powermanagement-0.12.0/config/powermanagementsettings.cpp
--- old/lxqt-powermanagement-0.11.1/config/powermanagementsettings.cpp
2017-01-01 23:19:58.000000000 +0100
+++ new/lxqt-powermanagement-0.12.0/config/powermanagementsettings.cpp
2017-10-21 21:31:32.000000000 +0200
@@ -81,7 +81,7 @@
int PowerManagementSettings::getPowerLowAction()
{
- return value(POWER_LOW_ACTION_KEY, 0).toInt();
+ return value(POWER_LOW_ACTION_KEY, -1).toInt();
}
void PowerManagementSettings::setPowerLowAction(int powerLowAction)
@@ -141,7 +141,7 @@
int PowerManagementSettings::getLidClosedAcAction()
{
- return value(LID_CLOSED_AC_ACTION_KEY, 0).toInt();
+ return value(LID_CLOSED_AC_ACTION_KEY, -1).toInt();
}
void PowerManagementSettings::setLidClosedAcAction(int lidClosedAcAction)
@@ -151,7 +151,7 @@
int PowerManagementSettings::getLidClosedAction()
{
- return value(LID_CLOSED_ACTION_KEY, 0).toInt();
+ return value(LID_CLOSED_ACTION_KEY, -1).toInt();
}
void PowerManagementSettings::setLidClosedAction(int lidClosedAction)
@@ -161,7 +161,7 @@
int PowerManagementSettings::getLidClosedExtMonAcAction()
{
- return value(LID_CLOSED_EXT_MON_AC_ACTION_KEY, 0).toInt();
+ return value(LID_CLOSED_EXT_MON_AC_ACTION_KEY, -1).toInt();
}
void PowerManagementSettings::setLidClosedExtMonAcAction(int
lidClosedExtMonAcAction)
@@ -171,7 +171,7 @@
int PowerManagementSettings::getLidClosedExtMonAction()
{
- return value(LID_CLOSED_EXT_MON_ACTION_KEY, 0).toInt();
+ return value(LID_CLOSED_EXT_MON_ACTION_KEY, -1).toInt();
}
void PowerManagementSettings::setLidClosedExtMonAction(int
lidClosedExtMonAction)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-powermanagement-0.11.1/config/translations/lxqt-config-powermanagement_da.desktop
new/lxqt-powermanagement-0.12.0/config/translations/lxqt-config-powermanagement_da.desktop
---
old/lxqt-powermanagement-0.11.1/config/translations/lxqt-config-powermanagement_da.desktop
2017-01-01 23:19:58.000000000 +0100
+++
new/lxqt-powermanagement-0.12.0/config/translations/lxqt-config-powermanagement_da.desktop
2017-10-21 21:31:32.000000000 +0200
@@ -1,3 +1,3 @@
Name[da]=Strømstyring
GenericName[da]=Indstillinger for strømstyring
-Comment[da]=Diverse indstillinger omhandlende strømstyring såsom batteri eller
tomgangsovervågning
+Comment[da]=Diverse indstillinger omhandlende strømstyring, såsom batteri-
eller tomgangsovervågning
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-powermanagement-0.11.1/config/translations/lxqt-config-powermanagement_hu.desktop
new/lxqt-powermanagement-0.12.0/config/translations/lxqt-config-powermanagement_hu.desktop
---
old/lxqt-powermanagement-0.11.1/config/translations/lxqt-config-powermanagement_hu.desktop
2017-01-01 23:19:58.000000000 +0100
+++
new/lxqt-powermanagement-0.12.0/config/translations/lxqt-config-powermanagement_hu.desktop
2017-10-21 21:31:32.000000000 +0200
@@ -1,3 +1,4 @@
# Translations
-GenericName[hu]=LXQt energiakezelés beállítása
Name[hu]=Energiakezelés
+GenericName[hu]=LXQt energiakezelés beállítása
+Comment[hu]=LXQt energiakezelés beállítása
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-powermanagement-0.11.1/config/translations/lxqt-config-powermanagement_it.desktop
new/lxqt-powermanagement-0.12.0/config/translations/lxqt-config-powermanagement_it.desktop
---
old/lxqt-powermanagement-0.11.1/config/translations/lxqt-config-powermanagement_it.desktop
2017-01-01 23:19:58.000000000 +0100
+++
new/lxqt-powermanagement-0.12.0/config/translations/lxqt-config-powermanagement_it.desktop
2017-10-21 21:31:32.000000000 +0200
@@ -1,2 +1,3 @@
Name[it]=Gestore energia
GenericName[it]=Impostazioni del risparmio energetico
+Comment[it]=Diverse impostazioni per il risparmio energetico
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-powermanagement-0.11.1/config/translations/lxqt-config-powermanagement_ja.desktop
new/lxqt-powermanagement-0.12.0/config/translations/lxqt-config-powermanagement_ja.desktop
---
old/lxqt-powermanagement-0.11.1/config/translations/lxqt-config-powermanagement_ja.desktop
2017-01-01 23:19:58.000000000 +0100
+++
new/lxqt-powermanagement-0.12.0/config/translations/lxqt-config-powermanagement_ja.desktop
2017-10-21 21:31:32.000000000 +0200
@@ -1,5 +1,4 @@
# Translations
-GenericName[ja]=電源管理の設定
Name[ja]=電源管理
-
-#TRANSLATIONS_DIR=translations
+GenericName[ja]=電源管理の設定
+Comment[ja]=電源管理の設定
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-powermanagement-0.11.1/config/translations/lxqt-config-powermanagement_lt.desktop
new/lxqt-powermanagement-0.12.0/config/translations/lxqt-config-powermanagement_lt.desktop
---
old/lxqt-powermanagement-0.11.1/config/translations/lxqt-config-powermanagement_lt.desktop
1970-01-01 01:00:00.000000000 +0100
+++
new/lxqt-powermanagement-0.12.0/config/translations/lxqt-config-powermanagement_lt.desktop
2017-10-21 21:31:32.000000000 +0200
@@ -0,0 +1,3 @@
+Name[lt]=Maitinimo valdymas
+GenericName[lt]=Maitinimo valdymo nustatymai
+Comment[lt]=Įvairūs su maitinimo valdymu susiję nustatymai
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-powermanagement-0.11.1/config/translations/lxqt-config-powermanagement_pl.desktop
new/lxqt-powermanagement-0.12.0/config/translations/lxqt-config-powermanagement_pl.desktop
---
old/lxqt-powermanagement-0.11.1/config/translations/lxqt-config-powermanagement_pl.desktop
1970-01-01 01:00:00.000000000 +0100
+++
new/lxqt-powermanagement-0.12.0/config/translations/lxqt-config-powermanagement_pl.desktop
2017-10-21 21:31:32.000000000 +0200
@@ -0,0 +1,3 @@
+Name[pl]=Zarządzanie energią
+GenericName[pl]=Konfiguracja zarządzania energią
+Comment[pl]=Konfiguracja zarządzania energią
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-powermanagement-0.11.1/config/translations/lxqt-config-powermanagement_pl_PL.desktop
new/lxqt-powermanagement-0.12.0/config/translations/lxqt-config-powermanagement_pl_PL.desktop
---
old/lxqt-powermanagement-0.11.1/config/translations/lxqt-config-powermanagement_pl_PL.desktop
2017-01-01 23:19:58.000000000 +0100
+++
new/lxqt-powermanagement-0.12.0/config/translations/lxqt-config-powermanagement_pl_PL.desktop
1970-01-01 01:00:00.000000000 +0100
@@ -1,2 +0,0 @@
-Name[pl_PL]=Zarządzanie energią
-GenericName[pl_PL]=Konfiguracja zarządzania energią
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-powermanagement-0.11.1/config/translations/lxqt-config-powermanagement_pt.desktop
new/lxqt-powermanagement-0.12.0/config/translations/lxqt-config-powermanagement_pt.desktop
---
old/lxqt-powermanagement-0.11.1/config/translations/lxqt-config-powermanagement_pt.desktop
2017-01-01 23:19:58.000000000 +0100
+++
new/lxqt-powermanagement-0.12.0/config/translations/lxqt-config-powermanagement_pt.desktop
2017-10-21 21:31:32.000000000 +0200
@@ -1,2 +1,3 @@
Name[pt]=Gestão de energia
GenericName[pt]=Definições do gestor de energia
+Comment[pt]=Definições do gestor de energia
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-powermanagement-0.11.1/config/translations/lxqt-config-powermanagement_ru.desktop
new/lxqt-powermanagement-0.12.0/config/translations/lxqt-config-powermanagement_ru.desktop
---
old/lxqt-powermanagement-0.11.1/config/translations/lxqt-config-powermanagement_ru.desktop
2017-01-01 23:19:58.000000000 +0100
+++
new/lxqt-powermanagement-0.12.0/config/translations/lxqt-config-powermanagement_ru.desktop
2017-10-21 21:31:32.000000000 +0200
@@ -1,3 +1,4 @@
# Translations
+Name[ru]=Управление энергопотреблением
GenericName[ru]=Настройки управления энергопотреблением
-Name[ru]=Управление энергопотреблением
\ No newline at end of file
+Comment[ru]=Настройки управления энергопотреблением
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lxqt-powermanagement-0.11.1/src/batterywatcher.cpp
new/lxqt-powermanagement-0.12.0/src/batterywatcher.cpp
--- old/lxqt-powermanagement-0.11.1/src/batterywatcher.cpp 2017-01-01
23:19:58.000000000 +0100
+++ new/lxqt-powermanagement-0.12.0/src/batterywatcher.cpp 2017-10-21
21:31:32.000000000 +0200
@@ -44,18 +44,18 @@
if (devices.isEmpty())
{
- LXQt::Notification::notify(tr("No battery!"),
- tr("LXQt could not find data about any
battery - monitoring disabled"),
- "lxqt-powermanagement");
+ LXQt::Notification::notify(tr("No battery!"),
+ tr("LXQt could not find data about any battery - monitoring
disabled"),
+ "lxqt-powermanagement");
}
foreach (Solid::Device device, devices)
{
Solid::Battery *battery = device.as<Solid::Battery>();
- if (battery->type() != Solid::Battery::PrimaryBattery)
- {
- continue;
- }
+ if (battery->type() != Solid::Battery::PrimaryBattery)
+ {
+ continue;
+ }
mBatteries << battery;
connect(battery, &Solid::Battery::energyChanged, this,
&BatteryWatcher::batteryChanged);
connect(battery, &Solid::Battery::chargeStateChanged, this,
&BatteryWatcher::batteryChanged);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lxqt-powermanagement-0.11.1/src/main.cpp
new/lxqt-powermanagement-0.12.0/src/main.cpp
--- old/lxqt-powermanagement-0.11.1/src/main.cpp 2017-01-01
23:19:58.000000000 +0100
+++ new/lxqt-powermanagement-0.12.0/src/main.cpp 2017-10-21
21:31:32.000000000 +0200
@@ -25,6 +25,7 @@
#include <QDBusConnection>
#include <QDebug>
+#include <QCommandLineParser>
#include <LXQt/Application>
@@ -36,6 +37,16 @@
LXQt::Application a(argc, argv);
a.setQuitOnLastWindowClosed(false);
+ QCommandLineParser parser;
+ parser.setApplicationDescription(QStringLiteral("LXQt Powermanagement
Daemon"));
+ const QString VERINFO = LXQT_POWERMANAGEMENT_VERSION \
+ "\nliblxqt " LXQT_VERSION \
+ "\nQt " QT_VERSION_STR;
+ a.setApplicationVersion(VERINFO);
+ parser.addVersionOption();
+ parser.addHelpOption();
+ parser.process(a);
+
// To ensure only one instance of lxqt-powermanagement is running we
register as a DBus service and refuse to run
// if not able to do so.
// We do not register any object as we don't have any dbus-operations to
expose.