Patch: Event screen date & text (for Meecast-event users)

Rating: 
5
Your rating: None Average: 5 (2 votes)

Enlarge Date and Calendar event size, add custom text or auto-custom text and show uptime on event screen. It also can show emoji from your custom text (at least emoji's from Dolphin keyboard) ;)
Restart lipstick (homescreen) once after applying/removing patch.

Translation you can do here: https://www.transifex.com/patch_localization/date_text_size_translation/...

How to use:
Apply patch->restart lipstick-> Go to Settings -> Time and Date -> Configure it as you want -> See result on Event screen.

NOTES:
The uptimer implemented in a little bit ugly way.
It use systemd timer that every one min start service and service start simple script that read uptime and insert result to qml...
If someone know better way to show uptime in qml and can explain/help me to implement it, will be nice.

v0.3-1
- For v2.1.1.12 and above.

v0.3-0
- Changed icon for .txt files inside FilePicker.

v0.2-9
- Added option to choose from which dir start to search.
- Added option to show hidden files.
- Added files filter to see only *.txt in the FilePicker.
- Removed bottom basel in the FilePicker.

v0.2-8
- Added Portuguese translation.

v0.2-7
- gcc removed from Requires.
- regular build for tablet and phone.

v0.2-6
- Changed Shuffle behavior.
- noarch build.

v0.2-5
- Changed Shuffle behavior.
- noarch build.

v0.2-3
- Added option to change quantity of shown All day and Timed events.
- Added Russian translation.

v0.2-2
- Added Auto Custom text, see how to use in description of patch.

Beware, use it on your own risk !!!

Donation are welcome :)

Screenshots: 
Changelog: 

- For v2.1.1.12 and above.

Comments

Schturman's picture

Added Portuguese(Brazil) language to Transifex. Don't know who requested it, but now you can translate it.

olf's picture

Oh, updating v0.2-3 to v0.2-5 in Warehouse under SailfishOS 2.0.4.14 does not work on both of my Jolla 1 phones:
a. On one Jolla phone, the update tries to pull a version of glibc, which is not available.
b. On the other Jolla phone, it successfully pulls binutils and then Warehouse complains about a not available gmp version.
NB: Pulling compiler stuff as dependencies of a Patchmanager Patch (supposedly all QML) surprised me a bit.
NB2: Versions 0.1-1, 0.2-1, 0.2-2 and 0.2-3 installed flawlessly on both phones.

Schturman's picture

Ok, I found a small typo in one of scripts, v0.2-6 with fix uploaded now.
Now the differences in spec file between 0.2-3 and 0.2-5/6 is:
* gcc package added as requires
* to postinstall script added command for creating binary file from helper.c directly on your phone, instead that I will do it before packaging. It also give me possibility to create "noarch" package instead create 2 different packages for phone and tablet.

Please, try to go back to v0.2-3, run pkcon refresh and install 0.2-6. If you still have problem with installation, please go back again to v0.2-3, download v0.2-6 to your phone, install it from terminal:
pkcon install-local -y /path/to/file
And show me full output (sorry I don't have meecast and can't properly test it).

olf's picture

Well, "going back" to v0.2-3 was not necessary, as Warehouse always stopped while trying to resolve and download the dependencies of v0.2-5, so it never came to installing it.
A <pkcon refresh> at the command line (as user nemo is sufficient for pkcon) was definitely necessary, though.
After checking for updates in Warehouse, I started the installation of v0.2-6, which resulted in downloading a *lot* of compiler related dependencies (gcc, glibc, binutils again, kernel-headers and many more). The subsequent installation of all these RPMs was a torture for Warehouse, taking almost two hours on a Jolla 1!
But then everything works fine. :)

And thank you for your explanations.
Although I can see the technical beauty of noarch RPMs being built this way, the drawbacks are significant: space used on internal eMMC-FLASH for all these rather big dependencies, security (I would prefer not to have gcc, binutils etc. on my mobile phone) and ease of installation (more than a few minutes is too much for installing a Patchmanager Patch in Warehouse, IMO).
I also wonder, why the installation of former noarch builds of this Patch and noarch builds of other RPMs / Patches did not pull in gcc, binutils & co. They were definitely never installed before by any other of the numerous Patches and other software on my phones.
So please reconsider your decision to use these dependencies.

Schturman's picture

Ok, v0.2-7 without gcc requires.

olf's picture

Thank you so much!

Schturman's picture

Hmmm, I didn't know that installing gcc take so much time...

About nourch build of this patch - because it not just patching qml file it also use systemd.services and for changing time inside this services, package should include binary file (script that runs as ROOT), that can change system file (.service). Before this version I created this binary-helper files on my pc, but I can't package it as "noarch". Binary file included in the project not allow me create "noarch" rpm file, and I need create 2 diff versions, for tablet and for phones. Also because the same binary can't be used in both devices, that mean I also need create 2 diff binaries for using on tablet and phone...

Here came decision to use gcc directly on user side instead before packaging. It allow me to create one version for both devices...

But thanks for comment, I will think about continue to use this way or stop to do this...

veikert's picture

Will Russian localization?

Schturman's picture

See description above :)

Schturman's picture

Sorry I don't do translations and don't know how to do this ;)