[SOLVED] Shortening '/usr/bin/deluge' in Conky (and top)

General support for problems installing or using Deluge
DSpider
Member
Member
Posts: 42
Joined: Tue Nov 09, 2010 11:32 am

[SOLVED] Shortening '/usr/bin/deluge' in Conky (and top)

Postby DSpider » Tue Jan 31, 2012 6:48 pm

Is there a way to shorten it to just "deluge"? Firefox, Chromium and everything else looks normal. This is also displayed in top, by the way... Why is that?

PS: I'm using Arch Linux i686 with the latest Conky.

long name.png
long name.png (1.27 KiB) Viewed 1697 times
Last edited by DSpider on Thu Feb 02, 2012 10:14 am, edited 2 times in total.

Cas
Top Bloke
Top Bloke
Posts: 3463
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: Shortening '/usr/bin/deluge' in Conky

Postby Cas » Wed Feb 01, 2012 12:57 pm

It is possible but seemingly Deluge doesn't want to play nice and change that particular process name. If I find the solution I will update with more details.

Cas
Top Bloke
Top Bloke
Posts: 3463
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: Shortening '/usr/bin/deluge' in Conky

Postby Cas » Wed Feb 01, 2012 11:32 pm

https://github.com/cas--/Deluge/compare ... ess_rename

You will need to install python-setproctitle

DSpider
Member
Member
Posts: 42
Joined: Tue Nov 09, 2010 11:32 am

Re: Shortening '/usr/bin/deluge' in Conky

Postby DSpider » Thu Feb 02, 2012 10:06 am

Holy crap, it worked... Thank you!

I installed "python2-setproctitle" from the AUR and I copied the (edited) gtkui.py and ui.py files to their respective folders:

Code: Select all

# Create a backup first (to the user folder)
cp /usr/lib/python2.7/site-packages/deluge/ui/gtkui/gtkui.py ~/gtkui.py.bak
cp /usr/lib/python2.7/site-packages/deluge/ui/ui.py ~/ui.py.bak

# Copy them (from the user folder)
sudo cp ui.py /usr/lib/python2.7/site-packages/deluge/ui/
sudo cp gtkui.py /usr/lib/python2.7/site-packages/deluge/ui/gtkui/

The result:

thank you!.png
thank you!.png (1.12 KiB) Viewed 1662 times

Right now it works with 1.3.3 but I wonder if it would survive a deluge 1.3.x update in the future. Probably... not?

fixt
New User
New User
Posts: 1
Joined: Sat Jul 08, 2017 11:36 am
OS or Distro: Mint 17.3 64bit

Re: [SOLVED] Shortening '/usr/bin/deluge' in Conky (and top)

Postby fixt » Sat Jul 08, 2017 11:42 am

This is cool but the 2 edited python file links of yours are broken (or my mouse hates me lol), can has fixings please?
Cheers

Cas
Top Bloke
Top Bloke
Posts: 3463
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: [SOLVED] Shortening '/usr/bin/deluge' in Conky (and top)

Postby Cas » Sat Jul 08, 2017 5:49 pm

You don't need to edit anything it'll work as long as you have setproctitle installed


Return to “Support”

Who is online

Users browsing this forum: No registered users and 4 guests