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)

pichlo 2017-03-24 18:10

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

Originally Posted by coderus (Post 1525942)
just go to hell and burn brighter than ever please

As you wish but may I ask why such an animosity? If I have ever offended you in any way, could you please let me know? I swear it was not on purpose...

coderus 2017-03-24 19:25

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

Originally Posted by pichlo (Post 1525952)
As you wish but may I ask why such an animosity? If I have ever offended you in any way, could you please let me know? I swear it was not on purpose...

I didn't wanted to insult you. I'm trying to control my anger more :)

itdoesntmatt 2017-03-24 22:36

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
coderus sorry i can't remove the app locker patch (marked in red) and the volume control setting patch.. how can i do? thanks

edit: solved with rm -r /var/lib/patchmanager

pichlo 2017-03-24 22:36

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

Originally Posted by coderus (Post 1525954)
I didn't wanted to insult you. I'm trying to control my anger more :)

I did not feel insulted. Only surprised.

Seriously, if I offend you (or anyone else), please let me know right away. Language, cultural and other differences could lead to unwittingly offending without meaning to.

coderus 2017-03-25 09:37

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Okay, then please explain, why you "have never used PM 2.0 and hoped to never have to"

pichlo 2017-03-25 12:49

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

Originally Posted by coderus (Post 1525971)
Okay, then please explain, why you "have never used PM 2.0 and hoped to never have to"

As I explained before, it is Yet Another Source™ for installing things from. Creates an additional headache: "Where does developer X put updates to patches Y and Z?" Instead of a single source, I now need a matrix. I am a simple man, I like keeping things simple.

It is the same reason I still use Skype, for example. It was the first IM system I started using 15 years ago and never has the need to switch to anything else. It still performs the same functionality it did then, so where is any compelling need to switch?

To each his own. Some people change communication tools, clothes, cars, gadgets etc with fashion. I change them when I absolutely have to.

EDIT
To cut it short, I do not have anything against PM2. It's just that I never saw a reason for using it.

coderus 2017-03-25 13:50

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
PM2 came when some RPM patches caused phone to break on upgrade, because authors did some mistakes

olf 2017-04-22 18:44

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Kudos for "Patchmanager 2 for SailfishOS", which is a vast improvement over "Patchmanager for Jolla settings (Patchmanager 1)", both for developers (i.e. technically) and for users (i.e. in terms of usability). Still (in order to make it even better), here a description of a bug and a few usability flaws, I experienced with Patchmanager 2.3.1-10.39.1.jolla on a Jolla 1 phone under SFOS 2.1.0.11:

1. Bug in handling updated compatibility information of Patches:
Prelude:
When SFOS 2.1.0.11 was released, most Patches in Patchmanager's Web catalog were still marked as for "... 2.1.0.10 EA" at most, so I had to toggle "Enable developer mode" in order to install them. This worked nicely and these Patches are displayed in red in Patchmanager's installed Patches list (which is good).
Meanwhile all these Patches were refreshed and are now marked as compatible to 2.1.0.11 in the Web catalog, but their version numbers were not increased (most of them are at 0.0.2).
Bug description:
Consequently Patchmanager 2 obviously does not handle them as updated, hence still displayes them in red in Patchmanager's installed Patches list and still shows "Compatible: 2.0.1.10" in the detailed Patch information (by a tap on a Patch name) there.
Expected behaviour:
Updates of the "Compatible with" information in the Web catalog should trigger an update of this information for already installed Patches from the Web catalog, thus eventually not displaying them in red anymore.

2. As a Patch can be installed in a Patch details page within the Web catalog, I expected a possibility to uninstall them there as well. It took me quite a while to understand that both, Patches installed from Warehouse and Patches installed from the Web catalog, can be uninstalled by a long press on a installed Patch name in Patchmanager's installed Patches list.
Please provide a possibility to uninstall Patches in their Patch details page within the Web catalog as well (e.g. by a top pulley entry or by also a long press on an installed Patch version), as one expects an ability to uninstall, where one installs (this is already valid for RPM-Patches).
Still, I believe uninstalling by a long press on a installed Patch name in Patchmanager's installed Patches list should stay as well; once found, it is quite useful there and works for *all* Patches (regardless, if from Warehouse or the Web catalog).

3. Minor usability flaws in Patchmanager's "About" dialogue:
3a. Patchmanager's "About" dialogue does not reveal the version number of the installed Patchmanager.
3b. One cannot scroll in Patchmanager's "About" dialogue to its bottom in landscape orientation.

