From 243cb55dcc6ec1a6e1f68b16b878ac5abd5376af Mon Sep 17 00:00:00 2001
From: guinux <nuxgui@gmail.com>
Date: Wed, 26 Dec 2012 10:27:49 +0100
Subject: [PATCH] last adjustements (hope)

---
 backend/transaction.py    | 2 +-
 data/pamac-update.desktop | 2 +-
 data/pamac.desktop        | 2 +-
 pamac                     | 4 ++--
 pamac-update              | 4 ++--
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/backend/transaction.py b/backend/transaction.py
index 9968ce62..0b7bcff8 100755
--- a/backend/transaction.py
+++ b/backend/transaction.py
@@ -9,7 +9,7 @@ import sys
 from backend import config
 
 interface = Gtk.Builder()
-interface.add_from_file('gui/dialogs.glade')
+interface.add_from_file('/usr/share/gui/dialogs.glade')
 
 ProgressWindow = interface.get_object('ProgressWindow')
 progress_bar = interface.get_object('progressbar2')
diff --git a/data/pamac-update.desktop b/data/pamac-update.desktop
index c81e53e5..ba6f3315 100644
--- a/data/pamac-update.desktop
+++ b/data/pamac-update.desktop
@@ -127,7 +127,7 @@ Comment[zh_CN]=更新本系统中安装的软件
 Comment[zh_HK]=更新系統中已安裝的軟件
 Comment[zh_TW]=更新系統中已安裝的軟體
 Icon=system-software-update
-Exec=pamac-update
+Exec=gksu pamac-update
 Terminal=false
 Type=Application
 Categories=GNOME;GTK;System;
diff --git a/data/pamac.desktop b/data/pamac.desktop
index c9cbb98c..b72a7eab 100644
--- a/data/pamac.desktop
+++ b/data/pamac.desktop
@@ -131,7 +131,7 @@ Comment[zh_CN]=添加或删除系统中安装的软件
 Comment[zh_HK]=加入或移除系統上安裝的軟件
 Comment[zh_TW]=加入或移除系統上安裝的軟體
 Icon=system-software-install
-Exec=pamac
+Exec=gksu pamac
 Terminal=false
 Type=Application
 Categories=GNOME;GTK;System;
diff --git a/pamac b/pamac
index 6ea3ebf6..e069222d 100755
--- a/pamac
+++ b/pamac
@@ -12,8 +12,8 @@ import traceback
 from backend import transaction, config
 
 interface = Gtk.Builder()
-interface.add_from_file('gui/pamac.glade')
-interface.add_from_file('gui/dialogs.glade')
+interface.add_from_file('/usr/share/gui/pamac.glade')
+interface.add_from_file('/usr/share/gui/dialogs.glade')
 
 packages_list = interface.get_object('packages_list')
 groups_list = interface.get_object('groups_list')
diff --git a/pamac-update b/pamac-update
index 79275035..562c6bb1 100755
--- a/pamac-update
+++ b/pamac-update
@@ -9,8 +9,8 @@ from os import geteuid
 from backend import transaction
 
 interface = Gtk.Builder()
-interface.add_from_file('gui/pamac_update.glade')
-interface.add_from_file('gui/dialogs.glade')
+interface.add_from_file('/usr/share/gui/pamac_update.glade')
+interface.add_from_file('/usr/share/gui/dialogs.glade')
 
 update_listore = interface.get_object('update_list')
 top_label = interface.get_object('top_label')
-- 
GitLab