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

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

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

Post by DSpider »

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 3954 times
Last edited by DSpider on Thu Feb 02, 2012 10:14 am, edited 2 times in total.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

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

Post by Cas »

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: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

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

Post by Cas »

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

Post by DSpider »

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 3919 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

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

Post by fixt »

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: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

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

Post by Cas »

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