4. The detailed Patch information page (reachable by a tap on a Patch name in the top level list of installed Patches) does not display the version and source (from Patchmanager's web catalog or from a RPM) of an installed Patch.

*Edit:* Continued in ...
Quote:

Originally Posted by olf (Post 1527989)
# 2224


n900user259 2017-04-22 21:12

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

Can someone tell me how to uninstall a patch that for some reason has been removed from Openrepos?
I'm talking about the patchmanager-name-fix patch.
I've already unapplied it. Now how to uninstall it?

n900user259

coderus 2017-04-22 23:27

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
use terminal. devel-su then pkcon remove packagename-goes-here.

pichlo 2017-04-23 11:15

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

Originally Posted by coderus (Post 1527195)
use terminal. devel-su then pkcon remove packagename-goes-here.

You don't even need devel-su. Weird but true. So much for Sailfish security.

coderus 2017-04-23 15:50

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

Originally Posted by pichlo (Post 1527208)
You don't even need devel-su. Weird but true. So much for Sailfish security.

wrong. you need devel-su (devel-su -p would be enough, root is not required) on a normal scenario. But if you installed Warehouse it enables packagekit for everyone: https://github.com/custodian/orn-war...ackagekit.pkla

pichlo 2017-04-23 18:45

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
I stand corrected. Pkcon always worked for me without devel-su but I have now tried it on my wife's Jolla without Warehouse installed and indeed, it said "failed to obtain authentication". I correct my statement: so much for Warehouse security ;)

Still, n900user259 wanted to remove a patch which is something you cannot install without Warehouse so chances are pkcon would work for him without devel-su.

coderus 2017-04-23 18:56

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
I am just giving 100% correct instructions.

n900user259 2017-04-24 07:04

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

Originally Posted by coderus (Post 1527233)
I am just giving 100% correct instructions.

In my opinion the only instructions worth giving.
And it worked like a charm. :)

This is a non-discussion anyway.
The question/discussion should be about why the patch was removed from Openrepos.net in the first place.

olf 2017-04-24 18:50

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@n900user259: The Patch was most likely removed from your device, because its RPM noted being not compatible with a SailfishOS version you choose to update to. BTW, "no", there cannot be any notification about such situations (RPM spec file conflicts during SailfishOS updates in general) without making SailfishOS updates interactive (which is definitely not desirable).

@pichlo: RPMs (no matter, if from openrepos.net or any other source) can be easily installed without Warehouse, e.g. in a file manager, by pkcon install / install-local, the rpm command etc. Hence devel-su, then pkcon remove is a generic way, which works in any situation.

n900user259 2017-04-24 20:46

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

Originally Posted by olf (Post 1527291)
@n900user259: The Patch was most likely removed from your device, because its RPM noted being not compatible with a SailfishOS version you choose to update to.

I don't know why you're explaining all of this. You clearly misunderstood my problem.
The patch was on my phone and working perfectly. I was able to unapply it and reapply without problems.
What I couldn't do however was uninstall it using Warehouse as the patch has been removed from Openrepos.net some time ago.
The only option left was the terminal for which coderus was so kind to give me the proper instructions (Thanks again Coderus).


What this shows is that the system has a flaw. If a developer removes software from Openrepos.net, people who have this software installed on their phone can't uninstall it using Warehouse. They will have to resort to the command line.

Not a problem for me but there are enough people who don't know what a cli is.

olf 2017-04-24 21:21

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@n900user259: Sorry, yes I completely mixed up that first point (and described the scenario of a SailfishOS update silently uninstalling RPMs).
And technically your assessment is absolutely correct.
But as Warehouse is third party software, one cannot blame the Jolla company for that (and I do not dare to blame the spare time developers on Openrepos.net, as I am very thankful for all the useful software they create).

eson 2017-04-25 06:48

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
I just did a factory reset and now I don't remember the name of the patch that made phone app always start with visible num pad. :confused:
Please, help!

pichlo 2017-04-25 07:30

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

Originally Posted by eson (Post 1527304)
I just did a factory reset and now I don't remember the name of the patch that made phone app always start with visible num pad. :confused:
Please, help!

Patch: Dialer Keypad on by default, perchance?

eson 2017-04-25 09:12

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

Originally Posted by pichlo (Post 1527306)

Exactly what I was looking for! :)
Thanks a lot!

Ancelad 2017-05-12 19:01

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
By the way this patch now is much-much better https://openrepos.net/content/ancela...ock-faith-text

See screenshots :)

hardy_magnus 2017-05-13 13:51

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
missing two patches quick setting on power menu and volume control setting by alina , they are not Iijoki ready i think, these patches work but once installed these two cannot be unapplied. installed volume control patch last week but couldn't unapply it , are there other alternate patches to these?

