No, I haven’t uploaded it to anywhere. But it’s very simple.
Create the following folder:
/usr/share/patchmanager/patches/flashlight-button
and place in it a file called
unified_diff.patch
with the following contents (just copy&paste it to a new text file):
--- a/usr/share/lipstick-jolla-home-qt5/main.qml
+++ b/usr/share/lipstick-jolla-home-qt5/main.qml
@@ -170,10 +170,10 @@
ShutterKeyHandler {
// for now playing it safe and allowing only if device is properly unlocked
- enabled: !lipstickSettings.lockscreenVisible
+ enabled: true
onPressAndHold: {
vibraEffect.play()
- cameraInterface.call("showViewfinder", "")
+ flashlightInterface.call("toggleFlashlight", undefined)
}
}
@@ -183,11 +183,11 @@
}
DBusInterface {
- id: cameraInterface
+ id: flashlightInterface
- iface: "com.jolla.camera.ui"
- service: "com.jolla.camera"
- path: "/"
+ iface: "com.jolla.settings.system.flashlight"
+ service: "com.jolla.settings.system.flashlight"
+ path: "/com/jolla/settings/system/flashlight"
}
DBusInterface {
Go to Patchmanager, enable this patch, and that’s it.