[arch-commits] Commit in keybase/trunk (PKGBUILD keybase-gui)

Eli Schwartz eschwartz at archlinux.org
Wed Mar 11 02:36:30 UTC 2020


    Date: Wednesday, March 11, 2020 @ 02:36:29
  Author: eschwartz
Revision: 594070

keybase: check if service is running in keybase-gui

... and don't just activate the service in this case. This ensures repeated
calls to keybase-gui will cause the app to foreground.

This is of greater importance now, since electron 8 dropped support for XEmbed
tray icons, which means some desktops might not see a Keybase tray icon, which
in turn means that foregrounding the application is hard to do with just a
service. Now, frantic clicking on the Keybase desktop file while trying to
figure out where the application went to, will actually have a visible effect
and cause it to come out from where it was "hiding".

Modified:
  keybase/trunk/PKGBUILD
  keybase/trunk/keybase-gui

-------------+
 PKGBUILD    |    4 ++--
 keybase-gui |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-11 02:22:37 UTC (rev 594069)
+++ PKGBUILD	2020-03-11 02:36:29 UTC (rev 594070)
@@ -17,11 +17,11 @@
         "0001-Don-t-use-electron-to-build.patch")
 sha512sums=('fb41428f49376e3b6471a2235dc7a904fd08ef4e9cbbdfe3e33cbc02db8770f833f6be55c77c63fcb954468cd2ce8f4f08d47e1c453050e7e366f3288c2e37e4'
             'SKIP'
-            '4dcb3f4119959e2b203528a9ed637bf8b07b85964c632a8b2456aa1e2f29fada383a9bc2af8abbb05fcf6b22c43723ce6d08bea8187d61fa6581d15fefae850b'
+            'd672bdd308b2ab6f7b1248300f85f11b480e08149e1e4da5e01dac6c551b44dbfceb5c89d0fd17ce7a64c8b83cd4c7df14e24c31c2f37ae532abbb9099320290'
             'bfc0919eba93d0367bfbd1a51c5600a1a39bdd1c01e626c7dcbd624c34c9e850006d127455746530598c6660d6ac8a3862fb23897a9fca1dac76ad231fbfdeb5')
 b2sums=('2835729da5590072aa16f6c24ca5083c783ed40984b0be4bca539b3c9ef265e4f5c97267bd6202d0b0c93165d8d63a105feff9e2a65a241b2776f70af2f36da0'
         'SKIP'
-        '90aab71ef3b5db0c8ec81967604f43e3532be5f66ce7d9af1bd5204c1fde2062ef356909c03d237a63de93fa3cb045b9c31c3956cbecbea711602804e9d26efd'
+        'db6d63df77aa73c230128b5c6cd278215e0dfac2b42db861127571a6c867d8a305c18a5ea12a616669c77bd072ab8b26aa52379cbd8167c34bc043bfdcefec1d'
         'e1a42f150f322c560887143a7878df224acafe2391bff6f9f755f7d155303a4c263b9ed3b2ca1d718487bc55f2c39b49f207a7fe06977b2a60b5f99df4122b58')
 validpgpkeys=('222B85B0F90BE2D24CFEB93F47484E50656D16C7') # Keybase.io Code Signing (v1) <code at keybase.io>
 

Modified: keybase-gui
===================================================================
--- keybase-gui	2020-03-11 02:22:37 UTC (rev 594069)
+++ keybase-gui	2020-03-11 02:36:29 UTC (rev 594070)
@@ -3,7 +3,7 @@
 keybase ctl init
 systemctl start --user keybase kbfs
 
-if [ $# -gt 0 ]; then
+if [ $# -gt 0 ] || systemctl --user is-active --quiet keybase.gui; then
     exec electron /usr/share/keybase-app "$@"
 else
     systemctl --user import-environment KEYBASE_AUTOSTART



More information about the arch-commits mailing list