olf 2017-05-14 00:25

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

Originally Posted by olf (Post 1527185)
# 2208

(i.e. still the same setup):

5. Bug when applying multiple Patches in a row
Short description:
When applying multiple Patches one after the other, freshly enabled Patches are displayed as unapplied after a little while.
Steps to reproduce:
a. Install multiple new Patches (tested with 3 to 6). It does not matter, if from the Web catalog or via RPM (e.g. Warehouse).
b. Enable them one right after the other. Timing does not matter.
c. For each Patch, the cycle is:
- When hitting the button, it lights up (O.K.)
- A notification about installing this Patch is displayed (O.K.).
- After applying the next Patch and waiting for a little while, the button is unlit, again (not O.K.).
So finally it looks like only the last one of the freshly installed Patches is actually applied.
d. Exiting Patchmanager 2.0 and entering it again then correctly shows, which Patches are applied (and which are not).
Expected behaviour:
Buttons indicating an applied Patch stay lit, after applying multiple Patches in a row.

*Edit:* This seems the happen on every multiple "apply" / "unapply" actions in a row: After a while all toggled Patches are displayed as unapplied. Two toggle operations seem to be sufficient to trigger this bug (one of them an "apply" action), and when waiting long enough (not very long), it seems that even the last applied Patch becomes unlit.
This behaviour of Patchmanager 2 made me accidentally reappling an already applied Patch at least twice, but doing so does not seem to cause any harm.

*Edit 2:* Now I observed this happening even after applying just a *single* Patch: Waiting a few seconds, the freshly lit button becomes unlit again.

6. Minor usability bug, when returning from detailed Patch information page to list view of installed Patches
Observation:
The specific position of the list view of installed Patches (when returning from a detailed Patch information page) depends on the position of the patch within the list:
a. A position above the word "Homescreen" (indicating the start of this section) or one below it with the word "Homescreen" still visible on the device screen / above the eighth Patch or one with the eighth Patch visible:
The list position is the same as before entering the detailed Patch information page (O.K.).
b. A position so far below the word "Homescreen", that the word "Homescreen" is not visible on the device screen / below the eighth Patch without it being visible:
The list position jumps, so that the first Patch in the section "Homescreen" / the eighth Patch is the topmost displayed one (not O.K.).
(Note that this bug occurs regardless of the device orientation {portrait, landscape}.)
Expected behaviour:
The list position is always the same as before entering a Patch's detailed info page.

7. [Feature suggestion] Display conflicting Patches, when a Patch fails to apply
Background:
Patches conflicting with each other are creating a "conflict hell", which is really hard to resolve manually. E.g. I am currently unable to identify *all* the Patches (out of about 35 installed ones), which conflict with "Ultimate statusbar patch" or "Devicelock faith text". *Edit:* "Force cover size" and "No notification preview" are conflicting with those two Patches!?!
Idea:
It would be extremely helpful for users of Patchmanager2 to be notified specifically, which other Patches (and / or which original file) a Patch conflicts with, when applying it fails.
Thoughts:
Basically all information needed is already there: Which lines in which files each Patch patches (and which original lines a Patch expects). So if Patches intend to patch the same lines, they conflict. If there is no conflict between Patches, but the expected original lines are not present, something else is wrong (most likely the Patch is not compatible with the installed SailfishOS version).

8. [Minor usability bug: Inconsistent wording] "install*" instead of "apply*" and "remove" instead of "unapply" used in notifications
Description:
The wording in Patchmanager2 consistently keeps "installing / uninstalling" and "applying / unapplying" a Patch clearly separate, which is excellent. But in the notifications "install*" instead of "apply*" and "remove" instead of "unapply" is used, which is confusing.
Possible solution:
Please alter the three notifications messages, e.g. as follows.
Note, I also removed the word "Patch" and the action taken repeated in each second line, because the second line is usually way too long for fitting into the transient notification pop-up in the upper left corner of the screen, and the duration the transient notification is displayed is too short for the second line to automatically scroll horizontally (it usually just starts scrolling shortly before the transient notification vanishes).
a. Patch installed : Patch XXX installed
--> Patch applied : "XXX"
b. Failed to install patch : Patch XXX installation failed
--> Failed to apply Patch : "XXX" conflicts with ["YYY" | and "ZZZ" | original file <filename>]
c. When unapplying a Patch:
Patch removed : Patch XXX removed
--> Patch unapplied : "XXX"
d. But when uninstalling a Patch:
Patch removed : Removed patch XXX
--> Patch uninstalled : "XXX"
e. And it seems that:
Failed to remove patch : Patch removal failed
--> Failed to uninstall Patch : "XXX"
Or can Patches also fail to be unapplied (then one has to differentiate, as in c. & d.)?
f. Finally, the remorse timer label currently states
Uninstalling patch XXX in N seconds
which then ought be (just for consistency)
Uninstalling Patch "XXX" in N seconds

