diff options
author | André Stösel <andre@stoesel.de> | 2013-12-04 18:27:42 +0100 |
---|---|---|
committer | André Stösel <andre@stoesel.de> | 2013-12-04 18:27:42 +0100 |
commit | d4f17f5812b61f5c8f5bf6d446ea23f5f3cca8d8 (patch) | |
tree | 18688590dc2b22dd8b780f0334e4174fa16652b2 | |
parent | a7f911caa8fe67c6bbab40f349925f4657bec2d9 (diff) | |
download | midori-d4f17f5812b61f5c8f5bf6d446ea23f5f3cca8d8.tar.gz |
fix for bug #1257839: Commands given at startup are completely ignored
-rw-r--r-- | extensions/tabby.vala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/extensions/tabby.vala b/extensions/tabby.vala index e7707e1d..bfce7eb5 100644 --- a/extensions/tabby.vala +++ b/extensions/tabby.vala @@ -666,6 +666,20 @@ namespace Tabby { this.storage.restore_last_sessions (); } + /* FIXME: execute_commands should be called before session creation */ + GLib.Idle.add (this.execute_commands); + + return false; + } + + private bool execute_commands () { + Midori.App app = this.get_app (); + unowned string?[] commands = app.get_data ("execute-commands"); + + if (commands != null) { + app.send_command (commands); + } + return false; } |