LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-15-2004, 12:45 PM   #1
jackassjim
Member
 
Registered: Jul 2004
Location: Montréal
Distribution: Yoper
Posts: 40

Rep: Reputation: 15
Question 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
 
Old 08-25-2004, 06:45 PM   #2
timmyturtle
LQ Newbie
 
Registered: Aug 2004
Location: Sheffield, UK
Posts: 1

Rep: Reputation: 0
Are you using Konqueror as your browser?
I imagine a little script would be easy to write to do this.
 
Old 08-25-2004, 06:56 PM   #3
jackassjim
Member
 
Registered: Jul 2004
Location: Montréal
Distribution: Yoper
Posts: 40

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a service as a system service Dakkar SUSE / openSUSE 2 07-13-2005 08:36 AM
Problem with running btdownloadcurses SDmac Slackware 8 05-19-2005 09:22 AM
btdownloadheadless.py and btdownloadcurses.py? damienduff Linux - Software 2 04-01-2005 02:29 PM
scripting btdownloadcurses.py astrowill Linux - Software 1 01-13-2005 04:39 PM
/sbin/service is empty every weekend and changed to service.1 LineS Linux - General 0 05-24-2004 03:08 AM


All times are GMT -5. The time now is 02:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration