Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Mar 2021 17:32:09 +0000 (UTC)
From:      Eric Turgeon <ericbsd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r568265 - in head/x11/mate-dock-applet: . files
Message-ID:  <202103131732.12DHW9DF068250@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ericbsd
Date: Sat Mar 13 17:32:08 2021
New Revision: 568265
URL: https://svnweb.freebsd.org/changeset/ports/568265

Log:
  add mate-dock-applet/files/patch-src_dock.in
  
  This patch fix the slow start of mate-dock-applet

Added:
  head/x11/mate-dock-applet/files/
  head/x11/mate-dock-applet/files/patch-src_dock.in   (contents, props changed)
Modified:
  head/x11/mate-dock-applet/Makefile

Modified: head/x11/mate-dock-applet/Makefile
==============================================================================
--- head/x11/mate-dock-applet/Makefile	Sat Mar 13 17:12:00 2021	(r568264)
+++ head/x11/mate-dock-applet/Makefile	Sat Mar 13 17:32:08 2021	(r568265)
@@ -3,7 +3,7 @@
 
 PORTNAME=	mate-dock-applet
 PORTVERSION=	20.04.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	x11 mate
 DIST_SUBDIR=	mate
 

Added: head/x11/mate-dock-applet/files/patch-src_dock.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/mate-dock-applet/files/patch-src_dock.in	Sat Mar 13 17:32:08 2021	(r568265)
@@ -0,0 +1,26 @@
+--- src/dock.in.orig	2021-03-13 13:10:08.665755000 -0400
++++ src/dock.in	2021-03-13 13:13:58.873312000 -0400
+@@ -615,21 +615,8 @@
+                                              dbus_interface="com.canonical.Unity.LauncherEntry",
+                                              signal_name="Update")
+ 
+-        # we need a Bamf.Matcher for matching windows to running apps
+-        self.matcher = None
+-        # wait for max 10s to ensure bamf is available
+-        # (bamf is not always immediately available after login on Linux Mint
+-        # 19 - e.g. https://forums.linuxmint.com/viewtopic.php?t=272747 and
+-        # issue #158)
+-        i = 0
+-        while i < 10:
+-            if (not self.session_bus.name_has_owner("org.ayatana.bamf")):
+-                i += 1
+-                sleep(1)
+-            else:
+-                break
+-
+-        self.matcher = Bamf.Matcher()
++        # create a Bamf.Matcher for matching windows to running apps
++        self.matcher = Bamf.Matcher.get_default()
+ 
+         # can we resize nicely on the panel?
+         try:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103131732.12DHW9DF068250>