1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00

add mate-dock-applet/files/patch-src_dock.in

This patch fix the slow start of mate-dock-applet
This commit is contained in:
Eric Turgeon 2021-03-13 17:32:08 +00:00
parent e050d40e5e
commit 9681738b31
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=568265
2 changed files with 27 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= mate-dock-applet
PORTVERSION= 20.04.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= x11 mate
DIST_SUBDIR= mate

View File

@ -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: