Skip to content

Instantly share code, notes, and snippets.

@PF4Public
PF4Public / polkit-30-minutes.patch
Created November 8, 2019 15:58
Polkit password re-request delay
--- polkit-0.115/src/polkitbackend/polkitbackendinteractiveauthority.c_old 2019-11-07 22:36:24.000000000 +0300
+++ polkit-0.115/src/polkitbackend/polkitbackendinteractiveauthority.c 2019-11-07 22:36:54.000000000 +0300
@@ -3233,7 +3233,7 @@ temporary_authorization_store_add_author
* the local authority could read it from a config file) or a vfunc
* (so the local authority could read it from an annotation on the action).
*/
- expiration_seconds = 5 * 60;
+ expiration_seconds = 30 * 60;
authorization = g_new0 (TemporaryAuthorization, 1);
https://trac.transmissionbt.com/ticket/4537#comment:4
---
diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c
index c79edf5f9..1863215c7 100644
--- a/libtransmission/torrent.c
+++ b/libtransmission/torrent.c
@@ -915,13 +915,27 @@ static bool setLocalErrorIfFilesDisappeared(tr_torrent* tor)
if (disappeared)
{
From 4d8acf64657145c1a36bd5eb9fcb502530b6967d Mon Sep 17 00:00:00 2001
From: Matthias Maennich <[email protected]>
Date: Tue, 24 Sep 2013 23:38:27 +0200
Subject: [PATCH] add option to limit job execution dependant on memory
consumption (-m)
Setting a value in range [0,100] for -m limits starting of new jobs. once
the limit has been exceeded at most one single job is run at a time.
This aims at C++ make projects that run into memory limitations when