Reply
Thread Tools
HtheB's Avatar
Moderator | Posts: 3,715 | Thanked: 7,419 times | Joined on Dec 2009 @ Bize Her Yer Trabzon
#1
With the introduction of the 1.0.7.16 update, we're able to add shortcuts to the lockscreen.
But we're only able to add shortcuts to apps on the lockscreen.

I want to add an 'action' to the lockscreen.

The action is Called "Connect to Internet".
This menu already exist: Settings > WLAN > Pulley menu > Connect to Internet
(As you can see, it's a pain the *ss to go to that menu everytime...)

This would bring up a screen like we're used to on Fremantle and Harmattan:



How can we achieve this?

EDIT:
You can download this at Openrepos now.
TMO Thread:
http://talk.maemo.org/showthread.php?p=1429367
__________________
www.HtheB.com
Please donate if you think I'm doing a good job.

Last edited by HtheB; 2014-06-12 at 20:06.
 

The Following User Says Thank You to HtheB For This Useful Post:
Posts: 187 | Thanked: 121 times | Joined on Jun 2011 @ Subang Jaya, Selangor Darul Ehsan, Malaysia
#2
if this screen can be called using a command i suppose this will be easier (:

Did a quick hack out or boredom for this. First as this is a hack, you would need developer access to the device.

Then run devel-su to continue as root. Then use vi/whatever editor you fancy to create a file named settings-wifi-connect.desktop in /usr/share/applications with the following config

Code:
[Desktop Entry]
Type=Application
Name=Settings
X-MeeGo-Logical-Id=settings-ap-name
X-MeeGo-Translation-Catalog=settings
Icon=icon-launcher-settings
Exec=invoker --single-instance --type=silica-qt5 /usr/bin/jolla-settings
Comment=Jolla Settings
X-Desktop-File-Install-Version=0.20
Then you can enable this shortcut in the settings app (:

EDIT: actual hack

EDIT2: cross posted to my blog

Last edited by Jeffrey04; 2014-06-12 at 16:50.
 

The Following User Says Thank You to Jeffrey04 For This Useful Post:
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#3
The connection dialog is simply appearing when trying to make a network connection (at least with Qt) while there is no network connectivity. You could make a simple window-less Qt program that tries to load from some URL, and the dialog should popup.
Then add a .desktop file for it and you should be able to put it into the shortcuts menu.
__________________
Tidings - RSS and Podcast aggregator for Jolla - https://github.com/pycage/tidings
Cargo Dock - file/cloud manager for Jolla - https://github.com/pycage/cargodock
 

The Following User Says Thank You to pycage For This Useful Post:
HtheB's Avatar
Moderator | Posts: 3,715 | Thanked: 7,419 times | Joined on Dec 2009 @ Bize Her Yer Trabzon
#4
Originally Posted by Jeffrey04 View Post
if this screen can be called using a command i suppose this will be easier (:

Did a quick hack out or boredom for this. First as this is a hack, you would need developer access to the device.

Then run devel-su to continue as root. Then use vi/whatever editor you fancy to create a file named settings-wifi-connect.desktop in /usr/share/applications with the following config

Code:
[Desktop Entry]
Type=Application
Name=Settings
X-MeeGo-Logical-Id=settings-ap-name
X-MeeGo-Translation-Catalog=settings
Icon=icon-launcher-settings
Exec=invoker --single-instance --type=silica-qt5 /usr/bin/jolla-settings
Comment=Jolla Settings
X-Desktop-File-Install-Version=0.20
Then you can enable this shortcut in the settings app (:

EDIT: actual hack

EDIT2: cross posted to my blog
I havent tried out your hack yet, but I talked to the guys at the IRC, and we figured it out that this one should work as well:
Code:
    [Desktop Entry]
    Type=Application
    X-Nemo-Application-Type=no-invoker
    Name=Connect to internet
    Icon=internetconnection
    Exec=dbus-send --type=method_call --print-reply --dest=com.jolla.lipstick.ConnectionSelector / com.jolla.lipstick.ConnectionSelectorIf.openConnection string:wlan
I've created an icon for it
Attached Images
 
__________________
www.HtheB.com
Please donate if you think I'm doing a good job.
 

The Following 3 Users Say Thank You to HtheB For This Useful Post:
HtheB's Avatar
Moderator | Posts: 3,715 | Thanked: 7,419 times | Joined on Dec 2009 @ Bize Her Yer Trabzon
#5
I've uploaded it to Openrepos guys.
Have fun!
https://openrepos.net/content/htheb/connect-internet

TMO Thread:
http://talk.maemo.org/showthread.php?p=1429367
__________________
www.HtheB.com
Please donate if you think I'm doing a good job.

Last edited by HtheB; 2014-06-12 at 20:06.
 

The Following User Says Thank You to HtheB For This Useful Post:
Reply

Tags
lockscreen, sailfishos, shortcuts

Thread Tools

 
Forum Jump


All times are GMT. The time now is 19:14.