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)

Baspar 2014-12-25 22:34

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@asa: already tried : Failed to install :/

And do you try to simply.... execute the command? (zypper in -f ....)

asa 2014-12-25 22:39

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

Originally Posted by Baspar (Post 1453896)
@asa: already tried : Failed to install :/

And do you try to simply.... execute the command? (zypper in -f ....)

Do you have the latest update of patchmanager?


And to my warning. No I haven't executed the zypper command, because I don't know why I'm getting the warning. And I'm not quite sure what this zypper will do.

coderus 2014-12-25 22:43

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@asa everybody have it, just ignore.

asa 2014-12-25 22:45

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

Originally Posted by coderus (Post 1453898)
@asa everybody have it, just ignore.

Alright, thanks!

Baspar 2014-12-25 23:56

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@asa : yep, every soft is up to date.
But to rely on your question... I haven't this warning

coderus 2014-12-26 02:04

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
MazeLock test patch for u10
To display default keypad/keyboard press and hold maze
To display maze enter "mazelock" in keyboard or "62935625" in keypad
Have settings applet
If you have numeric devicelock enabled you can't use mazelock bigger than 3x3. If you want to enable alphanumeric devicelock use this patch: https://openrepos.net/content/coderu...elock-settings
Download: https://dl.dropboxusercontent.com/u/...0-1.noarch.rpm

veeall 2014-12-26 02:14

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
I have modified the 5x6 homescreen patch to have 5x7 grid with icons scaled down by the power of 0.9. It works, but both original patch and mine still have 4 columns in folders (and at the folder icon picker), haven't found a file to tweak to fix this.

This is on Vaarainjärvi.

Code:

--- original/usr/share/lipstick-jolla-home-qt5/launcher/LauncherGrid.qml        2014-06-08 21:55:01.847978384 +0200
+++ patched/usr/share/lipstick-jolla-home-qt5/launcher/LauncherGrid.qml        2014-06-08 22:14:11.587192377 +0200
@@ -17,8 +17,8 @@
 
    property Item reorderItem
    property Item movingItem
-    property int columns: 4
-    property int initialCellWidth: (desktop.width - Theme.paddingLarge * 2) / columns
+    property int columns: 5
+    property int initialCellWidth: (desktop.width - Theme.paddingLarge) / columns
    property real firstRowOpacity: Math.min(Math.max((dashboard.contentY - dashboard.lockscreenAndStatusAreaHeight)/cellHeight, 0.0), 1.0)
    property bool launcherEditMode: desktop.removeApplicationEnabled
    property var launcherModel: model
@@ -31,8 +31,8 @@
    width: cellWidth * columns
    anchors.horizontalCenter: parent.horizontalCenter
    // Increase cellWidth so that icon vertical edges are Theme.paddingLarge away from display edges
