We have moved to a new Sailfish OS Forum. Please start new discussions there.
16

Top menu shouldn't allow to organize when device is locked [released]

asked 2018-11-18 01:04:24 +0300

AliN gravatar image

updated 2018-11-18 19:59:53 +0300

Currently, when device is locked, it's not possible to use connectivity switches from the lock screen top menu; but it is possible to organize (re-order/remove) top menu items. It shouldn't be either.

Edit: I'm not speaking about toggles/switches, just mentioned them as an example. I'm talking about organize. It shouldn't be enabled when device is locked, or at least there should be an option. The current behavior (always enabled even on device lock seems a security flaw to me.) It's easy with few changes in:

/usr/share/lipstick-jolla-home-qt5/topmenu/TopMenu.qml

@@ -5,6 +5,7 @@
 import com.jolla.lipstick 0.1
 import org.freedesktop.contextkit 1.0
 import org.nemomobile.configuration 1.0
+import org.nemomobile.devicelock 1.0

 SilicaFlickable {
     id: topMenu
@@ -311,6 +312,7 @@
                                     MenuItem {
                                         //% "Organize"
                                         text: qsTrId("lipstick_jolla_home-me-topmenu_organize")
+                                        enabled: Desktop.deviceLockState == DeviceLock.Unlocked
                                         onClicked: Lipstick.compositor.topMenuLayer.housekeeping = !Lipstick.compositor.topMenuLayer.housekeeping
                                     }

Source: this patch of mine.

edit retag flag offensive reopen delete

The question has been closed for the following reason "released in a software update" by raketti
close date 2019-01-18 14:38:42.867589

Comments

2

The brightness and ringtone sliders can also be used. The only valid use cases are the use of the flashlight or the camera so you can activate it real quick. But even the use of the camera when the phone is locked is arguable so it needs to be configurable. I think the topmenu shouldn't be available when the phone is locked.

rgrnetalk ( 2018-11-18 09:48:39 +0300 )edit
1

I have a similar question here: https://together.jolla.com/question/193459/allow-top-menu-shortcuts-toggling-on-locked-device/ - but I disagree about connectivity switches. I would like to use them even if the device is locked. Organising menu items I don't want to be accesible. So I think the security settings should be configurable.

naytsyrhc ( 2018-11-18 13:05:36 +0300 )edit

@rgrnetalk the camera issue was discussed a lot before. The outcome is the quick camera gesture by swipe from bottom also available on locked device. So I think that security setting should also set if camera may be accessed from shortcuts in top menu. However as mentioned before, I want to have also network toggles accessible and not only flashlight.

naytsyrhc ( 2018-11-18 13:10:33 +0300 )edit
1

I voted up! Definitely need some rework.

Jk ( 2018-11-18 16:12:37 +0300 )edit

I just checked behaviour again. Even flight-mode toggle is locked with locked device. I totally disagree with above opinion and try to emphasize a configurable locking behaviour or strongly recommend my question (see above).

naytsyrhc ( 2018-11-18 17:11:49 +0300 )edit

1 Answer

Sort by » oldest newest most voted
5

answered 2019-01-18 13:45:38 +0300

jovirkku gravatar image

Using Organise in Top Menu has been prevented when the device is locked up. Update 3.0.1.11.

edit flag offensive delete publish link more

Question tools

Follow
2 followers

Stats

Asked: 2018-11-18 01:04:24 +0300

Seen: 399 times

Last updated: Jan 18 '19