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)

Ancelad 2018-07-11 17:44

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
2 Attachment(s)
Quote:

Originally Posted by Markkyboy (Post 1546163)
and where might that be?, link please.

check web-catalog and you'll see

Markkyboy 2018-07-11 17:52

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

Originally Posted by Ancelad (Post 1546169)
check web-catalog and you'll see

Thanks, obviously I can see the different categories from your screenshots, but still cannot find the categories by looking in web catalog or the page that coderus mentions. All I see is a list of apps submitted and the category in text on the right hand side of the screen.

Your screenshots look more like something from an Android device.

Anyway, my question is answered, thank you.

Ancelad 2018-07-11 19:08

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Yes, I'm Android-user about a year.

coderus 2018-07-11 19:34

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
https://coderus.openrepos.net/pm2/upload/
But it's always bette to look at sources: https://github.com/sailfishos-patche...anager.cpp#L48

Ancelad 2018-07-11 21:21

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
New Ultimate Statusbar patch is released to openrepos. Warning: it requires Patchmanager3. PLEASE, UNAPPLY PATCH MANUALLY BEFORE UPGRADING PATCH TO 2.0.2.49-3!

cy8aer 2018-07-25 09:51

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@lightX2, patch Show sim on calllog: Great thing. but some cosmetics: If there is a call from/to a person where the phone label is set in address book then this label and the sim card entry overlap (JollaC).

cy8aer 2018-07-25 10:06

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
1 Attachment(s)
Attachment 39980 phone entry looks like this

Markkyboy 2018-07-26 17:56

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
I seem to recall images being used within the description page of a patch, like say the paypal logo, how was that done?, I've added some html into the patch.json file but no matter what I do , it won't display, actually the patch doesn't even show in the patch list. Is this possible, if so, how?, thanks

Ancelad 2018-07-26 18:41

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

Originally Posted by Markkyboy (Post 1546613)
I seem to recall images being used within the description page of a patch, like say the paypal logo, how was that done?, I've added some html into the patch.json file but no matter what I do , it won't display, actually the patch doesn't even show in the patch list. Is this possible, if so, how?, thanks

MouseArea {
id: donate
width: bla-bla
height: width
Image {
anchors.fill: parent
source: bla-bla-bla
}
onClicked {
bla-bla-bla
}
}

Obviosly bla-bla should be defined by yourself.

Markkyboy 2018-07-26 19:09

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

Originally Posted by Ancelad (Post 1546616)
MouseArea {
id: donate
width: bla-bla
height: width
Image {
anchors.fill: parent
source: bla-bla-bla
}
onClicked {
bla-bla-bla
}
}

Obviosly bla-bla should be defined by yourself.

Thanks Ancelad, and this is entered into the patch.json file?

Ancelad 2018-07-26 19:17

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
No, just create main.qml, which will be call by patch name tapping. It is default pm-feature. You can explore some my patches (Remorse timeout controls f.e.) to see.

Markkyboy 2018-07-26 19:28

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

Originally Posted by Ancelad (Post 1546618)
No, just create main.qml, which will be call by patch name tapping. It is default pm-feature. You can explore some my patches (Remorse timeout controls f.e.) to see.

Gotcha, thank you!

coderus 2018-07-26 21:11

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
https://coderus.openrepos.net/pm2/usage/

cy8aer 2018-07-26 21:31

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

Originally Posted by cy8aer (Post 1546558)
@lightX2, patch Show sim on calllog: Great thing. but some cosmetics: If there is a call from/to a person where the phone label is set in address book then this label and the sim card entry overlap (JollaC).

... and now (0.0.2) it is working. Thank you. And it is working for me with voicecall combined!

Ancelad 2018-08-04 20:56

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
voicecall-combined patch now has answer by ear option =)

Markkyboy 2018-08-22 13:43

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

Hi,

I am frequently experiencing 'Resolve failure' with PM3. I can click on 'Resolve failure' and and then 'Load engine' and all is okay for a while, then I notice that randomly the *Sailfish-tutorial icon is back on my launcher - meaning that PM3 has failed somewhere along the line (*Sailfish tutorial is patched to as to not show on launcher).

