mgolden / kdecsms

KDE Commandline SMS
GNU General Public License v3.0
4 stars 1 forks source link

kdecsms

KDE Complete SMS

KDE Command-line SMS

Description

This is a standalone interface program to send SMS messages from a KDE desktop. It fills a need in the KDE space at the moment, because there is no good way to initiate and continue an SMS conversation using kdeconnect.

I am a huge fan of kdeconnect. It is a great tool, and the integration between my desktop and my phone is something I use constantly. And while the plasma widget does a great job informing of inbound SMS messages, and making a single response to them, it doesn't allow multiple responses, since the widget closes after the message is sent. It also doesn't have a way of initiating an SMS thread to someone who hasn't texted you first.

There are a few ways to do this that I am aware of.

What I wanted was a way to open the contact in Cardbook, click on the number, and have the application open with the phone number present.

I couldn't decide whether to call this KDE Complete SMS or KDE Command-line SMS. It's complete because it plugs the hole in the KDE SMS facility. It's command-line so it can be invoked from the commandline, which is key to the Cardbook integration that I wanted.

Thus: kdecsms

This is my first Qt application, so comments or improvements will be welcome. I doubtless did some things in a clucky way.

Installation

Though it is called kdecsms, it actually should be able to run on any desktop so long as the prerequisites are installed.

On Debian, Ubuntu and Mint, running

bash install.sh

should be sufficient. Otherwise, to install it manually, follow these steps:

Of course you'll need Qt itself, but the pyqt5 installation should bring it in if it's not present. I don't know how to do these things on Windows, but there should be instructions somewhere.

To get it to run, just put kdecsms.py somewhere in your path - /usr/local/bin should do nicely. You should be able to remove the .py from the filename if you want, so long as it has x permission.

Setup for Thunderbird/Cardbook

You should see a window ready to send your SMS.

I should add that the explanation of the use of callto links is sort of sparse in the Thunderbird/Cardbook documentation.

Adding to KDE menu

Use

It's all pretty self explanatory, but one subtle point: The message box is greyed out if there is no selected phone, or if there is no To: number in the input box. If you add a phone to the To: box, you will need to hit the Refresh button under the phones to get the message box back. However, if you change the To: number, you don't have to refresh (though it won't hurt, of course).

TODO

Author

License

This may be redistributed under the GPL v2 or GPL v3. (Which are the licenses of kdeconnect itself.) See the LICENSE file for details.