The Following 30 Users Say Thank You to anig For This Useful Post: | ||
|
2018-05-09
, 04:46
|
|
Posts: 82 |
Thanked: 129 times |
Joined on Jan 2017
@ India
|
#3
|
|
2018-05-09
, 07:28
|
|
Community Council |
Posts: 1,669 |
Thanked: 10,225 times |
Joined on Nov 2014
@ Lower Rhine
|
#4
|
The Following 5 Users Say Thank You to mosen For This Useful Post: | ||
|
2018-05-09
, 08:12
|
|
Posts: 764 |
Thanked: 2,888 times |
Joined on Jun 2014
|
#5
|
The Following 10 Users Say Thank You to nthn For This Useful Post: | ||
|
2018-05-09
, 18:00
|
Posts: 339 |
Thanked: 1,623 times |
Joined on Oct 2013
@ France
|
#6
|
|
2018-05-09
, 19:28
|
|
Posts: 6,447 |
Thanked: 20,981 times |
Joined on Sep 2012
@ UK
|
#7
|
That makes me wonder if there is still the problem that sailfish can't run with any other user than nemo ?
The Following 6 Users Say Thank You to pichlo For This Useful Post: | ||
|
2018-05-12
, 15:45
|
Posts: 90 |
Thanked: 163 times |
Joined on Jan 2012
|
#9
|
|
2018-05-12
, 18:48
|
Posts: 339 |
Thanked: 1,623 times |
Joined on Oct 2013
@ France
|
#10
|
Since this is the first time I've used translation I didn't realise that when a translation language doesn't exit it only shows the id. How can I have the source language showing instead?
If the file name does not exist, other file names are tried in the following order:
File name without suffix appended.
File name with ui language part after a "_" character stripped and suffix.
File name with ui language part stripped without suffix appended.
File name with ui language part stripped further, etc.
This is a patch and application that creates a kids mode. The patch modifies the launcher, eventsview, notifications and switcher code to allows the application to work.
When kids mode is activated for a user only the configured applications can be seen in launcher and launched. Long press is disabled in launcher. In events view notifications are hidden and only the configured switches and actions are available in the pull down menu. Notification pop-upps are shown but can't be clicked.
When the user exits kids modes then the normal user settings are restored. A pin can be set to exit kids mode.
Features:
- Multiple users can be created, each with own configuration for launcher and events view shortcuts.
- Can be activated and deactivated from the cover.
- Pin can be set to exit kids mode.
Notes:
Newly installed applications need to be unselected in settings otherwise they will show in kids mode.
The pin is stored as plain text in dconf and so not secure.
This may conflict with other patches of launcher, switcher, notifications or eventsview.
If the launcher folders aren't restored try a home screen restart. If that doesn't work then copy files in /home/nemo/.config/kids-mode/masterBackUp to /home/nemo/.config/lipstick and restart home screen.
To-dos (time and ability permitting):
- Don't show newly installed applications in kids mode as default behavioir.
- User configurable notification settings.
- Look into whether running applications can be hidden instead of closed.
- User changeable kids-mode ambiences.
How it works:
I have used the blacklisted applications list within launcher. For each user the applications that can't be shown are stored in dconf. Launcher has been patched to read the key and update the blacklisted applications when the kmon dconf key is set to true. Long press is also deactivated. The application.menu and folders are backed up. Folders are removed from application.menu xml and a patch of launchers allows this to be reloaded after km is turned on. Finally the swirther patch allows the application to trigger close all.
For eventsview shortcuts the user settings are stored for the user in dconf and copied to the main events view dconf when kmon is set true.
When kmon is set to false everything is reverted.
File operations are done using python.
For the settings I have reused and adapted qml files from jolla settings for events view.
This may not be the most efficient or elegant solution but it works and meets my needs in only allowing selected applications to be used by the kids. Hopefully others will find it useful. Constructive feedback and any code contributions are welcome.
Available on open repos: https://openrepos.net/content/anig/kids-mode
Source: https://github.com/anigaj/kids-mode
Translations: https://www.transifex.com/x-39/kids-...ish/dashboard/
Last edited by anig; 2018-05-08 at 22:34.