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)

J4ZZ 2015-01-07 18:27

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

Originally Posted by cizi (Post 1455723)
@coderus - can you please give me a hint.

I tried this:
Code:

[root@Jolla sounds]# patch --dry-run -p 1 -d / -i /usr/share/patchmanager/patches/sailfishos-eventsview-contro                                  ls-remastered-patch/unified_diff.patch
patching file usr/share/lipstick-jolla-home-qt5/eventsview/EventsView.qml
patching file usr/share/lipstick-jolla-home-qt5/eventsview/EventsViewList.qml
patching file usr/share/lipstick-jolla-home-qt5/eventsview/FavoritesZoneControls.qml
patching file usr/share/jolla-settings/pages/sounds/VolumeSlider.qml
Hunk #2 FAILED at 18.
1 out of 2 hunks FAILED -- saving rejects to file usr/share/jolla-settings/pages/sounds/VolumeSlider.qml.rej
patching file usr/share/jolla-settings/pages/mobilenetworking/DataConnection.qml
patching file usr/share/jolla-settings/pages/bluetooth/EnableSwitch.qml
patching file usr/share/jolla-settings/pages/gps_and_location/LocationSwitch.qml
[root@Jolla sounds]#

Then @J4ZZ explained to me that I had an error and I should do this, I did it but no luck, Do you please have any idea? Thanks in advance :-)

I replied to you that I accidently posted an already patched VolumeSlider.qml but corrected my post already. So please recheck my post and edit your VolumeSlider.qml accordingly. :)

cvp 2015-01-07 19:24

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

Originally Posted by J4ZZ (Post 1455459)
Try revisiting pages 55 to 58 and read through it.

Probably your VolumeSlider.qml is also not right...

Try removing, ausmt and all patchmanager related packages, then reinstall lipstick. And try again from scratch. :)


volumeslider is ok... i fix the problem by factory reset :D i dont like play anymore. now it works :P

cizi 2015-01-08 08:22

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

Originally Posted by J4ZZ (Post 1455802)
I replied to you that I accidently posted an already patched VolumeSlider.qml but corrected my post already. So please recheck my post and edit your VolumeSlider.qml accordingly. :)

@J4ZZ, sorry I overlooked your post. But now I edited the VolumeSlider.qml file and finally the patch works :D. Thanks a lot. I'm happy!

consono 2015-01-10 10:41

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

any news regarding the partnerscreen? As I remember there were some discussion that it's easy to customize. It would be great if we can port over the ToonsTV screen from the Stella launcher... I downloaded the apk and extracted it, but only found a .so file which seems to be related to this: libpartnerspace-rovio.so. I hoped it's qml which could've been easier to turn into an app or something, but I don't know if it's even possible to use it on Jolla this way. My instinct say not, it's probably linked against android libs, but who knows?

coderus 2015-01-10 11:52

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
partnerspacemanager developmennt is here: https://github.com/sailfishos-patche...erspacemanager

consono 2015-01-10 13:25

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Thanks! It seems I was right and we can not re-use the android binary...

synt 2015-01-10 22:26

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
I tried out the partnerspacemanager and managed to get the phone app in the left ambience drawer. Didnt find any conversation about this which is suprising because its very easy to do at least for the phone app. Just make a partnerspace.json file like told in documentation in github and direct the qml to for example /usr/share/voicecall-ui-jolla/main.qml and it works. Only problem is that the pulley menu shows wrong text but it still works normally.

http://i8.aijaa.com/b/00872/13663381...0674e3f7266ac7

coderus 2015-01-11 04:26

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
text is not wrong. just a translation catalog missing.

Zeta 2015-01-11 21:59

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

Originally Posted by synt (Post 1456188)
Didnt find any conversation about this which is suprising because its very easy to do at least for the phone app. Just make a partnerspace.json file like told in documentation in github and direct the qml to for example /usr/share/voicecall-ui-jolla/main.qml and it works.

You're right, that's really easy to do!
I've done it for the settings app using the following code snippet:

Code:

[nemo@Jolla partnerspaces]$ cat /usr/share/partnerspacemanager/partnerspaces/partnerspace-jolla-settings/partnerspace.json
{
    "name": "Jolla Settings",
    "description": "Jolla Settings",
    "qml": "/usr/share/jolla-settings/settings.qml",
    "infos": {
        "maintainer": "Nobody"
    }
}


Zeta 2015-01-11 22:01

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

Originally Posted by coderus (Post 1456201)
text is not wrong. just a translation catalog missing.

That looks like it. Strangely the text is fine when doing it with the jolla-settings app.

Edit : not exactly, there is 90% of the text ok, but a thing like ""settings-me-add_to_favorites" is not shown correctly, so same problem here.

