maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak (https://talk.maemo.org/showthread.php?t=92935)

coderus 2016-05-09 17:55

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
ls /var/lib/patchmanager/ausmt/patches
for each patch file check files it's patching
then search for packages using rpm -qf filename
and reinstall each found package by using pkcon install package

ajalkane 2016-05-09 20:06

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
One more problem... Other patches I had no trouble with doing it like this:

With coderus' method reinstalled each package, then unapplied them from PatchManager and reapplied them.

But the "Upcoming events on lockscreen" patch was a trickier one. I tried unapplying it and PatchManager said "Failed to remove patch" and it stayed activated.

I then decided to remove it with "pkcon remove lockscreen-upcoming". Now PatchManager told me the patch is no longer available and removed it from its list. I then reinstalled it from warehouse. Now when I started PatchManager it showed this patch already applied, and I'm in the same sorry state that I can't unapply it so that I could reapply it.

coderus 2016-05-09 20:09

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
remove folders from /var/lib/patchmanager/ausmt/patches

ajalkane 2016-05-10 20:22

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by coderus (Post 1505277)
remove folders from /var/lib/patchmanager/ausmt/patches

This was not enough for Upcoming Events on lockscreen patch, so to save time for others potentially battling with this (and for me to remember for next update) here's how I got it working:

First uninstall:

Code:

pkcon remove lockscreen-upcoming
Edit file /var/lib/patchmanager/ausmt/packages and remove the line which references lockscreen-upcoming.

Remove all added QML files that have been installed when lockscreen-upcoming was applied:

Code:

rm -f /usr/share/lipstick-jolla-home-qt5/lockscreen/BorderRectangle.qml
rm /usr/share/lipstick-jolla-home-qt5/lockscreen/LockEventItem.qml
rm -f /usr/share/lipstick-jolla-home-qt5/lockscreen/LockTimeLabel.qml
rm -f /usr/share/lipstick-jolla-home-qt5/lockscreen/ShowCalEvents.qml

Then you can install it again from Warehouse and activate successfully from PatchManager.

coderus 2016-05-10 20:37

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
It's so bad when patches creating new files. this is not the thing patches should really do.

Ancelad 2016-05-10 20:46

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@coderus
but what about diff between file and /dev/null? Is it bad or not? :)

coderus 2016-05-11 13:29

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
bad. you should package new files, not apply with patch.

Ancelad 2016-05-11 13:46

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Even if post/pre contains file-check and rm-command for this file?

coderus 2016-05-11 16:04

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
yes. everything new should be packaged.

pichlo 2016-05-11 17:52

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
coderus is right, a patch creating a file is BAD.
I like the idea of diff with /dev/null though. Maybe even /dev/random ;)

LouisDK 2016-05-14 17:38

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by coderus (Post 1500219)

But it's not up on openrepos yet :)

lawkaita 2016-06-02 09:10

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
I ran into a problem with patchmanager toady. I posted this on the open repos site for the app but the comments section looked like no-one ever reads it, so I figured I should post it here:

I tried to install patchmanager today but during the install warehouse crashed. Patchmanager did not work after that so i uninstalled it through warehouse. Now if i try to install patchmanager again i get the following error:

Code:

Error occured

Transaction /6801_ccadbbdc
Status: dep—resolution—failed
Extra details:

patchmanager-ui-O.4.5—i0.20.1.jolla.armv7hl
conflicts with jolla-settings-patchmanager
provided byjolla-settings-
patchmanager—O.4.5-i0.20.1.jolla.armv7hl

I dont know what warehouse was installing when it crashed since the installation was taking so long I left it to do it by itself. Should i manually remove something before i can install patchmanager again?

coderus 2016-06-02 09:21

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
uninstall patchmanager-ui and use jolla-settings-patchmanager :)
one have icon in launcher, second is integrated to settings applets

pichlo 2016-07-05 06:44

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Ancelad,
Any chance of an update for this patch? ;)

Ancelad 2016-07-05 06:49

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@pichlo
https://openrepos.net/comment/14425#comment-14425 =)

Ancelad 2016-07-05 22:29

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@pichlo
finally it works as it should work, but I'm too tired after patch-code refactoring, so I'm gonna to sleep without "instant" release :)

Ancelad 2016-07-06 05:32

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Both pulley patches available for 2.0.2.45 =)

pichlo 2016-07-06 11:32

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
2 Attachment(s)
Thanks, Ancelad, much appreciated!

Please don't take this as a criticism, far from it! I am grateful for your patch, it looks much better than Jolla's version. I am merely curious.

