I take some time to fix desktop files with desktop-file-validate, so it will be standards compliant.

Thanks

--
Marco Rodrigues

http://Marco.Tondela.org
diff -Nru sbackup-0.10.4/debian/changelog sbackup-0.10.4.1/debian/changelog
--- sbackup-0.10.4/debian/changelog     2007-06-03 14:24:15.000000000 +0100
+++ sbackup-0.10.4.1/debian/changelog   2008-06-12 23:05:34.000000000 +0100
@@ -1,9 +1,20 @@
+sbackup (0.10.4.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Change 'admin' group to 'backup' one (Closes: #427697).
+  * Add 'su-to-root -X' to desktop files (Closes: #479826).
+  * Add 'menu' to Depends and removed 'gksu' and 'sudo'.
+  * Remove 'Encoding=UTF-8' from desktop files.
+  * Fix desktop files acording to desktop-file-validate.
+
+ -- Marco Rodrigues <[EMAIL PROTECTED]>  Thu, 12 Jun 2008 22:39:42 +0100
+
 sbackup (0.10.4) unstable; urgency=low

   * Official release.
   * fix a bug preventing simple-backup-config to resolve anacron monthly
   * Ubuntu Bug #67814 - fixed permission problems with remote backups
-
+
   * gksu is used instead of gksudo (Closes: #327222)
   * Cron job is removed on package purge (Closes: #346097)
   * Should not crash on non-dirs in backup target (Closes: #391948)
diff -Nru sbackup-0.10.4/debian/control sbackup-0.10.4.1/debian/control
--- sbackup-0.10.4/debian/control       2006-10-06 17:44:18.000000000 +0100
+++ sbackup-0.10.4.1/debian/control     2008-06-12 22:56:38.000000000 +0100
@@ -7,7 +7,7 @@

 Package: sbackup
 Architecture: all
-Depends: python, python-gnome2, python-glade2, gksu, sudo
+Depends: python, python-gnome2, python-glade2, menu
 Description: Simple Backup Suite for desktop use
  Simple Backup Suite is a set of backend backup daemon and Gnome
  GUI frontends that provide a simple yet powerful backup
diff -Nru sbackup-0.10.4/debian/menu sbackup-0.10.4.1/debian/menu
--- sbackup-0.10.4/debian/menu  2007-01-25 03:57:48.000000000 +0000
+++ sbackup-0.10.4.1/debian/menu        2008-06-12 22:35:35.000000000 +0100
@@ -1,4 +1,4 @@
 ?package(sbackup):needs="X11" section="Apps/System"\
-  title="Simple Backup Config" command="gksu /usr/sbin/simple-backup-config"
+  title="Simple Backup Config" command="su-to-root -X 
/usr/sbin/simple-backup-config"
 ?package(sbackup):needs="X11" section="Apps/System"\
-  title="Simple Restore" command="gksu /usr/sbin/simple-restore-gnome"
+  title="Simple Restore" command="su-to-root -X /usr/sbin/simple-restore-gnome"
diff -Nru sbackup-0.10.4/sbackup.desktop sbackup-0.10.4.1/sbackup.desktop
--- sbackup-0.10.4/sbackup.desktop      2007-05-08 19:33:59.000000000 +0100
+++ sbackup-0.10.4.1/sbackup.desktop    2008-06-12 23:04:41.000000000 +0100
@@ -1,15 +1,12 @@
 [Desktop Entry]
 Version=1.0
-Encoding=UTF-8
 Name=Simple Backup Config
 Comment=Configuration tool for Simple Backups Suite
-Exec=gksu simple-backup-config
+Exec=su-to-root -X simple-backup-config
 Terminal=false
 Type=Application
-Categories=Application;System;Settings
+Categories=System;Settings;
 StartupNotify=true
-Icon=sbackup-conf.png
+Icon=sbackup-conf
 Name[pt_BR]=Configuração do Backup
 Comment[pt_BR]=Configure como seus backups são feitos
-GenericName[en_GB]=
-GenericName[fr_FR]=
diff -Nru sbackup-0.10.4/sbackupd.py sbackup-0.10.4.1/sbackupd.py
--- sbackup-0.10.4/sbackupd.py  2007-05-13 07:21:34.000000000 +0100
+++ sbackup-0.10.4.1/sbackupd.py        2008-06-12 22:38:07.000000000 +0100
@@ -177,12 +177,12 @@
 # Check our user id
 if os.geteuid() != 0: sys.exit (_("Currently backup is only runnable by root"))

-# [Bug 112540] : Let the admin group have read access to the backup dirs
+# Reverted [Bug 112540] : Let the admin group have read access to the backup 
dirs
 try :
-       # The uid is still root and the gid is admin
-       os.setgid( grp.getgrnam("admin").gr_gid )
+       # The uid is still root and the gid is backup
+       os.setgid( grp.getgrnam("backup").gr_gid )
 except Exception, e:
-       print "W: Failed to set the gid to 'admin' one :" + str(e)
+       print "W: Failed to set the gid to 'backup' one :" + str(e)
        pass

 # second we read the config file, so must check if the user provided one on the
diff -Nru sbackup-0.10.4/srestore.desktop sbackup-0.10.4.1/srestore.desktop
--- sbackup-0.10.4/srestore.desktop     2007-05-08 19:33:59.000000000 +0100
+++ sbackup-0.10.4.1/srestore.desktop   2008-06-12 23:05:08.000000000 +0100
@@ -1,14 +1,12 @@
 [Desktop Entry]
 Version=1.0
-Encoding=UTF-8
 Name=Simple Backup Restore
 Comment=Restore tool for Simple Backups Suite
-Exec=gksu simple-restore-gnome
+Exec=su-to-root -X simple-restore-gnome
 Terminal=false
 Type=Application
-Categories=Application;System;Settings
+Categories=System;Settings;
 StartupNotify=true
-Icon=sbackup-restore.png
+Icon=sbackup-restore
 Name[pt_BR]=Restauração de Backup
 Comment[pt_BR]=Restaure seu backup feito anteriormente
-GenericName[fr_FR]=

Reply via email to