consono 2015-01-12 09:37

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Hmmmm.... It doesn't work for me. I used your .json file, created the necessary folders, even rebooted but still no cigar...

Do I have to change something in the launcher, too?

coderus 2015-01-12 09:43

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

Originally Posted by Zeta (Post 1456274)
That looks like it. Strangely the text is fine when doing it with the jolla-settings app.

Edit : not exactly, there is 90% of the text ok, but a thing like ""settings-me-add_to_favorites" is not shown correctly, so same problem here.

Text is ok with both cases. Do you know what "translation" means and how qsTrId() works?

Quote:

Originally Posted by consono (Post 1456306)
Hmmmm.... It doesn't work for me. I used your .json file, created the necessary folders, even rebooted but still no cigar...

Do I have to change something in the launcher, too?

You also installed partnerspacemanager package, right?

coderus 2015-01-12 10:04

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

Originally Posted by consono (Post 1456102)
Hi,

any news regarding the partnerscreen? As I remember there were some discussion that it's easy to customize. It would be great if we can port over the ToonsTV screen from the Stella launcher... I downloaded the apk and extracted it, but only found a .so file which seems to be related to this: libpartnerspace-rovio.so. I hoped it's qml which could've been easier to turn into an app or something, but I don't know if it's even possible to use it on Jolla this way. My instinct say not, it's probably linked against android libs, but who knows?

checked, and it's not using android, only qt and standard libs:
liblipstick-qt5.so libQt5Quick.so libQt5Qml.so libQt5Network.so libQt5Gui.so libQt5Core.so libGLESv2.so libgnustl_shared.so liblog.so libz.so libdl.so libstdc++.so libm.so libc.so libpartnerspace-rovio.so

consono 2015-01-12 11:20

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Stupid me :) I haven't installed it... It works now! THX!

synt 2015-01-13 11:15

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

Originally Posted by synt (Post 1456188)
I tried out the partnerspacemanager and managed to get the phone app in the left ambience drawer.

After some testing it seems that after getting a phone call the app will unload from the left ambience drawer and needs to be reinstalled from partnerspacemanager to make it work again. Also after booting the app needs to be started once or it wont work.

I've no idea if this is fixable or not but as for now I dont recommend using it. If anyone has any ideas, please share :D

Zeta 2015-01-13 17:45

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

Originally Posted by coderus (Post 1456307)
Do you know what "translation" means ?

:eek:
Yeah, I know the problem. Was only pointing it here, if somebody was facing it, or having the solution. I was surprise at first that one app had this issue and not the other one, but after digging, there was still some strings missing.

What is happening is that when the setting or voicecall app is launched as an app, the translations are loaded correctly. When it is run in the partner space, something is missing or wrong, so those translations are shown as the default text which here has been enter not as english, but as a kind of index string (not saying this is bad).

So to fix this problem we have to find from where the translations are loaded, which I can't do myself for know, as I don't know how QML works (done it from C++ side though, but in another life).

What I can think of as source of the problem:
* missing call to something that load the translation dictionnary
* path problem if it expects it from a relative path, and the partner-space launcher launches it from somewhere else
* something obvious or not that I am missing...

The strangest thing with the settings app, is that all strings looks like translated expect the ones in the menus when long pressing an item (maybe pulley menu too). Are those translations spread in several packages and only one is loaded ?

If anyone know a bit more than me here, feel free to give it a try.

Zeta 2015-01-13 17:48

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

Originally Posted by synt (Post 1456395)
After some testing it seems that after getting a phone call the app will unload from the left ambience drawer and needs to be reinstalled from partnerspacemanager to make it work again. Also after booting the app needs to be started once or it wont work.

Noticed something close with the settings app.
Most of the thing works as expected, but for example the android stop action from the sailfish utilities package never succeed, but if launched from the real app, it is ok each time.

And I also needed to reactivate it after a reboot or relaunching lipstick (like after applying a patch), but it has stayed here so far.

coderus 2015-01-14 20:47

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
MazeLock patch updated for u10 and released on OpenRepos: https://openrepos.net/content/coderus/patch-mazelock

Mikkosssss 2015-01-14 21:24

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

Originally Posted by coderus (Post 1456615)
MazeLock patch updated for u10 and released on OpenRepos: https://openrepos.net/content/coderus/patch-mazelock

Thanks! :cool:

coderus 2015-01-14 21:50

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Lockscreen mediaplayer controls patch released on OpenRepos: https://openrepos.net/content/coderu...layer-controls

kaari 2015-01-14 22:14

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Not working with Daedalus, buttons only shows up and dissapears. With Jollas media player working fine.

