Fix crash on startup

This commit is contained in:
Matti Viljanen 2020-03-23 04:04:47 +02:00
parent 6cee5f0888
commit fe8b27d18c
No known key found for this signature in database
GPG key ID: CF32A1495158F888
4 changed files with 9 additions and 5 deletions

View file

@ -72,7 +72,7 @@ Page {
AboutLabel {
font.pixelSize: Theme.fontSizeSmall
color: Theme.secondaryColor
text: qsTr("Version") + " 2.1-1"
text: qsTr("Version") + " 2.1-2"
}
AboutLabel {

View file

@ -1,3 +1,7 @@
* Sat Mar 21 2020 Matti Viljanen (direc85) <matti.viljanen@kapsi.fi> 2.1-2
- Fix crash on startup after upgrade
- Fix missing systemd service after upgrade
* Sat Mar 21 2020 Matti Viljanen (direc85) <matti.viljanen@kapsi.fi> 2.1-1
- Add landscape orientation support
- Update Chinese translation (thanks, dashinfantry)

View file

@ -14,7 +14,7 @@ Name: harbour-batterybuddy
%{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: Battery Buddy
Version: 2.1
Release: 1
Release: 2
Group: Qt/Qt
License: LICENSE
URL: http://example.org/
@ -70,10 +70,10 @@ desktop-file-install --delete-original \
# >> files
# << files
%post
%posttrans
systemctl disable --now harbour-batterybuddy.service
cp %{_datadir}/%{name}/service/harbour-batterybuddy.service /etc/systemd/system/
chmod 755 %{_datadir}/%{name}/service/*.sh
systemctl disable --now harbour-batterybuddy.service
systemctl enable --now harbour-batterybuddy.service
%postun

View file

@ -15,7 +15,7 @@
# Author: Matti Viljanen
[Unit]
Description=Allow user nemo to write to charging control file
Description=Battery Buddy file permission daemon
[Service]
Type=oneshot