I have removed all patches, removed PM3, cleaned the system out, reboot and reinstalled PM3 and applied my patches, but still, I randomy get "Resolve failure" appearing in PM3 menu - what to do to fix?

Regards,

coderus 2018-08-23 11:02

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

Originally Posted by Markkyboy (Post 1547435)
@coderus

Hi,

I am frequently experiencing 'Resolve failure' with PM3. I can click on 'Resolve failure' and and then 'Load engine' and all is okay for a while, then I notice that randomly the *Sailfish-tutorial icon is back on my launcher - meaning that PM3 has failed somewhere along the line (*Sailfish tutorial is patched to as to not show on launcher).

I have removed all patches, removed PM3, cleaned the system out, reboot and reinstalled PM3 and applied my patches, but still, I randomy get "Resolve failure" appearing in PM3 menu - what to do to fix?

Regards,

Failure is lipstick crash. If you restart lipstick manually or kill it - this causing failure depection. Another failure detection - QML failures in lipstick causing "Unable to load component" or "XXX is not a Type" errors.

Markkyboy 2018-08-24 12:53

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Okay, thanks for shedding some light on the subject. As you know, when developing or tinkering with apps, sometimes the homescreen has to be restarted. Restarting never used to cause any crashing with patches, so why now?, and will there be a fix to prevent this from happening?, and some patches require preloaded services to be restarted, which I am under the assumption is pretty much the same thing as restarting lipstick...?

coderus 2018-09-04 08:52

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

Originally Posted by Markkyboy (Post 1547532)
Okay, thanks for shedding some light on the subject. As you know, when developing or tinkering with apps, sometimes the homescreen has to be restarted. Restarting never used to cause any crashing with patches, so why now?, and will there be a fix to prevent this from happening?, and some patches require preloaded services to be restarted, which I am under the assumption is pretty much the same thing as restarting lipstick...?

Patchmanager failure caused only when lipstick service goes to "failed" state, and/or have error with string matching "Type XXX unavailable" means QML have errors. If you experiencing different behaviour, you can provide logs for further investigation.

coderus 2018-09-04 13:56

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Uploaded 3.0.55 to openrepos with many cool features and fixes :)

Markkyboy 2018-09-05 12:24

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

On the latest PM3 (3.0.55) I have to install any of my patches twice before they appear in 'Installed patches' list, then I can apply them. I can also unapply but not remove using menu, there is also no notification regarding removal of the patch in this case, I guess the patch did not then get removed..

I have uninstalled PM3 rebooted and reinstalled. I can remove my patches that are installed from Openrepos using Storeman but the patch stays listed in Installed patches, by closing Settings and opening again, and opening Patchmanager again, the patch is gone from the list but not always. I have tried patches from other users and all yielding the same problem, presumably this is a prob with PM3.

What can I do to sort this?, I know a thing or two about QML you know! :P

coderus 2018-09-05 13:39

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

Originally Posted by Markkyboy (Post 1548045)
SFOS 2.2.1.18

On the latest PM3 (3.0.55) I have to install any of my patches twice before they appear in 'Installed patches' list, then I can apply them. I can also unapply but not remove using menu, there is also no notification regarding removal of the patch in this case, I guess the patch did not then get removed..

I have uninstalled PM3 rebooted and reinstalled. I can remove my patches that are installed from Openrepos using Storeman but the patch stays listed in Installed patches, by closing Settings and opening again, and opening Patchmanager again, the patch is gone from the list but not always. I have tried patches from other users and all yielding the same problem, presumably this is a prob with PM3.

What can I do to sort this?, I know a thing or two about QML you know! :P

I can't reproduce your problem. pm3 openrepos page contains information about retreiving logs.

Markkyboy 2018-09-05 15:44

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

Originally Posted by coderus (Post 1548049)
I can't reproduce your problem. pm3 openrepos page contains information about retreiving logs.

Done, emailed log to you.

Markkyboy 2018-09-07 09:58

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

