« hitch a ride downtown

Amator Profesionist

posts tagged 'software development'

Note de subsol, scrise de Skee.

fractal

potomp - a minimal UI for deluge written with Qt4

Get potomp v0.2 (sources only) - with CSS stylin’ o’ the progress bars!

Get potomp v0.1 (sources only)

Deluge has a client/server model separating its core from its user interface. potomp connects to a running deluged instance via XML-RPC, gets the current running torrents’ stats and displays a set of progress bars for each torrent. I wrote potomp wanting to brush up on my C++ and in order to familiarize myself with the Qt4 toolkit. It uses the QXML-RPC library by Dmitry Poplavsky to handle communications with the deluge daemon.

potomp

It should run on any system that supports Qt4 (*nix, Windows and Mac OSX), but it’s only been tested on Linux and Windows. And it’s got some issues, either with Windows or with Qt 4.5, because while on my Linux box running Qt 4.4.3 it looks like the screenie above and runs fine, on my Windows box running Qt 4.5 only the first XML-RPC request goes thru, the progress bars don’t update to reflect torrent progress. And also, it looks weird on Windows, as the text isn’t ON the progress bars, but to their right (har har, fixed using CSS, Qt is awesome!)

potomp on windows

I suppose it’s just a styling issue, but I haven’t found a way around it as of yet.

Other issues include an inability to sort the torrents in any way (they’re automatically sorted alnum by infohash) and the fact that the main window won’t extend if you’ve got more torrents running than will fit in the initial window height.

The Console tab looks like this.

How to build and run potomp

  • make sure you’ve got Qt4 installed
  • grab and build the sources
    tar xvf potomp-0.1.tar.gz

    cd potomp

    qmake

    make
  • copy the example config file
    mkdir -p ~/.config/potomp/

    cp example-potomp.ini ~/.config/potomp/potomp.ini
  • edit the config file and fill in your deluged settings
  • run it!
    ./potomp