LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   btdownloadcurses.py + service menus (https://www.linuxquestions.org/questions/linux-newbie-8/btdownloadcurses-py-service-menus-217904/)

jackassjim 08-15-2004 11:45 AM

btdownloadcurses.py + service menus
 
Hi there,
I'm running mdk10 with KDE and here's basically what i want to do:

right-click on a .torrent file and be able to open a konsole and run it with btdownloadcurses.py. Would also be nice if there would be a prompt to ask for --max_upload_rate .

I have tried to figure out how to add service menus with this LINK and have come up with this:

create a .desktop file with this inside:

[Desktop Entry]
Actions=OpenBTfile

[Desktop Action OpenBTfile]
Name=Open Torrent
Icon=/usr/....blah blah/bt.png
Exec=btdownloadcurses.py --max_upload_rate 60 %u


Questons:

1- would it be easier to set up a script (i'm a real newbie and don't have a clue how that would work) to run btdownloadcurses.py --max_upload_rate 60 %u and associate the script with .torrent files so the normal left-clicking would work??

2- If in fact i do run (using one of the above ways) btdownloadcurses.py --max_upload_rate 60 %u, will this leave the konsole window open so that i see the progress or will it run background?

3- Is there an easy way to get prompted for upload speed so that i can throttle the downloads according to how many downloads i'm doing? or should i edit the service menu to put a sub-menu with 3 or so different actions all doing the same thing but with say: 60, 40 and 20 max upload rate?

4- If I would like to use KDocker and dock it all at the same time i open it, I guess i would have to launch the konsole in the Exec line of the .desktop file right? If so the line would look like:
Exec=/bin/konsole <MY COMMANDS HERE>
but how would i separate the commands?? would it be:
/bin/konsole btdownloadcurses.py --max_upload_rate 60 %u ; kdocker konsole

???????????

I'm really crap at all this and would definitely appreciate any help you people can offer me. Thanx a lot!

Vince
Montreal,Canada

timmyturtle 08-25-2004 05:45 PM

Are you using Konqueror as your browser?
I imagine a little script would be easy to write to do this.

jackassjim 08-25-2004 05:56 PM

konqueror in kde 3.2.3
 
Konqueror in kde 3.2.3

that's what i'm using

I guess a simple script would do.. but i'm still not sure how to add to the right-click.. the ones i did didn't work... I downloaded some .desktop files just to see how they were made.. and it looked pretty much like the ones i did.. Anyways.. I guess i can manage.. it shouldn't too hard

Thanx


All times are GMT -5. The time now is 09:42 AM.