Originally Posted by coderus (Post 1548049)
I can't reproduce your problem. pm3 openrepos page contains information about retrieving logs.

I guess my log does not help you?.

Never mind, I am resetting my device. What a pain in the butt!

coderus 2018-09-07 10:25

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

Originally Posted by Markkyboy (Post 1548129)
I guess my log does not help you?.

Didn't checked it yet, busy at work.

Markkyboy 2018-09-07 11:57

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

Originally Posted by coderus (Post 1548130)
Didn't checked it yet, busy at work.

Fair enough, your living comes first. No worries, as I've said, I'm resetting the device anyway.

Markkyboy 2018-10-02 10:58

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
As a 'wannabe' coder, I often find myself restarting lipstick. As you know, restarting lipstick cause PM3 to log a problem and unapplies all patches. (resolve failure appears in menu options of PM3)

For instance, I am currently playing with lockscreen (clock & date), I also have your orientation patch applied, as I want to achieve certain goals in both portrait and landscape, but after every restart of lipstick, I have to reapply the orientation patch and restart lipstick AGAIN, this is rather tedious......do you intend any fix for this or is not broken/a bug, as far as you are concerned?

Regards,

coderus 2018-10-02 15:38

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
How do you restart lipstick? It should not happen if you do it in a correct way without killing processes, etc.

Markkyboy 2018-10-02 17:54

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

Originally Posted by coderus (Post 1549083)
How do you restart lipstick? It should not happen if you do it in a correct way without killing processes, etc.

That's a good question, I made a launcher icon and filled the desktop entry with same details used in sailfish utilities for restarting lipstick.

Code:

[Desktop Entry]
    Type=Application
    Name=Refresh
    Icon=refresh
    Exec=nohup sh -c "pkill jolla-settings;systemctl --user --no-block restart lipstick.service" 1>/dev/null 2>/dev/null &
    X-Desktop-File-Install-Version=0.20

or when I'm using SSH, I tend to use ` systemctl --user restart lipstick.service`

coderus 2018-10-02 18:29

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

Originally Posted by Markkyboy (Post 1549086)
That's a good question, I made a launcher icon and filled the desktop entry with same details used in sailfish utilities for restarting lipstick.

Code:

[Desktop Entry]
    Type=Application
    Name=Refresh
    Icon=refresh
    Exec=nohup sh -c "pkill jolla-settings;systemctl --user --no-block restart lipstick.service" 1>/dev/null 2>/dev/null &
    X-Desktop-File-Install-Version=0.20

or when I'm using SSH, I tend to use ` systemctl --user restart lipstick.service`

This should not cause failsafe mode trigger. I'll check when have time.

mercurio 2018-10-21 12:09

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Goodmorning everyone, I have an Xperia X F5122, and I have problems with Patchmanager, in the sense that it is doing the flash with Nurmjoki both starting from Mouhijoki and then updating it, it does not work. I have always followed this "procedure" and I have never had any problems: - enable untrusted software; - active the developer mode; - install the "Sailfish Utilities" app from the official store; - I install Storeman; - install the "Patchmanager for Jolla Settings" app I go to "Settings", I click on Patchmanager and I enter the patch management screen. While in fact, with Nurmjoki, this last step does not do it, I can install the patches but without checking them. For example: the patch to have multiple folders, from Storeman install correctly, but I can not view it nor can I enable / disable it from Patchmanager. Where am I wrong?

RafaelVlmendes 2018-10-22 05:32

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

Originally Posted by mercurio (Post 1549545)
Goodmorning everyone, I have an Xperia X F5122, and I have problems with Patchmanager, in the sense that it is doing the flash with Nurmjoki both starting from Mouhijoki and then updating it, it does not work. I have always followed this "procedure" and I have never had any problems: - enable untrusted software; - active the developer mode; - install the "Sailfish Utilities" app from the official store; - I install Storeman; - install the "Patchmanager for Jolla Settings" app I go to "Settings", I click on Patchmanager and I enter the patch management screen. While in fact, with Nurmjoki, this last step does not do it, I can install the patches but without checking them. For example: the patch to have multiple folders, from Storeman install correctly, but I can not view it nor can I enable / disable it from Patchmanager. Where am I wrong?