-    cellWidth: Math.round(initialCellWidth + (initialCellWidth - Theme.iconSizeLauncher) / (columns - 1))
-    cellHeight: Math.round(Screen.height / 6)
+    cellWidth: Math.round(initialCellWidth + (initialCellWidth - Theme.iconSizeLauncher * 0.9) / (columns - 1))
+    cellHeight: Math.round(Screen.height / 7)
 
    function categoryQsTrIds() {
        //% "AudioVideo"
@@ -440,10 +440,14 @@
                id: launcherIcon
                anchors {
                    centerIn: parent
-                    verticalCenterOffset: rootFolder && index <= 3  ? 0 : Math.round(-launcherText.height/2)
+                    verticalCenterOffset: rootFolder && index < gridview.columns  ? 0 : Math.round(-launcherText.height/2)
                }
                icon: model.object.iconId
                pressed: down
+                width: Theme.iconSizeLauncher * 0.9
+                height: Theme.iconSizeLauncher * 0.9
+                sourceSize.width: Theme.iconSizeLauncher * 0.9
+                sourceSize.height: Theme.iconSizeLauncher * 0.9
                opacity: isUpdating && folderItemCount == 0 ? 0.2 : 1.0
                Text {
                    font.pixelSize: Theme.fontSizeExtraLarge


coderus 2014-12-26 06:50

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@veeall in LauncherFolder.qml visible rows count is hardcoded

Valvar 2014-12-26 07:20

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
I can't activate the eventsview patch (it just says "failed to install patch"). I tried to uninstall everything related, ausmt, patchutils, etc, but to no effect after reinstallation. When I uninstall the eventsview patch it seems to work, but it throws a "failed to remove patch" error.

wormdrummer 2014-12-26 07:34

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

Originally Posted by Valvar (Post 1453929)
I can't activate the eventsview patch (it just says "failed to install patch"). I tried to uninstall everything related, ausmt, patchutils, etc, but to no effect after reinstallation. When I uninstall the eventsview patch it seems to work, but it throws a "failed to remove patch" error.

yeah, I'm getting the same, even after completely resetting the device and reloading from scratch. Unfortunately as coderus said earlier, patchmanager isnt very reliable.

coderus 2014-12-26 07:40

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

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

and post result here

wormdrummer 2014-12-26 08:09

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
ok, I got the error, hunk #2 failed at 18.

coderus 2014-12-26 08:25

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
your /usr/share/lipstick-jolla-home-qt5/eventsview/EventsViewList.qml modified by some other patch.
unapply all patches, in terminal execute:
Code:

devel-su
pkcon install -y lipstick-jolla-home-qt5

it will reinstall homescreen. then try applying eventsview patch again

MeeNu 2014-12-26 08:40

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
i had the same issues as wormdrummer,
i executed the command to unapply all patches but still the eventsview isnt installing. the same error as before.

wormdrummer 2014-12-26 08:51

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
worked for me now :)
Thanks!

Valvar 2014-12-26 09:14

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

Originally Posted by MeeNu (Post 1453935)
i had the same issues as wormdrummer,
i executed the command to unapply all patches but still the eventsview isnt installing. the same error as before.

Same here. I also got the same error, "Hunk #2 FAILED at 18.".

coderus 2014-12-26 09:49

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
are you running sailfishos 1.1.1.27?

Valvar 2014-12-26 10:12

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

Originally Posted by coderus (Post 1453941)
are you running sailfishos 1.1.1.27?

Yes, I am.

coderus 2014-12-26 10:19

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
then do this: http://talk.maemo.org/showpost.php?p...&postcount=613

Valvar 2014-12-26 10:45

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

Originally Posted by coderus (Post 1453945)

I already did :c

cizi 2014-12-26 15:04

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

Originally Posted by cizi (Post 1453822)
I've resolved my conflicts finally and now if I want to apply patch (Patch: Eventsview controls. With settings applet.) I always get the same message "failed to install patch" :-). What I did wrong?

@coderus. I have everything up to date. I see new menu item in settings-system but activating in patchmanager is not possible :-(. I tried to reinstall the patch, but no luck :(

veeall 2014-12-26 15:11

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

Originally Posted by coderus (Post 1453927)
@veeall in LauncherFolder.qml visible rows count is hardcoded

Thanks! So 'row' here actually means 'a vertical column'.

coderus 2014-12-26 16:39

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@veeall row is row. row is not "vertical column"

aQUICK1 2014-12-26 21:01

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

Originally Posted by cizi (Post 1453970)
@coderus. I have everything up to date. I see new menu item in settings-system but activating in patchmanager is not possible :-(. I tried to reinstall the patch, but no luck :(

Tingle with the settings(nr of) colums and rows then u wil maybe see it pop up , if u added some extra favourites in settings.;)

MeeNu 2014-12-27 10:06

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
hi!
When i installed the test patch for mazelock it said failed to install. though somehow it is installed. i can see the maze lock option in settings too.
but patch manager just wont apply it.

cvp 2014-12-27 12:38

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
cant deinstall the old event view control :(
i update to the new 0.14 version, same problem. Any idea?
reinstall patchmanager doesnt help

veeall 2014-12-27 12:46

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

Originally Posted by coderus (Post 1453983)
@veeall row is row. row is not "vertical column"

I changed the 'visiblerowcount' value in LauncherFolder.qml from 4 to 5 but still got just four columns of icons in folders, so you are right, row means row. :)

cizi 2014-12-28 09:19

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

Originally Posted by aQUICK1 (Post 1454022)
Tingle with the settings(nr of) colums and rows then u wil maybe see it pop up , if u added some extra favourites in settings.;)

Thanks for your hint but I've tried reinstall the patch, tingle with settings but still "Failed to install patch". I an version 0.0.14-1...

aQUICK1 2014-12-28 12:45

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

Originally Posted by cizi (Post 1454141)
Thanks for your hint but I've tried reinstall the patch, tingle with settings but still "Failed to install patch". I an version 0.0.14-1...

OK.u tried both ? OpenRepos.net and or Warehouse?

nthn 2014-12-28 15:08

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

Originally Posted by aQUICK1 (Post 1454153)
OK.u tried both ? OpenRepos.net and or Warehouse?

Warehouse is just a client for openrepos.

aQUICK1 2014-12-28 15:59

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

Originally Posted by nthn (Post 1454162)
Warehouse is just a client for openrepos.

Yep i know, but installing procedure maybe different, let me say it in another way i, when i installed something from Open repos i got a few times an failed to install, while if i tried it from warehouse it installed ok or vice virsa, thats my experiance , maybe others had the same , thats why i mentioned.

Eminem 2014-12-28 17:22

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
4 Attachment(s)
Hi, i have tried this:

[root@Jolla nemo]# rpm -qa|grep patch
jolla-settings-patchmanager-0.4.5-10.15.1.jolla.armv7hl
patch-2.6.1-1.1.1.armv7hl Do not remove this one.
patchutils-0.3.3-10.1.1.jolla.armv7hl
patchmanager-0.4.5-10.15.1.jolla.armv7hl
sailfish-browser-textselection-patch-0.0.1-2.noarch
[root@Jolla nemo]# rpm -qa|grep ausmt
ausmt-1.2.7-10.10.1.jolla.armv7hl
[root@Jolla nemo]#
rpm -e patchmanager-0.4.5-10.15.1.jolla.armv7hl sailfish-browser-textselection-patch-0.0.1-2.noarch patchutils-0.3.3-10.1.1.jolla.armv7hl jolla-settings-patchmanager-0.4.5-10.15.1.jolla.armv7hl ausmt-1.2.7-10.10.1.jolla.armv7hl
[root@Jolla nemo]# rpm -qa|grep patch
patch-2.6.1-1.1.1.armv7h

And after that this:

pkcon install -y lipstick-jolla-home-qt5

And then a reboot and i still get the double Eventsview control patch (see picture) after a reinstall of patchmanger and all the patches (base, advanced, eventsview etc). Even the Date top in Clock region reappears (see picture). And as soon as i tap Date in top or eventsview control patch switchers - volume they disappear (see picture) and the newest Eventsview is uninstallable.

cizi 2014-12-28 17:47

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

Originally Posted by aQUICK1 (Post 1454153)
OK.u tried both ? OpenRepos.net and or Warehouse?

I've tried everything and no chance to active the patch :-(.

BTW Am I confused? Where has disappeared the patch for media control button on lockscreen?

EDIT I found it already :-). @coderus made a solo patch for testing :-) here
Quote:

Originally Posted by coderus (Post 1453280)
Lockscreen player controls v0.0.2 released for testing: https://dl.dropboxusercontent.com/u/...-1.armv7hl.rpm
Changed:
* hide controls when playes is not running
* player can be changed without lipstick restart


Baspar 2014-12-29 13:04

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Well I couldn't apply some patches ( Eventviews & mazelock ) so I reset my phone to scratch, and now :
  • event view is working
  • Launcher combined patch is working
  • mazelock is NOT working


When i try a dry-run patch for mazelock, I've got this error :
Code:

[root@Jolla nemo]# patch --dry-run -p 1 -d / -i /usr/share/patchmanager/patches/sailfishos-mazelock-patch/unified_diff.patch
patching file usr/share/lipstick-jolla-home-qt5/main.qml
patching file usr/share/lipstick-jolla-home-qt5/main/DeviceLock.qml
can't find file to patch at input line 45
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/com/jolla/settings/system/PinInput.qml b/com/jolla/settings/system/PinInput.qml
|index 7c1d86c..3e66bdf 100644
|--- a/com/jolla/settings/system/PinInput.qml
|+++ b/com/jolla/settings/system/PinInput.qml
--------------------------
File to patch:


EDIT: problem found.
The file "/com/jolla/settings/system/PinInput.qml" don't exist (On this version ?) Just remplace it by "/usr/lib/qt5/qml/com/jolla/settings/system/PinInput.qml".

Clean method: type on terminal : "devel-su; vi /usr/share/patchmanager/patches/sailfishos-mazelock-patch/unified_diff.patch"
Once done, replace "/com/jolla/settings/system/PinInput.qml" by "/usr/lib/qt5/qml/com/jolla/settings/system/PinInput.qml" on lines 41, 43, 44 (You should rewrite it 4 times)
And problem seems solved

cizi 2014-12-29 15:55

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
As I've seen I tried to run this:

Code:

[root@Jolla nemo]# 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
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

Do you have an idea what is wrong?

J4ZZ 2014-12-29 20:14

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

Originally Posted by wormdrummer (Post 1453355)
yup, I know about control center but the combined launcher doesnt work either.

Quote:

Originally Posted by malkavian (Post 1453279)
I followed this guide to remove patchmanager completely: http://talk.maemo.org/showthread.php?p=1433209#274

Then I rebooted mobile, installed patchmanager and patches again and yet I can neither load Launcher combined patches nor Control center in events view. :'(

Finally found the culprit for launcher combined patch not applying for some on 1.1.1.27.

The fix is to delete the file FolderIcon.qml in
Code:

/usr/share/lipstick-jolla-home-qt5/launcher/
before using the patch.

After that launcher-combined-patch installs just fine. ;)

