This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Feature request:shut down computer after downloads finished

Tags: None
(comma "," separated)
qubicllj
Registered Member
Posts
1
Karma
0
many windows bittorrent client have this feature
agforsyth
Registered Member
Posts
133
Karma
0

Tue Feb 17, 2009 8:37 pm
You need / should need root privileges to do this.
George
Moderator
Posts
5421
Karma
1

Wed Feb 18, 2009 5:11 pm
phantom042 wrote:You need / should need root privileges to do this.


Seeing that you can shutdown as a normal user with ubuntu via KDE, it should be possible to trigger this somehow.
Segmented
Registered Member
Posts
27
Karma
0

Thu Feb 19, 2009 2:49 am
That's right, you really don't necessarily have to be root, as long as your system is configured to allow non-root users to also shutdown/halt the machine.

http://www.cyberciti.biz/tips/shutdown- ... erver.html
http://www.cyberciti.biz/tips/howto-lin ... erver.html
http://www.patoche.org/LTT/all/00000059.html
http://ubuntuforums.org/showthread.php?t=134968

So, it really boils down to how your system is set up, if you can already shutdown/reboot your machine as a user, you should also be able to do the same via ktorrent.
User avatar
RangerGR
Registered Member
Posts
8
Karma
0
OS

Sat Feb 21, 2009 10:58 am
In KDE you don't need to be a root to be able to shutdown. This is the default options in almost all Linux distributions. For example see how kshutdown works.
If you don't want to mess with shutdown, you can provide the option to exit the program when finished. Then, it will be possible to shutdown with use of a third party program. Again kshutdown (since version 2.0beta3) has the option to shutdown/logout etc when a selected application exit.
da1l6
Registered Member
Posts
11
Karma
0

Sat Feb 21, 2009 2:01 pm
Shutinng down the system from KDE without root previliges works over a dcop/dbus call to KSMServer.

KDE3:
Code: Select all
dcop kdmserver ksmserver logout 0 2 0


KDE4:
Code: Select all
qdbus org.kde.ksmserver /KSMServer logout 0 2 0


I havn't had a look at the ktorrent scripting interface, but it can propably be used to make the needed call.

da1l6
doman18
Registered Member
Posts
3
Karma
0

Tue May 19, 2009 12:09 pm
So does it mean there is no way to get this feature for not advanced user? Shutting down after finishing particular downloading and finishing uploading when "Share" ratio reaches 1.0 or some other number defined by user would be awesome! I start to download files when im going to bed so that feature would be perfect for me.
George
Moderator
Posts
5421
Karma
1

Fri May 22, 2009 9:25 am
doman18 wrote:So does it mean there is no way to get this feature for not advanced user? Shutting down after finishing particular downloading and finishing uploading when "Share" ratio reaches 1.0 or some other number defined by user would be awesome! I start to download files when im going to bed so that feature would be perfect for me.


This is already working in the latest SVN code.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft