Reply
Thread Tools
Markkyboy's Avatar
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, Espaņa
#2871
Originally Posted by coderus View Post
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,
__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..
 

The Following 2 Users Say Thank You to Markkyboy For This Useful Post:
Markkyboy's Avatar
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, Espaņa
#2872
Originally Posted by coderus View Post
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...?
__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..
 

The Following 2 Users Say Thank You to Markkyboy For This Useful Post:
Posts: 207 | Thanked: 759 times | Joined on Dec 2014 @ Poland
#2873
/usr/share/patchmanager/

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

as i wrote before it's working now
 

The Following 2 Users Say Thank You to atlochowski For This Useful Post:
Markkyboy's Avatar
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, Espaņa
#2874
Originally Posted by atlochowski View Post
/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?)
  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!
__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..

Last edited by Markkyboy; 2020-04-28 at 06:59.
 

The Following 4 Users Say Thank You to Markkyboy For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#2875
instructions are for patch developers... and *-light stands for light ambience, check default icons in os.
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 4 Users Say Thank You to coderus For This Useful Post:
Posts: 1,335 | Thanked: 3,931 times | Joined on Jul 2010 @ Brittany, France
#2876
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.
 

The Following 2 Users Say Thank You to Kabouik For This Useful Post:
Markkyboy's Avatar
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, Espaņa
#2877
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 . . .
__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..
 
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#2878
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.
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 2 Users Say Thank You to peterleinchen For This Useful Post:
Markkyboy's Avatar
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, Espaņa
#2879
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!
__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..
 

The Following User Says Thank You to Markkyboy For This Useful Post:
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#2880
Originally Posted by Markkyboy View Post
most things are obvious when you know or understand what you are looking at.

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

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
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature

Last edited by peterleinchen; 2020-06-02 at 12:52.
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Reply

Tags
patchmanager, sailfish os


 
Forum Jump


All times are GMT. The time now is 10:54.