add powermanagement and disk utils

This commit is contained in:
Ertuğrul Erata
2015-07-31 10:59:10 +03:00
parent ada4e1ce08
commit 5ddcdd77d9
70 changed files with 3472 additions and 61 deletions
@@ -0,0 +1,8 @@
--- upower-0.9.4.orig/po/LINGUAS
+++ upower-0.9.4/po/LINGUAS
@@ -3,4 +3,4 @@
it
sv
pl
-
+tr
@@ -0,0 +1,34 @@
From b9cff29978113aefe3ad18521f383f12ab099a34 Mon Sep 17 00:00:00 2001
From: Cosimo Cecchi <cosimo@endlessm.com>
Date: Tue, 25 Feb 2014 09:43:04 +0000
Subject: Create the history directory at runtime
In addition to build time - this increases compatibilty with OSTree,
which starts out with an empty /var.
Signed-off-by: Richard Hughes <richard@hughsie.com>
---
diff --git a/src/up-history.c b/src/up-history.c
index f9d0fdf..795b093 100644
--- a/src/up-history.c
+++ b/src/up-history.c
@@ -414,6 +414,7 @@ up_history_set_directory (UpHistory *history, const gchar *dir)
{
g_free (history->priv->dir);
history->priv->dir = g_strdup (dir);
+ g_mkdir_with_parents (dir, 0755);
}
/**
@@ -887,7 +888,8 @@ up_history_init (UpHistory *history)
history->priv->data_time_full = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref);
history->priv->data_time_empty = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref);
history->priv->max_data_age = UP_HISTORY_DEFAULT_MAX_DATA_AGE;
- history->priv->dir = g_build_filename (HISTORY_DIR, NULL);
+
+ up_history_set_directory (history, HISTORY_DIR);
}
/**
--
cgit v0.9.0.2-2-gbebe
@@ -0,0 +1,24 @@
From 0d64bbddaa0078ef148d609a3cfad854cf00d7de Mon Sep 17 00:00:00 2001
From: Martin Pitt <martinpitt@gnome.org>
Date: Fri, 08 Nov 2013 13:59:50 +0000
Subject: lib: Fix segfault on getting property when daemon is not running
This fixes "upower --version" when the daemon is not running, and thus the
client proxy is NULL.
---
diff --git a/libupower-glib/up-client.c b/libupower-glib/up-client.c
index 35d7b5d..17fb02d 100644
--- a/libupower-glib/up-client.c
+++ b/libupower-glib/up-client.c
@@ -322,6 +322,9 @@ up_client_get_property (GObject *object,
UpClient *client;
client = UP_CLIENT (object);
+ if (client->priv->proxy == NULL)
+ return;
+
switch (prop_id) {
case PROP_DAEMON_VERSION:
g_value_set_string (value, up_client_glue_get_daemon_version (client->priv->proxy));
--
cgit v0.9.0.2-2-gbebe
@@ -0,0 +1,93 @@
# Turkish translation for devicekit-power.
# This file is distributed under the same license as the devicekit-power package.
# Ozan Çağlayan <ozan@pardus.org.tr>
#
msgid ""
msgstr ""
"Project-Id-Version: upower\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-09-06 09:41+0200\n"
"PO-Revision-Date: 2010-06-08 10:13+0100\n"
"Last-Translator: Ozan Çağlayan <ozan@pardus.org.tr>\n"
"Language-Team: Turkish <tr@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../policy/org.freedesktop.devicekit.power.policy.in.h:1
msgid "Authentication is required to hibernate the system"
msgstr "Sistemi disk kullanarak askıya almak için yetki gerekiyor"
#: ../policy/org.freedesktop.devicekit.power.policy.in.h:2
msgid "Authentication is required to suspend the system"
msgstr "Sistemi bellek kullanarak askıya almak için yetki gerekiyor"
#: ../policy/org.freedesktop.devicekit.power.policy.in.h:3
msgid "Hibernate the system"
msgstr "Disk kullanarak askıya al"
#: ../policy/org.freedesktop.devicekit.power.policy.in.h:4
msgid "Suspend the system"
msgstr "Bellek kullanarak askıya al"
#: ../policy/org.freedesktop.devicekit.power.qos.policy.in.h:1
msgid "Authentication is required to cancel a latency request"
msgstr "Gecikme isteğinin iptali için yetki gerekiyor"
#: ../policy/org.freedesktop.devicekit.power.qos.policy.in.h:2
msgid "Authentication is required to set a persistent latency setting"
msgstr "Gecikmenin kalıcı olarak ayarlanması için yetki gerekiyor"
#: ../policy/org.freedesktop.devicekit.power.qos.policy.in.h:3
msgid "Authentication is required to set administrator settings for latency control"
msgstr "Gecikme denetimi için yönetimsel ayarların yapılması yetki gerektiriyor"
#: ../policy/org.freedesktop.devicekit.power.qos.policy.in.h:4
msgid "Authentication is required to set the required latency of an application"
msgstr "Uygulamanın gecikmesinin ayarlanması yetki gerektiriyor"
#: ../policy/org.freedesktop.devicekit.power.qos.policy.in.h:5
msgid "Cancel a latency request"
msgstr "Gecikme isteğini iptal et"
#: ../policy/org.freedesktop.devicekit.power.qos.policy.in.h:6
msgid "Set a persistent latency setting"
msgstr "Gecikmeyi kalıcı olarak ayarla"
#: ../policy/org.freedesktop.devicekit.power.qos.policy.in.h:7
msgid "Set administrator settings for latency control"
msgstr "Gecikme denetimi için yönetimsel ayarları yap"
#: ../policy/org.freedesktop.devicekit.power.qos.policy.in.h:8
msgid "Set the required latency of an application"
msgstr "Bir uygulamanın gecikmesini ayarla"
#: ../src/dkp-main.c:134
#: ../tools/dkp-tool.c:213
msgid "Show extra debugging information"
msgstr "Ek hata ayıklama bilgileri göster"
#: ../tools/dkp-tool.c:214
msgid "Enumerate objects paths for devices"
msgstr "Aygıtlar için nesne yollarını sırala"
#: ../tools/dkp-tool.c:215
msgid "Dump all parameters for all objects"
msgstr "Tüm nesneler için parametreleri göster"
#: ../tools/dkp-tool.c:216
msgid "Get the wakeup data"
msgstr "Uyanma verisini al"
#: ../tools/dkp-tool.c:217
msgid "Monitor activity from the power daemon"
msgstr "Güç hizmeti etkinliklerini izle"
#: ../tools/dkp-tool.c:218
msgid "Monitor with detail"
msgstr "Detaylı izleme"
#: ../tools/dkp-tool.c:219
msgid "Show information about object path"
msgstr "Nesne yoluyla ilgili bilgi göster"