HTH & Cheers

P.S.: Continued in ...
Quote:

Originally Posted by olf (Post 1529052)
# 2243


pichlo 2017-05-16 18:28

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
I took my Jolla out of the drawer after a long time and found 8 updates pending, including Patchmanager. So I accepted the updates. BIG mistake. The Patchmanager icon disappeared from my launcher and appears to have been uninstalled. When I try to install it again, I get error, "patchmanager-2.3.1-10.39.1.jolla.armv7hl conflicts with patchmanager-ui provided by patchmanager-ui-0.5.1-10.22.1.jolla.armv7hl".

Very reluctantly, I tried removing patchmanager-ui but it does not appear to be listed in Warehouse and pkcon says, "Command failed: This tool could not find the installed package: could not find patchmanager-ui".

What is going on?

nthn 2017-05-16 18:46

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
I don't know the names of the packages, but did it maybe just install patchmanager inside Settings, instead of as a separate application? I think the separate application hasn't received updates for a very long time.

pichlo 2017-05-16 18:46

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Oh, I see. It appears that Patchmanager 2.0 was installed without my consent or even knowledge. Sneaky.

But now I have another problem. I uninstalled PM2.0 (which also removed all my patches, bummer) and installed normal Patchmanager. But now I get an update and PM2.0 wants to install itself again. How do I stop it?

coderus 2017-05-16 18:58

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

Originally Posted by pichlo (Post 1528063)
Oh, I see. It appears that Patchmanager 2.0 was installed without my consent or even knowledge. Sneaky.

But now I have another problem. I uninstalled PM2.0 (which also removed all my patches, bummer) and installed normal Patchmanager. But now I get an update and PM2.0 wants to install itself again. How do I stop it?

Code:

devel-su rm -rf /

pichlo 2017-05-16 19:26

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

Originally Posted by coderus (Post 1528064)
Code:

devel-su rm -rf /

You are a genius! Thanks, that worked wonderfully.

malkavian 2017-05-16 19:34

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

Originally Posted by coderus (Post 1528064)
Code:

devel-su rm -rf /

Whaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaat?

clovis86 2017-05-16 19:49

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

Originally Posted by coderus (Post 1528064)
Code:

devel-su rm -rf /

bad mood today Coderus ? :D

coderus 2017-05-16 20:20

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
http://s2.quickmeme.com/img/f5/f5539...960db93bb5.jpg

nthn 2017-05-16 22:09

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

Originally Posted by coderus (Post 1528064)
Code:

devel-su rm -rf /

Eventually someone is going to come across this post and actually do it.

"Have you tried turning it off and on again?"

mosen 2017-05-16 22:12

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

Originally Posted by nthn (Post 1528074)
Eventually someone is going to come across this post and actually do it.

Natural Selection :D

juiceme 2017-05-17 04:29

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

Originally Posted by nthn (Post 1528074)
Eventually someone is going to come across this post and actually do it.

"Have you tried turning it off and on again?"

Well what can you do? With great power comes great responsibility and so on.

Ancelad 2017-06-01 19:00

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Some new stupid stuff by the way https://coderus.openrepos.net/pm2/pr...alarm-flipover

nthn 2017-06-01 19:58

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

Originally Posted by Ancelad (Post 1528681)

Great, this both works around and solves the issue of alarms not dismissing since the latest Sailfish update! Now Jolla just needs to put your patch in there by default...

olf 2017-06-01 23:56

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

Originally Posted by Ancelad (Post 1528681)

Does anybody know how to obtain (i.e. which Patch to install) that 'Settings --> Gestures --> Quick access to Camera ' in this Patch's screenshot in Patchmanager2's web catalog?

R1v3r 2017-06-02 04:17

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

I think that I have seen this patch in somepoint where you can add one phone number on lockscreen that says "call this number" (just to be used as In case of emergency)

But no when I would like to install it, i canīt find it anywhere.

Does anyone here know the name of the patch?

Ancelad 2017-06-02 05:28

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

Originally Posted by olf (Post 1528691)
Does anybody know how to obtain (i.e. which Patch to install) that 'Settings --> Gestures --> Quick access to Camera ' in this Patch's screenshot in Patchmanager2's web catalog?

This feature is available only since 2.1.1.12

@R1v3r, I think you mean devicelock faith text patch


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

vBulletin® Version 3.8.8