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)

cizi 2014-12-30 08:03

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

Originally Posted by J4ZZ (Post 1454309)
Your VolumeSlider.qml in
Code:

/usr/share/jolla-settings/pages/sounds/
should look like this

Code:

import QtQuick 2.0
import Sailfish.Silica 1.0
import com.jolla.settings.system 1.0
import org.nemomobile.systemsettings 1.0
import Sailfish.Ambience 1.0

Slider {
    id: slider

    property string entryPath

    //% "Default ringtone volume"
    label: qsTrId("settings_sounds_la_volume")
    maximumValue: 100
    minimumValue: 1
    value: profileControl.ringerVolume

    onValueChanged: profileControl.ringerVolume = value
    onPressAndHold: cancel()

    Profile {
        id: profileControl
        onRingerVolumeChanged: slider.value = profileControl.ringerVolume
    }
}


then the patch will work! ;)

Hi @J4ZZ thank you for your hint but still not works. Command line looks like this:
Code:

patch --dry-run -p 1 -d / -i /usr/share/patchmanager/patches/                                      sailfishos-eventsview-controls-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
Reversed (or previously applied) patch detected!  Assume -R? [n] y
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 nemo]#

To be honest I have no idea what happened but the patch is still not working :-(.I tried this run from command line and I tried run the patch from patchmanager, still "Failed to install patch".

Do you know what is wrong please?

Eminem 2014-12-30 09:00

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

Originally Posted by J4ZZ (Post 1454335)
I'm pretty sure you do! ;)

Oops, got the folder but not the file. :(

J4ZZ 2014-12-30 14:18

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

Originally Posted by cizi (Post 1454367)
Hi @J4ZZ thank you for your hint but still not works. Command line looks like this:
[CODE]patch --dry-run -p 1 -d / -i /usr/share/patchmanager/patches/ sailfishos-eventsview-controls-remastered-patch/unified_diff.patch
patching file usr/share/jolla-settings/pages/sounds/VolumeSlider.qml
Reversed (or previously applied) patch detected! Assume -R? [n] y
CODE]

To be honest I have no idea what happened but the patch is still not working :-(.I tried this run from command line and I tried run the patch from patchmanager, still "Failed to install patch".

Do you know what is wrong please?

Sorry mate, I accently provided the content of an already patched VolumeSlider.qml...

here's the correct one (unpatched) VolumeSlider.qml

Code:

import QtQuick 2.0
import Sailfish.Silica 1.0
import com.jolla.settings.system 1.0
import org.nemomobile.systemsettings 1.0


Slider {
    id: slider

    property string entryPath

    //% "Default ringtone volume"
    label: qsTrId("settings_sounds_la_volume")
    maximumValue: 100
    minimumValue: 1
    value: profileControl.ringerVolume

    onValueChanged: profileControl.ringerVolume = value
    onPressAndHold: cancel()

    ProfileControl {
        id: profileControl
        onRingerVolumeChanged: slider.value = profileControl.ringerVolume
    }
}


J4ZZ 2014-12-30 14:22

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

Originally Posted by Eminem (Post 1454374)
Oops, got the folder but not the file. :(

Could you post the output of
Code:

patch --dry-run -p 1 -d / -i /usr/share/patchmanager/patches/sailfishos-eventsview-controls-remastered-patch/unified_diff.patch
please?

Eminem 2014-12-30 16:46

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

[root@Jolla Downloads]# patch --dry-run -p 1 -d / -i /usr/share/patchmanager/patches/sailfishos-eventsview-controls-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
The next patch would create the file usr/share/lipstick-jolla-home-qt5/eventsview/FavoritesZoneControls.qml,
which already exists!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored
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 Downloads]#


coderus 2014-12-30 17:37

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
You just wait a bit. I'll update patches tomorrow.

TrD 2014-12-30 18:27

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Everyones talking about control center but how can I get 5x6 appgrid working? or is it working for every1 else and I just messed up something?

J4ZZ 2014-12-30 19:20

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

Originally Posted by Eminem (Post 1454434)
Code:

[root@Jolla Downloads]#
The next patch would create the file usr/share/lipstick-jolla-home-qt5/eventsview/FavoritesZoneControls.qml
patching file usr/share/jolla-settings/pages/sounds/VolumeSlider.qml


edit the content of your VolumeSlider.qml like I described above for user cizi and additionally remove or rename FavoritesZoneControls.qml... I marked the paths in red. :)

J4ZZ 2014-12-30 19:25

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

Originally Posted by TrD (Post 1454441)
Everyones talking about control center but how can I get 5x6 appgrid working? or is it working for every1 else and I just messed up something?

Yes it works fine, but is also included in launcher-combined-patches
So basically 5x6 patch is not needed anymore.

Eminem 2014-12-30 23:44

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

Originally Posted by J4ZZ (Post 1454446)
edit the content of your VolumeSlider.qml like I described above for user cizi and additionally remove or rename FavoritesZoneControls.qml... I marked the paths in red. :)

