]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Firejail title workaround at xmail
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 21 Sep 2017 12:26:38 +0000 (09:26 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 21 Sep 2017 12:26:38 +0000 (09:26 -0300)
xmail

diff --git a/xmail b/xmail
index 0b880cee763a679d1e4b20ab9242e8d49524d8e7..5a94b3774be594823d5e121c2e0274a6ad124331 100755 (executable)
--- a/xmail
+++ b/xmail
@@ -2,5 +2,13 @@
 # Simple wrapper around mutt
 #
 
+# Try to set title
 xtitle mail
+
+# Title workaround for firejail
+# See https://github.com/netblue30/firejail/issues/281
+command='/usr/bin/xdotool search --name "firejail /usr/bin/mutt" set_window --name mail'
+sh -c "sleep 1 && $command" &
+
+# Dispatch to mail application
 mail