Where does this colour difference come from? NB it is more noticeable on the phone's screen than here for some reason (at least on my PC):

Attachment 38459Attachment 38460

The second colour scheme is what I would expect. The two were identical in Taalojärvi.

Ancelad 2016-07-06 12:04

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Both (pulley and context-menu) use one highlight-component, I don't know a difference-reason, but I will see :D

EDIT:
ah, I see defined color-property for pulley-menu, please, check new version.

cy8aer 2016-07-21 19:37

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
hm, seems not to work with the JollaC/2.0.2.43... Patchmanager refuses it.

R1v3r 2016-07-29 07:42

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Just got updated to 2.0.2.48 and it seems that all the patch managers patches are not working. Am I the only one?

Or am I just too hasty?

Edit: And using jolla phone.

okourkoulos 2016-07-29 07:51

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
If you updated without unapplying all patches, this happens.
Try to unapply now and if some aren't able to do so, then uninstall patch, reboot and apply and refresh home. Maybe, it will work.
Once it worked for me, second time, it didn't!
Or just wait for the really wise to answer more to the point.

R1v3r 2016-07-29 08:12

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by okourkoulos (Post 1511148)
If you updated without unapplying all patches, this happens.
Try to unapply now and if some aren't able to do so, then uninstall patch, reboot and apply and refresh home. Maybe, it will work.
Once it worked for me, second time, it didn't!
Or just wait for the really wise to answer more to the point.

Yup. Ofcource forget to unapply patches. Too long time from the last update so I forgot... (Suprise!)

Yay! Got some of these working after unapplying and applying.

One did not unapplied. -> Show ringtone colume in status bar.

Following patches did not applied after rebooting:

Don´t steal focus
launcher combined patches
less home animations
restore swipe to lock
switcher click hints launher
unlock to last app

@Ancelad, is this normal on Launcer combined patches?

Ancelad 2016-07-29 08:17

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@R1v3r
IDK, I'm on 2.0.3.14 :) I think these patches need some adaptation for current OS

R1v3r 2016-07-29 08:23

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by Ancelad (Post 1511151)
@R1v3r
IDK, I'm on 2.0.3.14 :) I think these patches need some adaptation for current OS

Ok. Btw I just checked, it was coderus patch. I can't remembef which ones are created by you :)

Thanks anyway! I'll wait, if coderus knows solution. :)

okourkoulos 2016-07-29 08:23

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Swipe to lock is the most crucial, I believe.
It's all that SFOS stands for, IMHO.

Ancelad 2016-07-29 08:41

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
I have swipe-to-lock in my new power-menu, but it was for 2.0.2.45, if someone wants to test - let me know

okourkoulos 2016-07-29 08:45

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
I would like very much to test it.
I have 2.0.2.48

Ancelad 2016-07-29 08:50

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by okourkoulos (Post 1511155)
I would like very much to test it.
I have 2.0.2.48

https://www.dropbox.com/s/nib4vp25hq...oarch.rpm?dl=0

okourkoulos 2016-07-29 09:46

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
I just did Reset to factory, I have to go back to 2.0.1.11 to get the backup I have and then come back to 2.0.2.48. Then I will test it.


EDIT: I tried it first, once before downgrading.
Works like a charm!
Thanks a lot!

mautz 2016-07-29 11:23

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by Ancelad (Post 1511156)

Sadly, i get an error while installing your patch...

okourkoulos 2016-07-29 11:51

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Now, media is not working again!!!
I am gettin really annoyed!

mautz 2016-07-29 12:17

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
I had to reindex the media database after the update, now everything is fine.

okourkoulos 2016-07-29 12:31

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
And how did you do that?
Utilities?

mautz 2016-07-29 12:38

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Yes, there is an option in the sailfish utilities.

Ancelad 2016-07-29 12:56

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by mautz (Post 1511168)
Sadly, i get an error while installing your patch...

It is only for 2.0.2.45-48, what is your OS?

okourkoulos 2016-07-29 13:06

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by mautz (Post 1511180)
Yes, there is an option in the sailfish utilities.

Doesn't work, for me at least!

kinggo 2016-07-29 14:53

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Does Launcher Combined works on 2.0.2.48? It install s fine from open repos but when I try to apply then nothing.

Ancelad 2016-07-29 14:56

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by kinggo (Post 1511194)
Does Launcher Combined works on 2.0.2.48? It install s fine from open repos but when I try to apply then nothing.

afaik it doesn't

kinggo 2016-07-29 15:53

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
THX. Then I'll stop trying and wait for update.


All times are GMT. The time now is 03:53.

vBulletin® Version 3.8.8