Output after editing is:

Code:

[root@Jolla ~]# patch --dry-run -p 1 -d / -i /usr/share/patchmanager/patches/sailfishos-eventsview-controls-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
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 ~]#

:D

J4ZZ 2014-12-31 02:12

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Congrats, so go ahead and apply it in patchmanager ;)

veeall 2015-01-02 02:27

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

Originally Posted by TrD (Post 1454441)
Everyones talking about control center but how can I get 5x6 appgrid working? or is it working for every1 else and I just messed up something?

Here is my modified patch to get 5x7 grid, please try if you're brave. Folders are unhacked and ugly.
It is for the latest version of SF.

5x6 from openrepos worked fine here, though, you should check if you have the latest version of everything, maybe.

R1v3r 2015-01-02 08:41

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@coderus I tried to install this new eventsview remastered https://openrepos.net/content/coderu...ettings-applet

It installs fine, but I canīt applied this patch in patchmanager. At this point I have 2 different control center events view tab in PM. (Just like Eminem attachments)

I already tried also this:

unapply and delete new patch then
install this: https://dl.dropboxusercontent.com/u/...-1.armv7hl.rpm
then unapply it and delete
and install new patch again

I also tried this

But no luck. (I installed after this https://dl.dropboxusercontent.com/u/...-1.armv7hl.rpm -> the other named control center eventsview, but I canīt find its name at all, so I canīt remove it.. :( I think that this might be the problem on my phone... Edit: It was this https://openrepos.net/content/coderu...er-rows-volume but I canīt find it through warehouse anymore...

When I am trying to remove the new patch warehouse says it is uninstalled, but phone says that uninstallation failed...

Any suggestions?

coderus 2015-01-04 14:41

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@R1v3r last patchmanager can unapply any patch. Ask @SfietKonstantin if not.

R1v3r 2015-01-04 15:21

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

Originally Posted by coderus (Post 1455186)
@R1v3r last patchmanager can unapply any patch. Ask @SfietKonstantin if not.

@coderus. umm. I explained this propably little sloppy... So Patchmanager unapplied all great. So no problem in it.

I tried to remove the patch -> So I tried to uninstall it completely, then it said something, that it could not be removed.. I donīt know, why.

But when in uninstalled pdvanded and base patches, NOW events view control installed correctly and everything is working great... I just donīt know how did this work out, but I like that it does :)

I got this combined launcher also wotk, but for my info, How I change the settings in combined launher? (I now, I am a noob) Sorry :)

BR,
R1v3r

cvp 2015-01-04 15:24

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Cant deinstall/install Event Control.

i try:
- unpatch all what is possible except Event control, because not possible
- deinstall all patches and patchmanager
- pkcon refresh
- pkcon install lipstick-jolla-home-qt5
- reboot
- Event control is deinstalled!
- Install patchmanager and all patches what i need
- and if i open patchmanager in settings, than i see Event Control (old one) ist activated!
... cant deinstall, cant install new one...

i really dont know what i can now to do :(

aQUICK1 2015-01-04 15:44

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@ cvp Try to uninstall through Warehouse , or with the right command in terminal?

cvp 2015-01-04 15:49

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
you mean the Warehouse Application self?
and what is the commandline to deinstall or reinstall the original event view?

R1v3r 2015-01-04 16:02

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

Try this next. (worked for me)

Uninstall all patches. (advanced patches, base patches) then reboot.
Then install this events view with settings applet. (reboot)
Then open patchmanager and apply this new eventview patch. reboot, if you feel like.

After this mine started to work.

After this, install these base and advanced patches, if you need these.

This original control center in events view was IMO included in advanced patches, if I am correct.

BR,
R1v3r

cvp 2015-01-04 16:18

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

Originally Posted by R1v3r (Post 1455202)
Hi cvp,
Uninstall all patches. (advanced patches, base patches) then reboot.
Then install this events view with settings applet. (reboot)
Then open patchmanager and apply this new eventview patch. reboot, if you feel like.

after install events view with settings applet and open patchmanager, i see only a working/loading circle in the middle... than i restart the phone and open patchmanager again... and i see two patches

1) what is activated: Eventsview controls patch switchers + Volumen
2) Evntsview controls patch with setting

