GithubHelp home page GithubHelp logo

althonos / thunar-torrent-property Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 1.0 264 KB

A small thunar extension displaying the metadata in a torrent file.

License: GNU General Public License v3.0

CMake 5.74% C 69.32% C++ 19.50% Shell 5.44%
thunar thunarx gtk2 torrent libtorrent gtk3

thunar-torrent-property's Introduction

thunar-torrent-property Star me

A small thunar extension displaying the metadata in a torrent file.

GitLabCI License Source Sanity

Features

  • Works with both thunarx-2.0 and thunarx-3.0
  • Fetches the number of seeders / leechers currently available
  • Display a list of tracker URLs
  • Display the files described by the torrent file in a tree-based viewer

Usage

  1. Right Click on a torrent file and open Properties...
  2. Go to the Torrent tab
  3. ???
  4. Profit.

Torrent property page

Installation

Dependencies

Build

  • cmake
  • make or Ninja
  • a C and C++ compiler (at the moment, only gcc is actively supported)

Runtime dependencies

  • gtk+-2.0
  • thunarx (installed with XFCE / Thunar)
  • libtorrent (the rasterbar version), >= 1.1.0
  • Boost/system (required to interface with libtorrent)

Installing dependencies (tested distributions)

ArchLinux
pacman -S base-devel cmake libtorrent-rasterbar thunar gtk2 boost
Ubuntu >= 16.10 (yakkety)
apt install cmake libthunarx-2-dev libgtk2.0-dev \
    libboost-filesystem-dev libboost-system-dev libglib2.0-dev \
    build-essential libssl-dev libtorrent-rasterbar-dev
Ubuntu >= 19.04 (disco)
apt install cmake libthunarx-3-dev libgtk2.0-dev \
    libboost-filesystem-dev libboost-system-dev libglib2.0-dev \
    build-essential libssl-dev libtorrent-rasterbar-dev
Fedora
dnf install gtk+-devel boost-devel cmake gcc Thunar-devel \
    rb_libtorrent-devel make gcc-c++

Building from source

This project uses CMake. Start by creating a directory to do an an out-of-source build:

mkdir build
cd build

By default, the target thunarx version is detected automatically using pkg-config. Set the THUNARX_TARGET_VERSION variable to 2 or 3 to manually select the version to build against.

Ninja
cmake .. -GNinja
ninja
sudo ninja install
Make
cmake ..
make
sudo make install

Both commands will install a single file, thunar-torrent-property.so, in the extensions directory of Thunar (you can check where that directory is running pkg-config --variable=extensionsdir thunarx-X, most of the time it will be /usr/lib/thunarx-X or /lib/thunarx-X) where X is either 2 or 3 depending on your library version.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.