THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#692 - Icedove binds to tag on the wrong screen
User who did this - Javier Barroso (i5513)
----------
Hi,
In my environment, I have 2 screens, and the next rc.lua config (only Icedove
to tag [2][2]).
When I start icedove with autoconfig setup (from awesome commandline), it works
(in sid version).
When it is launched from autostart configuration: two auth windows (asking me user and
password to imap and caldav) are in tag[2][2]), but main windows is in the second screen
and tag 1, but without any "focus" it appears at all tags in second screen.
The "selector" (the area where you can click and take the focus in the bar on
the top) is in screen 1 (sorry for my english)
$ diff -u /etc/xdg/awesome/rc.lua ~/.config/awesome/rc.lua
--- /etc/xdg/awesome/rc.lua 2010-01-19 14:24:38.000000000 +0100
+++ /home/javi/.config/awesome/rc.lua 2010-03-15 17:26:11.000000000 +0100
@@ -300,6 +300,8 @@
properties = { floating = true } },
{ rule = { class = "gimp" },
properties = { floating = true } },
+ { rule = { class = "Icedove" },
+ properties = { tag = tags[2][2] } },
-- Set Firefox to always map on tags number 2 of screen 1.
-- { rule = { class = "Firefox" },
-- properties = { tag = tags[1][2] } },
@@ -336,3 +338,33 @@
client.add_signal("focus", function(c) c.border_color = beautiful.border_focus
end)
client.add_signal("unfocus", function(c) c.border_color =
beautiful.border_normal end)
-- }}}
+--
+
+-- Autostart
+function autostart(dir)
+ if not dir then
+ do return nil end
+ end
+ local fd = io.popen("ls -1 -F " .. dir)
+ if not fd then
+ do return nil end
+ end
+ for file in fd:lines() do
+ local c= string.sub(file,-1) -- last char
+ if c=='*' then -- executables
+ executable = string.sub( file, 1,-2 )
+ print("Awesome Autostart: Executing: " .. executable)
+ -- os.execute(dir .. "/" .. executable .. " &") -- launch in bg
+ awful.util.spawn(dir .. "/" .. executable)
+ elseif c=='@' then -- symbolic links
+ print("Awesome Autostart: Not handling symbolic links: " .. file)
+ else
+ print ("Awesome Autostart: Skipping file " .. file .. " not
executable.")
+ end
+ end
+ io.close(fd)
+end
+
+autostart_dir = os.getenv("HOME") .. "/.config/awesome/autostart-icedove"
+autostart(autostart_dir)
+
$ cat ~/.config/awesome/autostart-icedove/icedove
if ! ps -C icedove
then
icedove
fi
Thank you very much
I hope this help
----------
More information can be found at the following URL:
http://awesome.naquadah.org/bugs/index.php?do=details&task_id=692#comment1863
You are receiving this message because you have requested it from the Flyspray
bugtracking system. If you did not expect this message or don't want to
receive mails in future, you can change your notification settings at the URL
shown above.
--
To unsubscribe, send mail to [email protected].