Page 1 of 1
[SOLVED] Shortening '/usr/bin/deluge' in Conky (and top)
Posted: Tue Jan 31, 2012 6:48 pm
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 (1.27 KiB) Viewed 3991 times
Re: Shortening '/usr/bin/deluge' in Conky
Posted: Wed Feb 01, 2012 12:57 pm
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.
Re: Shortening '/usr/bin/deluge' in Conky
Posted: Wed Feb 01, 2012 11:32 pm
by Cas
Re: Shortening '/usr/bin/deluge' in Conky
Posted: Thu Feb 02, 2012 10:06 am
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 (1.12 KiB) Viewed 3956 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?
Re: [SOLVED] Shortening '/usr/bin/deluge' in Conky (and top)
Posted: Sat Jul 08, 2017 11:42 am
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
Re: [SOLVED] Shortening '/usr/bin/deluge' in Conky (and top)
Posted: Sat Jul 08, 2017 5:49 pm
by Cas
You don't need to edit anything it'll work as long as you have setproctitle installed