Hi.
Did you install which version of Patchmanager? Because this error was in version 2 and version 3 is all with it. First of all update your repsitorios:
Open the terminal and type:
devel-su
rootme
pkcon refresh
pkcon update


Doing this install Patchmanager 3 and install its patches as you wish.

mercurio 2018-10-28 14:45

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

Originally Posted by RafaelVlmendes (Post 1549560)
Hi.
Did you install which version of Patchmanager? Because this error was in version 2 and version 3 is all with it. First of all update your repsitorios:
Open the terminal and type:
devel-su
rootme
pkcon refresh
pkcon update


Doing this install Patchmanager 3 and install its patches as you wish.

Hello,
and I'm sorry if I answer you only today: I've only just seen your answer, which I thank you for! :)
So I have to install Patchmanager 3 Beta by patchmanager3_beta? Because on Storeman I can not find other Patchmanager 3 ...

pichlo 2018-11-01 22:20

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
1 Attachment(s)
What is going on here? Patchmanager has been playing up all day, getting progressively more and more messed up. At some point it listed as a patch a similarly named stand-alone application. Unti, in the end, it all toppled over like this:

Attachment 40170

(Been spinning like that for the past 10 minutes.)

EDIT: a reboot seems to have sorted it out, at least temporarily. I had a brief issue with a patch in the web catalogue appearing with an empty description but a Silica restart from Utilities has fixed that.

coderus 2018-11-02 05:30

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

Originally Posted by pichlo (Post 1549949)
What is going on here? Patchmanager has been playing up all day, getting progressively more and more messed up. At some point it listed as a patch a similarly named stand-alone application. Unti, in the end, it all toppled over like this:

Attachment 40170

(Been spinning like that for the past 10 minutes.)

EDIT: a reboot seems to have sorted it out, at least temporarily. I had a brief issue with a patch in the web catalogue appearing with an empty description but a Silica restart from Utilities has fixed that.

Who knows, i'd like to see logs.

pichlo 2018-11-02 06:41

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

Originally Posted by coderus (Post 1549953)
Who knows, i'd like to see logs.

Where would they be?

cy8aer 2018-11-02 07:31

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

Originally Posted by pichlo (Post 1549955)
Where would they be?

Hm, I had a problem some time ago - coderus mentioned how somewhere in the thread. Yes I know this is not the best help...

@coderus: would it be possible to explain the logging stuff in the first post near the troubleshooting section, please?

Ancelad 2018-11-02 08:19

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Probably this is my fault - I've uploaded updates with json-files. I will re-upload them soon.

EDIT:
done, now they're correct

peterleinchen 2018-11-02 09:42

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

Originally Posted by cy8aer (Post 1549957)
Hm, I had a problem some time ago - coderus mentioned how somewhere in the thread. Yes I know this is not the best help...

Probably this one?
https://talk.maemo.org/showpost.php?...postcount=2479

Quote:

@coderus: would it be possible to explain the logging stuff in the first post near the troubleshooting section, please?
Second that.

olf 2018-11-02 14:26

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
"Patchmanager logging" means just filtering the systemd journal for relevant entries, as Patchmanager does not have any own logging facility, but writes lots of information to the systemd journal.

Quote:

Originally Posted by peterleinchen (Post 1549961)

... which is:
devel-su journalctl -al _COMM=patchmanager _COMM=jolla-settings > patchmanager.log

Yes, that is what @coderus usually suggests, extracting all output of the components Patchmanager and Jolla Settings, but filtering may be adapted for specific debugging use-cases (and IIRC @coderus also has suggested amended variants).

If one is able to basically understand entries the systemd journal, I also suggest to issue a simple journalctl -r while having less installed, and search with "/" (for whatever you deem as suspicious) while using the keys Up / Down and PgUp / PgDwn for looking at the context of a search hit.
This way you may detect an offending Patch or setting on your own.


All times are GMT. The time now is 18:05.

vBulletin® Version 3.8.8