--- old/onmainwindow.cpp	2015-03-18 20:36:52.771965135 +1300
+++ new/onmainwindow.cpp	2015-03-18 20:40:31.199962491 +1300
@@ -6442,6 +6442,8 @@
                 app.exec.replace(" %u","",Qt::CaseInsensitive);
                 app.exec.replace("%f","",Qt::CaseInsensitive);
                 app.exec.replace("%u","",Qt::CaseInsensitive);
+                app.exec.replace("%i","",Qt::CaseInsensitive);
+                app.exec.replace("%c",app.name,Qt::CaseInsensitive);
                 if (app.exec==autostartApp)
                     startAppFound=true;
                 //                 x2goDebug<<"exec: "<<app.exec<<endl;
