[arch-commits] Commit in exo/repos (16 files)
Evangelos Foutras
foutrelis at archlinux.org
Sun Mar 22 16:46:29 UTC 2015
Date: Sunday, March 22, 2015 @ 17:46:29
Author: foutrelis
Revision: 234474
archrelease: copy trunk to extra-i686, extra-x86_64
Added:
exo/repos/extra-i686/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch
(from rev 234473, exo/trunk/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch)
exo/repos/extra-i686/0001-Fix-StartupNotify-Bug-9570-thanks-Thaddaeus.patch
(from rev 234473, exo/trunk/0001-Fix-StartupNotify-Bug-9570-thanks-Thaddaeus.patch)
exo/repos/extra-i686/0001-Fix-implicit-declaration-of-function-xfce_spawn_on_s.patch
(from rev 234473, exo/trunk/0001-Fix-implicit-declaration-of-function-xfce_spawn_on_s.patch)
exo/repos/extra-i686/PKGBUILD
(from rev 234473, exo/trunk/PKGBUILD)
exo/repos/extra-i686/exo.install
(from rev 234473, exo/trunk/exo.install)
exo/repos/extra-x86_64/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch
(from rev 234473, exo/trunk/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch)
exo/repos/extra-x86_64/0001-Fix-StartupNotify-Bug-9570-thanks-Thaddaeus.patch
(from rev 234473, exo/trunk/0001-Fix-StartupNotify-Bug-9570-thanks-Thaddaeus.patch)
exo/repos/extra-x86_64/0001-Fix-implicit-declaration-of-function-xfce_spawn_on_s.patch
(from rev 234473, exo/trunk/0001-Fix-implicit-declaration-of-function-xfce_spawn_on_s.patch)
exo/repos/extra-x86_64/PKGBUILD
(from rev 234473, exo/trunk/PKGBUILD)
exo/repos/extra-x86_64/exo.install
(from rev 234473, exo/trunk/exo.install)
Deleted:
exo/repos/extra-i686/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch
exo/repos/extra-i686/PKGBUILD
exo/repos/extra-i686/exo.install
exo/repos/extra-x86_64/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch
exo/repos/extra-x86_64/PKGBUILD
exo/repos/extra-x86_64/exo.install
------------------------------------------------------------------------------+
/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch | 48 ++++
/PKGBUILD | 118 ++++++++++
/exo.install | 26 ++
extra-i686/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch | 24 --
extra-i686/0001-Fix-StartupNotify-Bug-9570-thanks-Thaddaeus.patch | 87 +++++++
extra-i686/0001-Fix-implicit-declaration-of-function-xfce_spawn_on_s.patch | 44 +++
extra-i686/PKGBUILD | 49 ----
extra-i686/exo.install | 13 -
extra-x86_64/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch | 24 --
extra-x86_64/0001-Fix-StartupNotify-Bug-9570-thanks-Thaddaeus.patch | 87 +++++++
extra-x86_64/0001-Fix-implicit-declaration-of-function-xfce_spawn_on_s.patch | 44 +++
extra-x86_64/PKGBUILD | 49 ----
extra-x86_64/exo.install | 13 -
13 files changed, 454 insertions(+), 172 deletions(-)
Deleted: extra-i686/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch
===================================================================
--- extra-i686/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch 2015-03-22 16:46:06 UTC (rev 234473)
+++ extra-i686/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch 2015-03-22 16:46:29 UTC (rev 234474)
@@ -1,24 +0,0 @@
-From b74caf97642ae2bf00a7754a5fb193f695b6f3d4 Mon Sep 17 00:00:00 2001
-From: Sean Davis <smd.seandavis at gmail.com>
-Date: Tue, 17 Mar 2015 19:43:44 -0400
-Subject: [PATCH] Do not use x-scheme-handler/file mimetype (bug 7257)
-
----
- exo-open/exo-file-manager.desktop.in | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/exo-open/exo-file-manager.desktop.in b/exo-open/exo-file-manager.desktop.in
-index 3d7653e..8d0a6cf 100644
---- a/exo-open/exo-file-manager.desktop.in
-+++ b/exo-open/exo-file-manager.desktop.in
-@@ -7,6 +7,6 @@ StartupNotify=true
- Terminal=false
- Categories=Utility;X-XFCE;X-Xfce-Toplevel;
- OnlyShowIn=XFCE;
--X-XFCE-MimeType=x-scheme-handler/file;x-scheme-handler/trash;
-+X-XFCE-MimeType=inode/directory;x-scheme-handler/trash;
- _Name=File Manager
- _Comment=Browse the file system
---
-2.3.3
-
Copied: exo/repos/extra-i686/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch (from rev 234473, exo/trunk/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch)
===================================================================
--- extra-i686/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch (rev 0)
+++ extra-i686/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch 2015-03-22 16:46:29 UTC (rev 234474)
@@ -0,0 +1,24 @@
+From b74caf97642ae2bf00a7754a5fb193f695b6f3d4 Mon Sep 17 00:00:00 2001
+From: Sean Davis <smd.seandavis at gmail.com>
+Date: Tue, 17 Mar 2015 19:43:44 -0400
+Subject: [PATCH] Do not use x-scheme-handler/file mimetype (bug 7257)
+
+---
+ exo-open/exo-file-manager.desktop.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/exo-open/exo-file-manager.desktop.in b/exo-open/exo-file-manager.desktop.in
+index 3d7653e..8d0a6cf 100644
+--- a/exo-open/exo-file-manager.desktop.in
++++ b/exo-open/exo-file-manager.desktop.in
+@@ -7,6 +7,6 @@ StartupNotify=true
+ Terminal=false
+ Categories=Utility;X-XFCE;X-Xfce-Toplevel;
+ OnlyShowIn=XFCE;
+-X-XFCE-MimeType=x-scheme-handler/file;x-scheme-handler/trash;
++X-XFCE-MimeType=inode/directory;x-scheme-handler/trash;
+ _Name=File Manager
+ _Comment=Browse the file system
+--
+2.3.3
+
Copied: exo/repos/extra-i686/0001-Fix-StartupNotify-Bug-9570-thanks-Thaddaeus.patch (from rev 234473, exo/trunk/0001-Fix-StartupNotify-Bug-9570-thanks-Thaddaeus.patch)
===================================================================
--- extra-i686/0001-Fix-StartupNotify-Bug-9570-thanks-Thaddaeus.patch (rev 0)
+++ extra-i686/0001-Fix-StartupNotify-Bug-9570-thanks-Thaddaeus.patch 2015-03-22 16:46:29 UTC (rev 234474)
@@ -0,0 +1,87 @@
+From 3a2c05bd68f924f5c8bd530a2fe8f4cc5b671b16 Mon Sep 17 00:00:00 2001
+From: Sean Davis <smd.seandavis at gmail.com>
+Date: Thu, 5 Mar 2015 15:55:59 -0500
+Subject: [PATCH] Fix StartupNotify (Bug 9570, thanks Thaddaeus)
+
+---
+ exo-helper/exo-helper.c | 52 +++----------------------------------------------
+ 1 file changed, 3 insertions(+), 49 deletions(-)
+
+diff --git a/exo-helper/exo-helper.c b/exo-helper/exo-helper.c
+index 37d8901..aba3749 100644
+--- a/exo-helper/exo-helper.c
++++ b/exo-helper/exo-helper.c
+@@ -359,8 +359,6 @@ exo_helper_execute (ExoHelper *helper,
+ gint pid;
+ const gchar *real_parameter = parameter;
+
+- // FIXME: startup-notification
+-
+ g_return_val_if_fail (EXO_IS_HELPER (helper), FALSE);
+ g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
+ g_return_val_if_fail (screen == NULL || GDK_IS_SCREEN (screen), FALSE);
+@@ -399,58 +397,14 @@ exo_helper_execute (ExoHelper *helper,
+ continue;
+
+ /* try to run the command */
+- succeed = gdk_spawn_on_screen (screen, NULL, argv, NULL, G_SPAWN_DO_NOT_REAP_CHILD | G_SPAWN_SEARCH_PATH, NULL, NULL, &pid, &err);
++ succeed = xfce_spawn_on_screen (screen, NULL, argv, NULL, G_SPAWN_SEARCH_PATH, helper->startup_notify, gtk_get_current_event_time (), NULL, &err);
+
+ /* cleanup */
+ g_strfreev (argv);
+
+- /* check if the execution was successful */
++ /* check if we should retry with the next command */
+ if (G_LIKELY (succeed))
+- {
+- /* determine the current time */
+- g_get_current_time (&previous);
+-
+- /* wait up to 5 seconds to see whether the command worked */
+- for (;;)
+- {
+- /* check if the command exited with an error */
+- result = waitpid (pid, &status, WNOHANG);
+- if (result < 0)
+- {
+- /* something weird happened */
+- err = g_error_new_literal (G_FILE_ERROR, g_file_error_from_errno (errno), g_strerror (errno));
+- succeed = FALSE;
+- break;
+- }
+- else if (result > 0 && status != 0)
+- {
+- /* the command failed */
+- err = g_error_new_literal (G_FILE_ERROR, g_file_error_from_errno (EIO), g_strerror (EIO));
+- succeed = FALSE;
+- break;
+- }
+- else if (result == pid)
+- {
+- /* the command succeed */
+- succeed = TRUE;
+- break;
+- }
+-
+- /* determine the current time */
+- g_get_current_time (¤t);
+-
+- /* check if the command is still running after 5 seconds (which indicates that the command worked) */
+- if (((current.tv_sec - previous.tv_sec) * 1000ll + (current.tv_usec - previous.tv_usec) / 1000ll) > 5000ll)
+- break;
+-
+- /* wait some time */
+- g_usleep (50 * 1000);
+- }
+-
+- /* check if we should retry with the next command */
+- if (G_LIKELY (succeed))
+- break;
+- }
++ break;
+ }
+
+ /* propagate the error */
+--
+2.3.3
+
Copied: exo/repos/extra-i686/0001-Fix-implicit-declaration-of-function-xfce_spawn_on_s.patch (from rev 234473, exo/trunk/0001-Fix-implicit-declaration-of-function-xfce_spawn_on_s.patch)
===================================================================
--- extra-i686/0001-Fix-implicit-declaration-of-function-xfce_spawn_on_s.patch (rev 0)
+++ extra-i686/0001-Fix-implicit-declaration-of-function-xfce_spawn_on_s.patch 2015-03-22 16:46:29 UTC (rev 234474)
@@ -0,0 +1,44 @@
+From 4e68afc085d23bd77cf94e0e8e2e1435f0b4ebaa Mon Sep 17 00:00:00 2001
+From: Matt Thirtytwo <matt.59491 at gmail.com>
+Date: Sat, 7 Mar 2015 22:23:45 +0100
+Subject: [PATCH] Fix implicit declaration of function 'xfce_spawn_on_screen'
+ (bug #11655)
+
+Also fix a few unused variable warnings.
+---
+ exo-helper/exo-helper.c | 6 +-----
+ 1 file changed, 1 insertion(+), 5 deletions(-)
+
+diff --git a/exo-helper/exo-helper.c b/exo-helper/exo-helper.c
+index aba3749..6931347 100644
+--- a/exo-helper/exo-helper.c
++++ b/exo-helper/exo-helper.c
+@@ -43,6 +43,7 @@
+ #include <unistd.h>
+ #endif
+
++#include <libxfce4ui/libxfce4ui.h>
+ #include <exo-helper/exo-helper.h>
+ #include <exo-helper/exo-helper-utils.h>
+
+@@ -346,17 +347,12 @@ exo_helper_execute (ExoHelper *helper,
+ const gchar *parameter,
+ GError **error)
+ {
+- GTimeVal previous;
+- GTimeVal current;
+ gboolean succeed = FALSE;
+ GError *err = NULL;
+ gchar **commands;
+ gchar **argv;
+ gchar *command;
+ guint n;
+- gint status;
+- gint result;
+- gint pid;
+ const gchar *real_parameter = parameter;
+
+ g_return_val_if_fail (EXO_IS_HELPER (helper), FALSE);
+--
+2.3.3
+
Deleted: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD 2015-03-22 16:46:06 UTC (rev 234473)
+++ extra-i686/PKGBUILD 2015-03-22 16:46:29 UTC (rev 234474)
@@ -1,49 +0,0 @@
-# $Id$
-# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
-# Contributor: tobias <tobias funnychar archlinux.org>
-# Contributor: Aurelien Foret <orelien at chez.com>
-
-pkgname=exo
-pkgver=0.10.4
-pkgrel=1
-pkgdesc="Extensions to Xfce by os-cillation"
-arch=('i686' 'x86_64')
-url="http://www.xfce.org/"
-license=('GPL2' 'LGPL')
-groups=('xfce4')
-depends=('libxfce4ui' 'gtk2' 'hicolor-icon-theme' )
-makedepends=('perl-uri' 'intltool' 'gtk-doc')
-optdepends=('perl-uri: for mail-compose helper script')
-install=$pkgname.install
-source=(http://archive.xfce.org/src/xfce/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
- 0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch)
-sha256sums=('cced5fdbc0b61a5d976210ff71ecdd81b89fcd15e5860a44f50da7b83fb2deaa'
- 'c88e796ae965db83ec340a1530dbcc48aab39062b7499bf7834cf3459555bdb9')
-
-prepare() {
- cd "$srcdir/$pkgname-$pkgver"
-
- # https://bugzilla.xfce.org/show_bug.cgi?id=7257
- patch -Np1 -i ../0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch
-}
-
-build() {
- cd "$srcdir/$pkgname-$pkgver"
-
- ./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --libexecdir=/usr/lib/xfce4 \
- --localstatedir=/var \
- --disable-static \
- --enable-gtk-doc \
- --disable-debug
- make
-}
-
-package() {
- cd "$srcdir/$pkgname-$pkgver"
- make DESTDIR="$pkgdir" install
-}
-
-# vim:set ts=2 sw=2 et:
Copied: exo/repos/extra-i686/PKGBUILD (from rev 234473, exo/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2015-03-22 16:46:29 UTC (rev 234474)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+# Contributor: tobias <tobias funnychar archlinux.org>
+# Contributor: Aurelien Foret <orelien at chez.com>
+
+pkgname=exo
+pkgver=0.10.4
+pkgrel=2
+pkgdesc="Extensions to Xfce by os-cillation"
+arch=('i686' 'x86_64')
+url="http://www.xfce.org/"
+license=('GPL2' 'LGPL')
+groups=('xfce4')
+depends=('libxfce4ui' 'gtk2' 'hicolor-icon-theme' )
+makedepends=('perl-uri' 'intltool' 'gtk-doc')
+optdepends=('perl-uri: for mail-compose helper script')
+install=$pkgname.install
+source=(http://archive.xfce.org/src/xfce/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
+ 0001-Fix-StartupNotify-Bug-9570-thanks-Thaddaeus.patch
+ 0001-Fix-implicit-declaration-of-function-xfce_spawn_on_s.patch
+ 0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch)
+sha256sums=('cced5fdbc0b61a5d976210ff71ecdd81b89fcd15e5860a44f50da7b83fb2deaa'
+ 'a8f8970b4abd2b8306f402208ddea96088fdc2a804502429ba17aac65cac127d'
+ 'cf5f87b3a0d7bf480434f76133473171d36fdcec3cdf79ffcdc6b673b09eb9c8'
+ 'c88e796ae965db83ec340a1530dbcc48aab39062b7499bf7834cf3459555bdb9')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # Revert startup notification support; prevents some applications started by
+ # exo-helper to receive focus (FS#44282)
+ # https://bugzilla.xfce.org/show_bug.cgi?id=9570#c18
+ patch -Rp1 -i ../0001-Fix-implicit-declaration-of-function-xfce_spawn_on_s.patch
+ patch -Rp1 -i ../0001-Fix-StartupNotify-Bug-9570-thanks-Thaddaeus.patch
+
+ # https://bugzilla.xfce.org/show_bug.cgi?id=7257
+ patch -Np1 -i ../0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib/xfce4 \
+ --localstatedir=/var \
+ --disable-static \
+ --enable-gtk-doc \
+ --disable-debug
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+}
+
+# vim:set ts=2 sw=2 et:
Deleted: extra-i686/exo.install
===================================================================
--- extra-i686/exo.install 2015-03-22 16:46:06 UTC (rev 234473)
+++ extra-i686/exo.install 2015-03-22 16:46:29 UTC (rev 234474)
@@ -1,13 +0,0 @@
-post_install() {
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}
-
-# vim:set ts=2 sw=2 et:
Copied: exo/repos/extra-i686/exo.install (from rev 234473, exo/trunk/exo.install)
===================================================================
--- extra-i686/exo.install (rev 0)
+++ extra-i686/exo.install 2015-03-22 16:46:29 UTC (rev 234474)
@@ -0,0 +1,13 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
+
+# vim:set ts=2 sw=2 et:
Deleted: extra-x86_64/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch
===================================================================
--- extra-x86_64/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch 2015-03-22 16:46:06 UTC (rev 234473)
+++ extra-x86_64/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch 2015-03-22 16:46:29 UTC (rev 234474)
@@ -1,24 +0,0 @@
-From b74caf97642ae2bf00a7754a5fb193f695b6f3d4 Mon Sep 17 00:00:00 2001
-From: Sean Davis <smd.seandavis at gmail.com>
-Date: Tue, 17 Mar 2015 19:43:44 -0400
-Subject: [PATCH] Do not use x-scheme-handler/file mimetype (bug 7257)
-
----
- exo-open/exo-file-manager.desktop.in | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/exo-open/exo-file-manager.desktop.in b/exo-open/exo-file-manager.desktop.in
-index 3d7653e..8d0a6cf 100644
---- a/exo-open/exo-file-manager.desktop.in
-+++ b/exo-open/exo-file-manager.desktop.in
-@@ -7,6 +7,6 @@ StartupNotify=true
- Terminal=false
- Categories=Utility;X-XFCE;X-Xfce-Toplevel;
- OnlyShowIn=XFCE;
--X-XFCE-MimeType=x-scheme-handler/file;x-scheme-handler/trash;
-+X-XFCE-MimeType=inode/directory;x-scheme-handler/trash;
- _Name=File Manager
- _Comment=Browse the file system
---
-2.3.3
-
Copied: exo/repos/extra-x86_64/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch (from rev 234473, exo/trunk/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch)
===================================================================
--- extra-x86_64/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch (rev 0)
+++ extra-x86_64/0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch 2015-03-22 16:46:29 UTC (rev 234474)
@@ -0,0 +1,24 @@
+From b74caf97642ae2bf00a7754a5fb193f695b6f3d4 Mon Sep 17 00:00:00 2001
+From: Sean Davis <smd.seandavis at gmail.com>
+Date: Tue, 17 Mar 2015 19:43:44 -0400
+Subject: [PATCH] Do not use x-scheme-handler/file mimetype (bug 7257)
+
+---
+ exo-open/exo-file-manager.desktop.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/exo-open/exo-file-manager.desktop.in b/exo-open/exo-file-manager.desktop.in
+index 3d7653e..8d0a6cf 100644
+--- a/exo-open/exo-file-manager.desktop.in
++++ b/exo-open/exo-file-manager.desktop.in
+@@ -7,6 +7,6 @@ StartupNotify=true
+ Terminal=false
+ Categories=Utility;X-XFCE;X-Xfce-Toplevel;
+ OnlyShowIn=XFCE;
+-X-XFCE-MimeType=x-scheme-handler/file;x-scheme-handler/trash;
++X-XFCE-MimeType=inode/directory;x-scheme-handler/trash;
+ _Name=File Manager
+ _Comment=Browse the file system
+--
+2.3.3
+
Copied: exo/repos/extra-x86_64/0001-Fix-StartupNotify-Bug-9570-thanks-Thaddaeus.patch (from rev 234473, exo/trunk/0001-Fix-StartupNotify-Bug-9570-thanks-Thaddaeus.patch)
===================================================================
--- extra-x86_64/0001-Fix-StartupNotify-Bug-9570-thanks-Thaddaeus.patch (rev 0)
+++ extra-x86_64/0001-Fix-StartupNotify-Bug-9570-thanks-Thaddaeus.patch 2015-03-22 16:46:29 UTC (rev 234474)
@@ -0,0 +1,87 @@
+From 3a2c05bd68f924f5c8bd530a2fe8f4cc5b671b16 Mon Sep 17 00:00:00 2001
+From: Sean Davis <smd.seandavis at gmail.com>
+Date: Thu, 5 Mar 2015 15:55:59 -0500
+Subject: [PATCH] Fix StartupNotify (Bug 9570, thanks Thaddaeus)
+
+---
+ exo-helper/exo-helper.c | 52 +++----------------------------------------------
+ 1 file changed, 3 insertions(+), 49 deletions(-)
+
+diff --git a/exo-helper/exo-helper.c b/exo-helper/exo-helper.c
+index 37d8901..aba3749 100644
+--- a/exo-helper/exo-helper.c
++++ b/exo-helper/exo-helper.c
+@@ -359,8 +359,6 @@ exo_helper_execute (ExoHelper *helper,
+ gint pid;
+ const gchar *real_parameter = parameter;
+
+- // FIXME: startup-notification
+-
+ g_return_val_if_fail (EXO_IS_HELPER (helper), FALSE);
+ g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
+ g_return_val_if_fail (screen == NULL || GDK_IS_SCREEN (screen), FALSE);
+@@ -399,58 +397,14 @@ exo_helper_execute (ExoHelper *helper,
+ continue;
+
+ /* try to run the command */
+- succeed = gdk_spawn_on_screen (screen, NULL, argv, NULL, G_SPAWN_DO_NOT_REAP_CHILD | G_SPAWN_SEARCH_PATH, NULL, NULL, &pid, &err);
++ succeed = xfce_spawn_on_screen (screen, NULL, argv, NULL, G_SPAWN_SEARCH_PATH, helper->startup_notify, gtk_get_current_event_time (), NULL, &err);
+
+ /* cleanup */
+ g_strfreev (argv);
+
+- /* check if the execution was successful */
++ /* check if we should retry with the next command */
+ if (G_LIKELY (succeed))
+- {
+- /* determine the current time */
+- g_get_current_time (&previous);
+-
+- /* wait up to 5 seconds to see whether the command worked */
+- for (;;)
+- {
+- /* check if the command exited with an error */
+- result = waitpid (pid, &status, WNOHANG);
+- if (result < 0)
+- {
+- /* something weird happened */
+- err = g_error_new_literal (G_FILE_ERROR, g_file_error_from_errno (errno), g_strerror (errno));
+- succeed = FALSE;
+- break;
+- }
+- else if (result > 0 && status != 0)
+- {
+- /* the command failed */
+- err = g_error_new_literal (G_FILE_ERROR, g_file_error_from_errno (EIO), g_strerror (EIO));
+- succeed = FALSE;
+- break;
+- }
+- else if (result == pid)
+- {
+- /* the command succeed */
+- succeed = TRUE;
+- break;
+- }
+-
+- /* determine the current time */
+- g_get_current_time (¤t);
+-
+- /* check if the command is still running after 5 seconds (which indicates that the command worked) */
+- if (((current.tv_sec - previous.tv_sec) * 1000ll + (current.tv_usec - previous.tv_usec) / 1000ll) > 5000ll)
+- break;
+-
+- /* wait some time */
+- g_usleep (50 * 1000);
+- }
+-
+- /* check if we should retry with the next command */
+- if (G_LIKELY (succeed))
+- break;
+- }
++ break;
+ }
+
+ /* propagate the error */
+--
+2.3.3
+
Copied: exo/repos/extra-x86_64/0001-Fix-implicit-declaration-of-function-xfce_spawn_on_s.patch (from rev 234473, exo/trunk/0001-Fix-implicit-declaration-of-function-xfce_spawn_on_s.patch)
===================================================================
--- extra-x86_64/0001-Fix-implicit-declaration-of-function-xfce_spawn_on_s.patch (rev 0)
+++ extra-x86_64/0001-Fix-implicit-declaration-of-function-xfce_spawn_on_s.patch 2015-03-22 16:46:29 UTC (rev 234474)
@@ -0,0 +1,44 @@
+From 4e68afc085d23bd77cf94e0e8e2e1435f0b4ebaa Mon Sep 17 00:00:00 2001
+From: Matt Thirtytwo <matt.59491 at gmail.com>
+Date: Sat, 7 Mar 2015 22:23:45 +0100
+Subject: [PATCH] Fix implicit declaration of function 'xfce_spawn_on_screen'
+ (bug #11655)
+
+Also fix a few unused variable warnings.
+---
+ exo-helper/exo-helper.c | 6 +-----
+ 1 file changed, 1 insertion(+), 5 deletions(-)
+
+diff --git a/exo-helper/exo-helper.c b/exo-helper/exo-helper.c
+index aba3749..6931347 100644
+--- a/exo-helper/exo-helper.c
++++ b/exo-helper/exo-helper.c
+@@ -43,6 +43,7 @@
+ #include <unistd.h>
+ #endif
+
++#include <libxfce4ui/libxfce4ui.h>
+ #include <exo-helper/exo-helper.h>
+ #include <exo-helper/exo-helper-utils.h>
+
+@@ -346,17 +347,12 @@ exo_helper_execute (ExoHelper *helper,
+ const gchar *parameter,
+ GError **error)
+ {
+- GTimeVal previous;
+- GTimeVal current;
+ gboolean succeed = FALSE;
+ GError *err = NULL;
+ gchar **commands;
+ gchar **argv;
+ gchar *command;
+ guint n;
+- gint status;
+- gint result;
+- gint pid;
+ const gchar *real_parameter = parameter;
+
+ g_return_val_if_fail (EXO_IS_HELPER (helper), FALSE);
+--
+2.3.3
+
Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD 2015-03-22 16:46:06 UTC (rev 234473)
+++ extra-x86_64/PKGBUILD 2015-03-22 16:46:29 UTC (rev 234474)
@@ -1,49 +0,0 @@
-# $Id$
-# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
-# Contributor: tobias <tobias funnychar archlinux.org>
-# Contributor: Aurelien Foret <orelien at chez.com>
-
-pkgname=exo
-pkgver=0.10.4
-pkgrel=1
-pkgdesc="Extensions to Xfce by os-cillation"
-arch=('i686' 'x86_64')
-url="http://www.xfce.org/"
-license=('GPL2' 'LGPL')
-groups=('xfce4')
-depends=('libxfce4ui' 'gtk2' 'hicolor-icon-theme' )
-makedepends=('perl-uri' 'intltool' 'gtk-doc')
-optdepends=('perl-uri: for mail-compose helper script')
-install=$pkgname.install
-source=(http://archive.xfce.org/src/xfce/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
- 0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch)
-sha256sums=('cced5fdbc0b61a5d976210ff71ecdd81b89fcd15e5860a44f50da7b83fb2deaa'
- 'c88e796ae965db83ec340a1530dbcc48aab39062b7499bf7834cf3459555bdb9')
-
-prepare() {
- cd "$srcdir/$pkgname-$pkgver"
-
- # https://bugzilla.xfce.org/show_bug.cgi?id=7257
- patch -Np1 -i ../0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch
-}
-
-build() {
- cd "$srcdir/$pkgname-$pkgver"
-
- ./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --libexecdir=/usr/lib/xfce4 \
- --localstatedir=/var \
- --disable-static \
- --enable-gtk-doc \
- --disable-debug
- make
-}
-
-package() {
- cd "$srcdir/$pkgname-$pkgver"
- make DESTDIR="$pkgdir" install
-}
-
-# vim:set ts=2 sw=2 et:
Copied: exo/repos/extra-x86_64/PKGBUILD (from rev 234473, exo/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD (rev 0)
+++ extra-x86_64/PKGBUILD 2015-03-22 16:46:29 UTC (rev 234474)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+# Contributor: tobias <tobias funnychar archlinux.org>
+# Contributor: Aurelien Foret <orelien at chez.com>
+
+pkgname=exo
+pkgver=0.10.4
+pkgrel=2
+pkgdesc="Extensions to Xfce by os-cillation"
+arch=('i686' 'x86_64')
+url="http://www.xfce.org/"
+license=('GPL2' 'LGPL')
+groups=('xfce4')
+depends=('libxfce4ui' 'gtk2' 'hicolor-icon-theme' )
+makedepends=('perl-uri' 'intltool' 'gtk-doc')
+optdepends=('perl-uri: for mail-compose helper script')
+install=$pkgname.install
+source=(http://archive.xfce.org/src/xfce/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
+ 0001-Fix-StartupNotify-Bug-9570-thanks-Thaddaeus.patch
+ 0001-Fix-implicit-declaration-of-function-xfce_spawn_on_s.patch
+ 0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch)
+sha256sums=('cced5fdbc0b61a5d976210ff71ecdd81b89fcd15e5860a44f50da7b83fb2deaa'
+ 'a8f8970b4abd2b8306f402208ddea96088fdc2a804502429ba17aac65cac127d'
+ 'cf5f87b3a0d7bf480434f76133473171d36fdcec3cdf79ffcdc6b673b09eb9c8'
+ 'c88e796ae965db83ec340a1530dbcc48aab39062b7499bf7834cf3459555bdb9')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # Revert startup notification support; prevents some applications started by
+ # exo-helper to receive focus (FS#44282)
+ # https://bugzilla.xfce.org/show_bug.cgi?id=9570#c18
+ patch -Rp1 -i ../0001-Fix-implicit-declaration-of-function-xfce_spawn_on_s.patch
+ patch -Rp1 -i ../0001-Fix-StartupNotify-Bug-9570-thanks-Thaddaeus.patch
+
+ # https://bugzilla.xfce.org/show_bug.cgi?id=7257
+ patch -Np1 -i ../0001-Do-not-use-x-scheme-handler-file-mimetype-bug-7257.patch
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib/xfce4 \
+ --localstatedir=/var \
+ --disable-static \
+ --enable-gtk-doc \
+ --disable-debug
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+}
+
+# vim:set ts=2 sw=2 et:
Deleted: extra-x86_64/exo.install
===================================================================
--- extra-x86_64/exo.install 2015-03-22 16:46:06 UTC (rev 234473)
+++ extra-x86_64/exo.install 2015-03-22 16:46:29 UTC (rev 234474)
@@ -1,13 +0,0 @@
-post_install() {
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}
-
-# vim:set ts=2 sw=2 et:
Copied: exo/repos/extra-x86_64/exo.install (from rev 234473, exo/trunk/exo.install)
===================================================================
--- extra-x86_64/exo.install (rev 0)
+++ extra-x86_64/exo.install 2015-03-22 16:46:29 UTC (rev 234474)
@@ -0,0 +1,13 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list