Patch: Calendar events on lockscreen

Rating: 
4.916665
Your rating: None Average: 4.9 (12 votes)

This is a patch for the lockscreen to show the upcoming events.on The view is fully configurable using the settings. Usage: Install and then apply patch through patch manager. Source: https://github.com/anigaj/lockCalPatch

Screenshots: 
Application versions: 
AttachmentSizeDate
File lockscreen-upcoming-0.1-1.armv7hl.rpm5.26 KB06/07/2015 - 08:31
File lockscreen-upcoming-0.2-1.armv7hl.rpm11.25 KB03/08/2015 - 15:18
File lockscreen-upcoming-0.3-1.armv7hl.rpm12.21 KB04/09/2015 - 15:17
File lockscreen-upcoming-0.4-1.armv7hl.rpm12.72 KB22/09/2015 - 02:02
File lockscreen-upcoming-0.4-2.armv7hl.rpm12.75 KB23/09/2015 - 04:10
File lockscreen-upcoming-0.5-1.noarch.rpm12.87 KB29/10/2015 - 05:00
File lockscreen-upcoming-0.6-1.noarch.rpm14.03 KB12/04/2017 - 19:49
File lockscreen-upcoming-0.7-1.noarch.rpm18.02 KB27/09/2017 - 08:21
File lockscreen-upcoming-0.8-1.noarch.rpm22.2 KB09/11/2018 - 20:57
File lockscreen-upcoming-0.9-1.noarch.rpm22.59 KB16/01/2019 - 09:17
File lockscreen-upcoming-1.0-1.noarch.rpm22.85 KB29/04/2021 - 08:15
File lockscreen-upcoming-1.1-1.noarch.rpm25.36 KB28/05/2025 - 09:30
Changelog: 

(none)

Comments

objectifnul's picture

Perhaps there is a compatibility issue with some other patches, difficult to analyze. Anyway, after activation failed, I couldn't reinstall or uninstall this patch (same issue reported by @Sanktus). The patch still remained in the patchmanager list (activation impossible). Then I removed it completely (deleted manually all files assumed to be related with lockscreen-upcoming, including "rpm -e --noscripts lockscreen-upcoming"). After that, the patch eventually disappeared from the list of available patchamanager options, but I'm still unable to reinstall/activate it successfully (current version or previous one). Of course, I can't confirm I've actually deleted absolutely everything that was supposed to be removed or cleared before a clean installation.

Running SFOS 1.1.6.27, nine other patches applied (Calendar patch, upcoming events in cover, zoom patch, battery statusbar on lockscreen, eventsview controls with settings, launcher combined, lockscreen player controls, meecast widget, display sneak peak).

anig's picture

The patch modifies Lockscreen.qml and adds the following files: ShowCalEvents.qml, BorderRectangle.qml, LockEventItem.qml and LockTimeLabel.qml. Coderus posted this suggestion on TMO for someone who had a similar issuue:
use this command to remove
patch -R -p 1 -d / -i /var/lib/patchmanager/ausmt/patches//unified_diff.patch

and skip already unapplied entries. Then you can reapply this patch as usual.

objectifnul's picture

Probably

patch -R -p 1 -d / -i /var/lib/patchmanager/ausmt/patches/lockscreen-upcoming/unified_diff.patch

instead of

patch -R -p 1 -d / -i /var/lib/patchmanager/ausmt/patches//unified_diff.patch

Right?

anig's picture

Yes

cocovina's picture

I had the same problem. I ran the command above, and now I see only a blank lock-screen with the wallpaper (of course rebooted). Can not go to launcher - nothing! Any idea?

ronny_b's picture

Hello,

where from the file "/usr/share/lipstick-jolla-home-qt5/lockscreen/BorderRectangle.qml" comes? This should be changed by the patch.

With me this file does not exist.

Thanks Ronny.

anig's picture

It is a new file that is created when the patch is applied.

ronny_b's picture

Ok.

When I select "Apply patch" patchmanager shows the following error "Failed to install patch". How can I more exactly localize this?

Thanks!

Ronny

anig's picture

The only file it is modifying is usr/share/lipstick-jolla-home-qt5/lockscreen/Lockscreen.qml
Have you manually changed anything in it?

ronny_b's picture

This file is from 2015/07/03 with a length of 13385 bytes.

anig's picture

General advice from TMO when you have patch issues:

unapply all applied patches which can be unapplied
go to terminal and write following:

devel-su
pkcon remove ausmt
cd /var/lib
rm -rf patchmanager
pkcon install lipstick-jolla-home-qt5

Then you need to install patchmanager and all patches again from warehouse. It should work.

ronny_b's picture

I have uninstalled everything again, according to your instructions. Then I have also uninstalled all patches which existing then and restart the Jolla.

Then I have installed only the "patchmanager" and your patch. By the call I got the error message again "Failed to install patch".

If I want to deinstall your patch, unfortunately, always with ' rpm-e - noscripts lockscreen-upcoming ', because I get otherwise the following mistake:

zypper remove lockscreen-upcoming
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following package is going to be REMOVED:
  lockscreen-upcoming

1 package to remove.
After the operation, 38.2 KiB will be freed.
Continue? [y/n/?] (y): y
Removing lockscreen-upcoming-0.2-1 ...................................................................................................................................................[error]
Removal of (5640)lockscreen-upcoming-0.2-1.armv7hl(@System) failed:
Error: Subprocess failed. Error: RPM failed: /var/tmp/rpm-tmp.MtoTU8: line 1: //: is a directory
/var/tmp/rpm-tmp.MtoTU8: line 2: patchmanager: command not found
error: %preun(lockscreen-upcoming-0.2-1.armv7hl) scriptlet failed, exit status 127
error: lockscreen-upcoming-0.2-1.armv7hl: erase failed

Ronny

ronny_b's picture

Hello,

now, I could solve the problem. In the directory '/usr/share/lipstick-jolla-home-qt5/lockscreen/' were still files of the old version of the patch.

Ronny

damoleon's picture

can you precise which one ? I have the exact same problem, cheers

anig's picture

Good to hear you got it working. I will try to add additional checks to the install/uninstall scripts to make it smoother in the future.

sanktus's picture

Hi, i cant remove this patch. I get this message from the warehouse app:

Transaction /4487_ecdecbb

Status: cannot-remove-system-package

Extra details:

Subprocess failed. Error: RPM failed /var/tmp/rpm-tmp.daGg3G: line1://: is a directory

error: 0x44bdd240reun(lockscreen-upcoming-0.2-1.armv7hl) scriptlet failed, exit status 2

error: lockscreen-upcoming-0.2-1.armv7hl: erase failed

 

The patch do not work to 100%. I have the settings, but no events at my lockscreen.

Thats why i try to remove it. Mfg sanktus

anig's picture

You need to install patchmanager from here https://openrepos.net/content/sfietkonstantin/patchmanager and then apply the patch through there.

If you are still having issues removing try the following:
1) open terminal application
2) enter this command in the window
pkcon remove lockscreen-upcoming

ronny_b's picture

Hello,

rpm -q --scripts <Package> shows the Script
rpm -e --noscripts <Package> only remove the package

Ronny

feldbaum's picture

Very nice. Especially the settings are very usefull and functional.

hpehto's picture

Sorry Anig. Your patch works fine. Problem seems to be in Sailfish OS Calendar patch. Didnt check carefully enough.

hpehto's picture

Very useful patch thanks. But I cannot create a event that lasts more than one day.

Schturman's picture

Cool and useful patch. Thanks

Pages