Quick&dirty VPN quick setting button for Plasma Mobile
#1
Information 
FYI, I have hacked up a quick&dirty Plasma Mobile quick settings drawer button for VPNs:
https://invent.kde.org/kkofler/plasma-mo...ttings/vpn

You do not need to compile anything for it, you can just drop the contents of the linked folder into a new folder called ~/.local/share/plasma/quicksettings/org.kde.plasma.quicksetting.vpn (where ~ is your home directory) on the device (PinePhone, PinePhone Pro, or any other Plasma Mobile device).

The set up still requires the desktop kcm_networkmanagement, so you need to scroll around a bit in that dialog to configure the VPN. If you have no VPN set up yet, the quick settings button just brings up the dialog for you. Otherwise, it takes the first VPN it finds (there is no selection yet for the case where there is more than one) and toggles it, i.e., disables it if it was enabled, enables it otherwise. Depending on the VPN type, you will most likely be prompted for secrets with yet another desktop dialog, but it allows you to connect.

I doubt the code can be included upstream as is because the code architecture is just ugly (scraping a string to check the status and invoking a shell script to do the toggling using nmcli), but if you want a convenient way to use a VPN under Plasma Mobile as long as upstream does not support it officially, there you go.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Abiword as a office mobile word processor for the Pinephone? Peter Gamma 11 3,189 10-24-2023, 08:57 AM
Last Post: Peter Gamma
  Proximity lock on Plasma Mobile alpineduck 0 1,184 08-14-2023, 05:51 PM
Last Post: alpineduck
  Mepo - Minimalist and hackable OSM map viewer for mobile linux mil 22 16,029 10-31-2022, 07:29 AM
Last Post: mil
  Quick and easy bootloader option for JumpDrive on external SD card? Peter Gamma 5 3,062 05-02-2022, 06:57 AM
Last Post: Peter Gamma
  HowTo: Get a passcode from DUO Mobile working on the Pinephone kop316 2 3,965 01-16-2022, 03:46 PM
Last Post: michel_luc
  GTK Rust mobile Linux client for Signal Be. 14 20,753 11-11-2021, 05:35 PM
Last Post: sativista
  Choosing Wi-Fi or Mobile Data sergio.pantalone 1 1,771 10-14-2021, 12:28 PM
Last Post: kqlnut
  Questions and experiences using Fedora Mobile (as a PinePhone newbie) zkajdan 1 1,970 10-03-2021, 11:31 AM
Last Post: zkajdan
  Plasma Mobile goes back to lockscreen when the phone isn't charging plaristote 4 4,386 06-12-2021, 09:06 AM
Last Post: plaristote
  PinePass - Mobile friendly GUI for pass mpnordland 2 3,478 05-01-2021, 05:46 PM
Last Post: linmob

Forum Jump:


Users browsing this thread: 1 Guest(s)