summaryrefslogtreecommitdiff
path: root/plugins/wwan
Commit message (Collapse)AuthorAgeFilesLines
* build: Use gcr4 by default, but have an option to use gcr3 tooMilan Crha2022-07-192-1/+5
| | | | | The gcr4 replaces gcr3, thus make it possible to use either of the two, while defaulting to gcr4, as it'll live for a longer time.
* Remove translatability of non user-facing stringsThibault Martin2020-09-031-31/+31
|
* wwan: Don't split strings marked for translationMohammed Sadiq2020-08-181-5/+7
| | | | | | | Splitting strings won't work right in many languages, and makes the life of translators harder. See https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/merge_requests/174#note_890827, #548
* Re-write wwan pluginMohammed Sadiq2020-08-109-647/+2082
| | | | | | | | | | | | This uses cc-wwan-device.c copied from gnome-control-center without any modification. The following features/fixes are also implemented: * Handle multiple devices * Handle PUK unlocking * Close prompt if the device got removed * Fix showing the wrong unlock count
* plugins: Remove old systemd templatesBenjamin Berg2020-07-312-29/+0
| | | | | We are now generate all of these from one template, rather than having a per-plugin template.
* plugins: Use a common templates .desktop filesBenjamin Berg2020-07-311-10/+0
| | | | | | | | | | | Currently we have no plugin that uses special flags or similar to start only under certain conditions. So just generate all of them from two template files rather than shipping seperate templates for each plugin. The idea here is to handle any possible future difference also during generation. This might e.g. be that we again start certain services only if a GSettings key is set, which would likely need to be mirrored e.g. in the systemd path.
* plugins: Lower systemd stop timeoutBenjamin Berg2019-12-121-0/+1
| | | | | | | This prevents logout to hang if one of the g-s-d processes refuses to quit. That should never happen, but it does not hurt to configure systemd to kill the process already after 5 seconds rather than waiting up to 1 minute 30 seconds.
* plugins: Add systemd user service files for all the pluginsBenjamin Berg2019-08-053-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Using the facility added in the previous commit, we can add systemd user service files for all plugins and know when they have started up. This is roughly based on the work previously done by Iain Lane <iain@orangesquash.org.uk> and Bastien Nocera hadess@hadess.net>. For each g-s-d process we have a service and a target file. This separation only exists to contain dependency failures which would cause an OnFailure action to trigger and is needed so that we can use OnFailure for the gnome-session fail-whale (gnome-session-failed.target). In general, the approach taken is that we start g-s-d processes after gnome-session-initialized.target and before gnome-session.target. We want to be able to selectively start the services only when one or more dependencies are there, or even mask out services under some conditions. The approach taken is the following: * To mask a service, use a Conflicts entry. This is e.g. used to not start certain services in GDM using Conflicts=gnome-session@gnome-login.target * To depend on multiple targets to be up and running to start, we set each of these targets in Requisite/After/PartOf/WantedBy. We always do this for gnome-session-initialized.target but this method is extensible to any number of further targets (e.g. bluetooth.target)
* Initial wwan pluginGuido Günther2019-08-029-0/+1061
Heavily based on code from nm-applet. Follow-Ups: - Allow to store SIM in keyring - Handle PUKs? (or do that in g-c-c)