KDE Connect links Android with the Plasma desktop
Building Bridges
KDE Connect bridges the gap between mobile devices and the KDE desktop, allowing the exchange of notifications, files, and URLs between devices.
KDE developers have been working for more than a year to extend KDE Plasma to the mobile world. The current project, under the name Plasma Mobile, is geared to provide a free platform for mobile devices some time in the future, thus acting as an alternative to existing platforms [1]. Since Google Summer of Code 2015 (GSoC 015), an application has connected Android and BlackBerry devices with the Plasma desktop and supported some reciprocal functional control.
Spanish developer Albert Vaca aptly dubbed the application KDE Connect [2], which is available for Linux and FreeBSD, with clients for Android and BlackBerry. An iOS version is currently being built, as well. Users can meaningfully connect PCs, notebooks, tablets, and smartphones on the home network. Additionally, extensions for Firefox [3] and Chrome [4] send URLs from the desktop to Android devices. With the kdeconnect-cli
command, you can control KDE Connect in a terminal (Figure 1).
In September 2016, KDE Connect reached version 1.0, which incorporates several important innovations. Most distributions are not packaging this version right now, but that is likely to change in the near future. The associated packages in the archives of the distributions are typically named kdeconnect; for Ubuntu – depending on the version – this is kdeconnect-kde or kdeconnect-plasma. If necessary, you can build the latest 1.0.1 version from source code.
Ubuntu, Linux Mint, and Elementary OS can use KDE Connect with desktop environments like Gnome, Cinnamon, Unity, Maté, Xfce, and LXDE/LXQt. In these cases, you install using the indicator-kdeconnect
personal package archive (PPA) [5].
To install the Android app, go to either F-Droid or the Google Play Store. You need at least Android 4.1 (Jelly Bean) to use all the features. If you have a firewall, you need to open ports 1714 to 1764 for both TCP and UDP. To integrate the data of the mobile device with the desktop file manager, you also need the sshfs package.
Getting Started
After installing KDE Connect on all the devices to be connected, you should launch the Android app. From there you can pair the devices, much like you would using Bluetooth (Figure 2). Instead of Bluetooth, D-Bus, its Media Player Remote Interfacing Specification (MPRIS) [6] interface, and the Avahi Zeroconf implementation [7] connect the devices. The MPRIS interface provides an API for controlling media players, including functions for identifying, querying, and play.
The app offers to ping the respective device to test the connection; then, you can use the three-item menu at top right to enable the desired plugins. On the Plasma desktop, you will want to install the plasmoid for KDE Connect first, so you always have quick access to the application (Figure 3).
Key Features
You can now right-click on the KDE Connect plasmoid to access the configuration on your desktop (Figure 4) and enter the following settings:
- Battery monitor: Display and warn in case of low battery power.
- Receive notifications: Forward notifications on the mobile device to the desktop.
- Remote filesystem browser: Browse the remote file system with SSH Filesystem (SSHFS).
- Pause media during calls: Stop music or movies in case of a call.
- Multimedia control receiver: Remote control for media running on the desktop.
- Telephony integration: Send alerts for calls and text messages to the desktop.
- Share and receive: Send files from the mobile device to the desktop.
- Remote input: Use the smartphone as a touchpad or keyboard for the desktop.
- Clipboard: Share the clipboard with other devices.
In the lab test, I quickly switched off the notifications from the mobile device to the desktop, because the number of messages was annoying.
In version 1.0, KDE Connect saw the introduction of some long-awaited features. For example, you not only see a notification for incoming text messages on the desktop, you can also respond directly; conversely, the mobile device now receives notifications from the desktop. You can also define commands to the desktop, which you can then call from the mobile device. In this way, for example, you could send a notebook to sleep. Security benefits with the switch from RSA keys to TLS for encryption, ensuring that no external devices can hijack the connection.
One of the most popular features includes pausing music or movie applications, such as Amarok (Figure 5), Clementine, VLC, or SMPlayer, when a call comes in on the smartphone. After the end of the call, the respective media continue to run. Integration with a file manager like Dolphin, Nemo, Nautilus, or Thunar is one of the much-used functions. You can use SSHFS to display the contents of the mobile device on the desktop or copy and move (using drag and drop). Dolphin automatically integrates mobile devices (Figure 6); in other file managers, you need to add them manually.
From the file manager, you can send a larger number of images for editing to the desktop quickly. This removes the need for apps like AirDroid [8], and the data does not leave the home network. Sending data, images, or URLs from the mobile device works in the respective share pages in the corresponding applications (Figure 7); transmitted pictures or data are displayed on the desktop and URLs are opened in the browser. The battery indicator on the desktop for the mobile device is very useful, as well.
The exchange of clipboard content keeps the clipboards of all connected devices synchronized in real time. However, the function is dangerous when you are outside the home LAN or a secure network, because the clipboard could contain sensitive data such as passwords that you do not want to share with others (e.g., at the workplace).
Conclusions
KDE Connect is literally addictive. It sets up a secure bridge over the short distance between the Plasma desktop and mobile platforms such as Android, BlackBerry, and iOS. The carefully considered application incorporates several features – especially for the KDE desktop – to which you become accustomed after just a short time. The software is stable and constantly evolving. I can therefore wholeheartedly recommend KDE Connect for the Plasma desktop. Users of other desktop environments have to decide whether they want to accept the many dependencies in the form of KDE packages to access the abundance of features in KDE Connect.
Infos
- Plasma Mobile: https://plasma-mobile.org
- KDE Connect 1.0 announcement: https://albertvaka.wordpress.com
- Firefox: https://kamikazow.wordpress.com/2014/11/22/send-firefox-tabs-to-your-phone-via-kde-connect/
- Chrome: https://chrome.google.com/webstore/detail/jniioigoopmlbeceondbcpgnbimeghhj
- PPA: https://code.launchpad.net/~vikoadi/+archive/ubuntu/ppa/
- MPRIS: https://www.freedesktop.org/wiki/Specifications/mpris-spec/
- Avahi: https://en.wikipedia.org/wiki/Avahi_(software)
- AirDroid: http://web.airdroid.com/
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.
-
XZ Gets the All-Clear
The back door xz vulnerability has been officially reverted for Fedora 40 and versions 38 and 39 were never affected.
-
Canonical Collaborates with Qualcomm on New Venture
This new joint effort is geared toward bringing Ubuntu and Ubuntu Core to Qualcomm-powered devices.
-
Kodi 21.0 Open-Source Entertainment Hub Released
After a year of development, the award-winning Kodi cross-platform, media center software is now available with many new additions and improvements.
-
Linux Usage Increases in Two Key Areas
If market share is your thing, you'll be happy to know that Linux is on the rise in two areas that, if they keep climbing, could have serious meaning for Linux's future.
-
Vulnerability Discovered in xz Libraries
An urgent alert for Fedora 40 has been posted and users should pay attention.
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.