Edit:
My bad, found settings, everything works now. thanks

elastic 2015-01-14 22:16

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

Originally Posted by kaari (Post 1456629)
Not working with Daedalus, buttons only shows up and dissapears. With Jollas media player working fine.

+ 1 same for me - no controls with daedalus

coderus 2015-01-14 22:45

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
SailfishOS Patch: Scramble lockpad buttons first released on OpenRepos: https://openrepos.net/content/coderu...ockpad-buttons

coderus 2015-01-14 22:46

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

Originally Posted by elastic (Post 1456630)
+ 1 same for me - no controls with daedalus

go to patch settings and select daedalus. if still not working - go and update application. if still not working - write to deadalus developer.

elastic 2015-01-14 23:09

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

Originally Posted by coderus (Post 1456636)
go to patch settings and select daedalus. if still not working - go and update application. if still not working - write to deadalus developer.

Ah got it ;-) - didn't realize the settings menu ... sorry - one issue: the playing title wont't change in the display until you leave the lock screen and go back (same for play-pause button)

elastic 2015-01-15 00:27

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

Originally Posted by coderus (Post 1456615)
MazeLock patch updated for u10 and released on OpenRepos: https://openrepos.net/content/coderus/patch-mazelock

Yessss :-) Jolla should really employ you!

coderus 2015-01-15 00:27

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

Originally Posted by elastic (Post 1456637)
Ah got it ;-) - didn't realize the settings menu ... sorry - one issue: the playing title wont't change in the display until you leave the lock screen and go back (same for play-pause button)

write to daedalus author please, not me

elastic 2015-01-15 00:41

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

Originally Posted by coderus (Post 1456646)
write to daedalus author please, not me

ah got the point, works perfect with Jolla Player - sorry again

Dam 2015-01-15 09:37

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

Installed it yesterday evening. Restarted the phone. Checked in settings that the jolla player is selected... but no controls on the lockscreen... anything else I can check ?

synt 2015-01-15 11:38

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Thanks for the media player controls patch! But I encountered a problem while testing it with the Jolla media player. When rapidly pressing the Next Track -button the phone will go totally unresponsive and start blinking the red LED. After some time it'll get itself back together. This doesn't happen when using the app.

Someone have the same problem?

cvp 2015-01-15 12:17

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
yes, the same problem, but really fast rapid! Blinkt only Red, App plays music, black screen, needs restart.

coderus 2015-01-15 12:24

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

Originally Posted by Dam (Post 1456690)
Hi Coderus,

Installed it yesterday evening. Restarted the phone. Checked in settings that the jolla player is selected... but no controls on the lockscreen... anything else I can check ?

try reboot

Quote:

Originally Posted by synt (Post 1456709)
Thanks for the media player controls patch! But I encountered a problem while testing it with the Jolla media player. When rapidly pressing the Next Track -button the phone will go totally unresponsive and start blinking the red LED. After some time it'll get itself back together. This doesn't happen when using the app.

Someone have the same problem?

nobody cares if you break your head with wall :)

synt 2015-01-15 14:02

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

Originally Posted by coderus (Post 1456718)
nobody cares if you break your head with wall :)

Yeah sure, how about a minimum time between presses or something to protect my head since I seem to hit it quite often :p

coderus 2015-01-15 14:03

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
how about managing your playlists before playing music in random order?

Dam 2015-01-15 15:11

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
[QUOTE=coderus;1456718]try reboot

nope it did not help.
Uninstalled (through warehouse). Rebooted. Reinstalled (through warehouse). Rebooted. Still no controls on the lockscreen. Installed QuasarMx and changed in app settings the default player. Still no controls... :(

elastic 2015-01-15 21:56

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
there is a bug in the latest eventsview controls with settings applet (at least on my device) the mobile data toggle in events-view can switch the data on but not off (it works in the settings) - wlan toggle works as expected in settings and events-view

romu 2015-01-16 13:00

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

Originally Posted by elastic (Post 1456802)
there is a bug in the latest eventsview controls with settings applet (at least on my device) the mobile data toggle in events-view can switch the data on but not off (it works in the settings) - wlan toggle works as expected in settings and events-view

Same here.

HtheB 2015-01-16 14:32

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
coderus, indeed the controls are visible for me, but it doesn't work.
Tried reboot, changing all settings, still no luck.

:(

Also, I can confirm about the "mobile data" is not switchable in the eventsview

coderus 2015-01-16 14:49

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
what are you talking about? everything works fine on my device.

cvp 2015-01-16 14:51

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
from beginn i dowsnt work for me... but now, its works good :) i dont know what i have do. Maybe reboots?


All times are GMT. The time now is 22:44.

vBulletin® Version 3.8.8