Regards,

J4ZZ

J4ZZ 2014-12-29 21:10

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

Originally Posted by cizi (Post 1454283)
As I've seen I tried to run this:

Code:

[root@Jolla nemo]# 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
Hunk #2 FAILED at 18.
1 out of 2 hunks FAILED -- saving rejects to file usr/share/jolla-settings/pages/sounds/VolumeSlider.qml.rej

Do you have an idea what is wrong?

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


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
    }
}

then the patch will work! ;)

Eminem 2014-12-29 21:50

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

Originally Posted by J4ZZ (Post 1454302)
Finally found the culprit for launcher combined patch not applying for some on 1.1.1.27.

The fix is to delete the file FolderIcon.qml in
Code:

/usr/share/lipstick-jolla-home-qt5/launcher/
before using the patch.

After that launcher-combined-patch installs just fine. ;)

Regards,

J4ZZ

Don´t have that folder. :(

malkavian 2014-12-29 23:47

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

Originally Posted by J4ZZ (Post 1454302)
The fix is to delete the file FolderIcon.qml

Thank you very much. It worked. :D:):cool:

J4ZZ 2014-12-30 02:12

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

Originally Posted by Eminem (Post 1454314)
Don´t have that folder. :(

I'm pretty sure you do! ;)


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

vBulletin® Version 3.8.8