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)

Markkyboy 2020-04-24 13:20

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

Originally Posted by coderus (Post 1567089)
okay, it seems to be my stupid mistake. try this build: http://repo.merproject.org/obs/home:...la.armv7hl.rpm

Will do, I'll try again later, thank you.

Gotta go shopping, always fun with Guardia Civil (Spanish police) at every junction.....gloves [check!], alcohol hand rub[check!], mask[check!].

Thanks,

Markkyboy 2020-04-24 16:11

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

Originally Posted by coderus (Post 1567092)
check https://coderus.openrepos.net/pm2/usage/ and put icon for light ambience

Sorry, I'm not getting this at all and I am struggling to explain what the problems are.

How many icons do we need?, one or two?, meaning a white icon for dark ambience and a black icon for light ambience?, or just one white icon named 'main-light.png' which will do the job for both light and dark ambience?, as usual, I am confused with your directions, sorry, not meaning to be awkward.

Also, where is main.qml? and what do I need to change in main.qml when I find it?, again, I cannot follow your directions, seems like you are talking about patches for WebCatalog and not the usual Patchmanager...?

atlochowski 2020-04-24 17:05

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

you need 2 files, main.png and main-light.png

as i wrote before it's working now

Markkyboy 2020-04-28 06:26

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

Originally Posted by atlochowski (Post 1567099)
/usr/share/patchmanager/

you need 2 files, main.png and main-light.png

as i wrote before it's working now

This still is not clear, sorry, not meaning to be off-hand or difficult, but just quoting '/usr/share/patchmanager' is not clear, as does stating; "as I wrote before it's working now", you may as well have told me that "my jeans fit nice around my butt" (meant with humour, not anger!)

Anyway, for those following this thread who perhaps didn't follow the given instructions, this is what you need to do;
  1. Use the latest version of Patchmanager so "main.png" & "main-light.png" files can be recognised by patchmanager, download it from here; http://repo.merproject.org/obs/home:...la.armv7hl.rpm
  2. The two image files required are "main.png" (a white image) and "main-light.png" (a black image) ~ (a black image named "main-light.png" - not to confusing, eh?) :D
  3. Place the two image files (main.png & main-light.png) into the folder of your patch; example: '/usr/share/patchmanager/patches/sailfishos-patch-my-dumb-patch')

Now when viewing your patch list in patchmanager and changing ambience, you should see either a light icon or a dark one.

The confusion for me is being told to place the two images in 'usr/share/patchmanager' and not being told they need to be inserted into your actual patch folder (obvious really, but I'm a dummy!)

I can now remove my BIG POINTY DUNCE HAT, move out of 'dumb boy' corner and discontinue sucking my thumb.

Hope this helps those who couldn't follow the original instructions! :D

coderus 2020-04-28 09:23

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
instructions are for patch developers... and *-light stands for light ambience, check default icons in os.

Kabouik 2020-05-24 16:28

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
I'd like to work on a patch to prevent Android apps from pausing when minimized. Coderus suggested it might be possible by patching Lipstick to avoid sending "background status" to Android apps, but nothing certain.

I'm not a coder and I'm new to QML, Lipstick and patching, so I'm not sure how are the "background status" and the "Android apps" referenced in QML, if they are at all. Does anyone have any idea what variables I should be looking at to kickstart this idea a bit? I'm starting with compositor.qml, to see if I can understand how all this works.

Markkyboy 2020-05-31 09:49

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Hi coderus, a user has tried to install one of my patches on a Sony Xperia Compact, but the patch has failed to apply, giving the following output;

Code:

checking file usr/share/maliit/plugins/com/jolla/Xt9InputHandler.qml

Hunk #1 FAILED at 86.

Hunk #2 FAILED at 121.

2 out 2 hunks FAILED

checking file usr/share/maliit/plugins/com/jolla/TopItem.qml

Unreserved patch detected! Ignore -R? [n] Apply anyway? [n]

Skipping patch

1 out of 1 hunk ignored

What can I learn from this output, what is it telling me exactly?, why has it failed?, any ideas?, thanks . . .

peterleinchen 2020-05-31 12:27

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
For the first file it is obvious, isn't it?
The patch cannot be applied as the two hunks (sections of changes) in the patch file cannot be found in the original (to-be-patched) file.

For the second file I remember that this seems to zhow you that this patch (section) was already applied to the original file (so it contains the changed and not the original part of code).

But this is standard output of diff/patch here.

Markkyboy 2020-06-02 09:52

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
most things are obvious when you know or understand what you are looking at.

Why call it Hunk?, it'd be better to say "code not found" or something similar.

So basically, the output is saying it cannot find either of those pieces of code, okay good, I stated as much in an earlier reply to the user of my patch on my repo. . . thanks @petercoderusleinchen

Ha!, 'hunk'......chunk, lump, piece, bit, dollop! :D

peterleinchen 2020-06-02 12:38

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

Originally Posted by Markkyboy (Post 1567775)
most things are obvious when you know or understand what you are looking at.

:p
Are you used to CVS, Mercurial, Git, YouNameIt? There are so many features the same but just called differently...

Quote:

Why call it Hunk?, it'd be better to say "code not found" or something similar.
Yes, that may be better. But now that you know it is obvious, isn't it?
https://dict.leo.org/spanish-english/hunk
It just means a (huge) piece of code failed to patch. And in a file there can happen quite a few hunks...

But thanks for the dollop
That is definitely a piece of English language that never said Hello to me :D


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

vBulletin® Version 3.8.8