diff options
author | André Stösel <andre@stoesel.de> | 2013-12-12 14:20:49 +0000 |
---|---|---|
committer | Tarmac <> | 2013-12-12 14:20:49 +0000 |
commit | 99ac016fd6edccd24839bb3d3ac9575210803297 (patch) | |
tree | a500f649cd3176d017213286eb633ce543ca804c | |
parent | 5df0ab7bba1efaf2f3beed782c67c781ca5c2ac0 (diff) | |
parent | d4f17f5812b61f5c8f5bf6d446ea23f5f3cca8d8 (diff) | |
download | midori-99ac016fd6edccd24839bb3d3ac9575210803297.tar.gz |
execute commands given at start time
-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; } |