My Little Blog

November 22, 2014

Send Firefox tabs to your phone via KDE Connect

Filed under: Uncategorized — kmi @ 01:30

Even though I criticized Mozilla in the past on my blog, in the end I always returned to Firefox as my main browser, as it the most customizable browser while also (nowadays) very fast and stable.

Today I want to talk about how to marry to KDE Connect, one of the most awesome pieces of technology to come from KDE in recent years.

Everybody who once used KDE Connect is immediately hooked to it. Some say it even was the inspiration for Apple’s Continuity feature.

KDE Connect works both ways but the user interface mostly just exposes sending stuff from your phone to your PC which has been an annoyance for me.
Luckily it is solved now. Today I’ve read about indicator-kdeconnect by Viko Adi Rahmawan (EDIT, September 2016: Looks like the project was abandoned. Albert Vaka, one of KDE Connect’s main developers, forked the project and applied a few fixes recently. You can find it at https://github.com/albertvaka/indicator-kdeconnect).
indicator-kdeconnect is mostly a port of KDE Connect to desktops that use App Indicators, such as Ubuntu Unity. However it also comes with a very handy tool called kdeconnect-send that allows you to do just what I was missing: Send links and files from the PC to the phone.

Sending files is IMO not that important as KDE Connect allows to browse the phone’s file system (at least when the phone is running Android 4.4) but sending the current tab to read it on the go is where the fun is.

To do that you obviously first have to install KDE Connect on both your PC and Android device and then pair your devices.

Then install indicator-kdeconnect. For (K)Ubuntu the necessary steps are outlined here. I packaged the tool for Fedora myself, available here.

The third step is installing Launchy for Firefox.

The fourth and final step is to manually edit launchy.xml. Details how to do that are outlined in Launchy’s Preferences window.
The code you have to add to Launchy is:
<?xml version="1.0" encoding="UTF-8"?>
<configurations xmlns="http://launchy.mozdev.org/configurations">
<application>
<label>KDE Connect</label>
<type>1</type>
<command>/usr/bin/kdeconnect-send</command>
</application>
</configurations>

After you restarted Firefox you should have this button:
Launchy

On Android it then looks like this in the notification drawer:
Screenshot_2014-11-22-01-21-28

Have fun!

PS: I didn’t yet investigate why it’s not building under openSUSE. I send the spec file upstream. If you have a fix, please sent it upstream as well. Also no (Build)Requirements for Mageia are currently in the file. Again: If you have Mageia and want to make this tool available there as well, please send your additions directly upstream.

4 Comments

  1. Awesome! I added a link to this post from the KDE Connect community page: https://community.kde.org/KDEConnect#Installation

    Comment by albertvaka — November 22, 2014 @ 17:24

  2. Hrm… anything like launchy on Chrome?

    Comment by Samuel Sarette — November 24, 2014 @ 03:30

  3. Thanks for linking to my post on TheMukt! It’s one of my favorite posts that I’ve written.

    Comment by Isaac Rowe — November 24, 2014 @ 21:42


RSS feed for comments on this post.

Blog at WordPress.com.