--- alltray-git-180319/src/Application.vala.000 2018-03-19 19:10:47.000000000 -0700 +++ alltray-git-180319/src/Application.vala 2018-03-20 02:53:43.898837674 -0700 @@ -252,11 +252,22 @@ private void update_icon() { Gdk.Pixbuf new_icon; + unowned string ati = Environment.get_variable ("ALLTRAYICON"); - if(this._usingWindowIcon == true) { - new_icon = this._windows.first().data.get_mini_icon(); - } else { - new_icon = this._wnckApp.get_mini_icon(); + if ((ati != null) && (ati.length > 0)) + { + new_icon = new Gdk.Pixbuf.from_file (ati); + } + else + { + if (this._usingWindowIcon == true) + { + new_icon = this._windows.first().data.get_mini_icon(); + } + else + { + new_icon = this._wnckApp.get_mini_icon(); + } } icon_changed(new_icon);