and i cant deactivate the 1) .... is it possible to deinstall the first one over terminal?

R1v3r 2015-01-04 16:45

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
If I have ever needed to uninstall anything via terminal it works with this post from coderus

http://talk.maemo.org/showpost.php?p...&postcount=557

So this pkcon remove and then the program that you are trying to uninstall. Hardest for me was to find the correct name of the application... :D Because it needs to be exact correct. You can find all rpm packages installed in your phone via terminal (as root, write rpm -qa and this command shows all rpm packages that you have your phone has installed)

Please note that you need to know what you are doing. Please do not uninstall anything, that you are not sure.

BR,
R1v3r

cvp 2015-01-04 17:47

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
thanks... now i try few minits to search the rpm package, but no luck by finding... only the remastered package... if i deinstall really all patches, than i find nothing about "event" "events" "view" "controls".

:(


EDIT:
rpm -e --noscripts pandora-eventview-controls => find no packages
pkcon remove sailfishos-eventsview-controls-1row-volume-patch => not found

romu 2015-01-05 08:12

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Hi, anyone to fix the Mediaplayer D-BUS interface patch? Can't install it :-(

J4ZZ 2015-01-05 16:32

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

Originally Posted by cvp (Post 1455219)
thanks... now i try few minits to search the rpm package, but no luck by finding... only the remastered package...

It's here...

cvp 2015-01-05 21:49

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
j4zz thanks... now i get the massage that Fail to remove patch :(
there is no other patches installed (base/advance/others). Reboot not helps.

damn it, i try different ways nothin helps :(

J4ZZ 2015-01-05 23:12

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

Originally Posted by cvp (Post 1455444)
j4zz thanks... now i get the massage that Fail to remove patch :(
there is no other patches installed (base/advance/others). Reboot not helps.

damn it, i try different ways nothin helps :(

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. :)

olpe 2015-01-06 20:45

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

I would love to have a settings shortcut to the settings app.

This shortcut could be set to the eventsview control center and you could always have easy access to the settings app.

Now I'm all the time trying to remember to keep the settings app up and running...

Thanks in advance if somebody can implement this.

asa 2015-01-06 20:51

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

Originally Posted by olpe (Post 1455627)
Hi.

I would love to have a settings shortcut to the settings app.

This shortcut could be set to the eventsview control center and you could always have easy access to the settings app.

Now I'm all the time trying to remember to keep the settings app up and running...

Thanks in advance if somebody can implement this.

Have you tried powermenu?

coderus 2015-01-06 20:59

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

Originally Posted by romu (Post 1455316)
Hi, anyone to fix the Mediaplayer D-BUS interface patch? Can't install it :-(

you don't need it, mediaplayer now have built-in MPRIS2 D-Bus interface.

olpe 2015-01-06 20:59

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

Originally Posted by asa (Post 1455631)
Have you tried powermenu?

Yeah I tried that before.

Ended up with more laggy unlocking of the phone and sometimes shut down the phone by accident.

coderus 2015-01-06 21:08

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@olpe really? :D OMFG what a crapp application i made!

olpe 2015-01-06 21:11

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

Originally Posted by coderus (Post 1455640)
@olpe really? :D OMFG what a crapp application i made!

LOL. I haven't tried it for a while though. I think it was one of the first versions.

I'll probably give it another go now.

So am I the only one who would like to have a such shortcut in events view?

asa 2015-01-06 21:15

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

Originally Posted by olpe (Post 1455641)
LOL. I haven't tried it for a while though. I think it was one of the first versions.

I'll probably give it another go now.

So am I the only one who would like to have a such shortcut in events view?

I find powermenu really useful when double clicking the power button opens up settings.

olpe 2015-01-06 21:56

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Oh well. Now I remember why I didn't love power meny - I'm lefthanded so I cannot press the powerbutton without changing the grip of the phone.

But the app is nice though.

romu 2015-01-07 07:48

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

Originally Posted by coderus (Post 1455634)
you don't need it, mediaplayer now have built-in MPRIS2 D-Bus interface.

Ok thanks. So do you know the "Lockscreen media buttons" can't be installed?

cizi 2015-01-07 08:56

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@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 :-)

coderus 2015-01-07 08:58

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@romu you just install this and dont need any additional patches: http://talk.maemo.org/showpost.php?p...&postcount=476

romu 2015-01-07 12:25

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Great, thank you, works nice.

coderus 2015-01-07 12:42

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
i'll do some changes and release it on public :)

romu 2015-01-07 14:29

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Just made you a small donation for all your work.


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

vBulletin® Version 3.8.8