--- app/modules/WebAppInstall.jsm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) Index: prism-0.8+svn20071115r8030/app/modules/WebAppInstall.jsm =================================================================== --- prism-0.8+svn20071115r8030.orig/app/modules/WebAppInstall.jsm 2008-03-15 16:07:12.618371020 -0400 +++ prism-0.8+svn20071115r8030/app/modules/WebAppInstall.jsm 2008-03-15 16:08:03.258373555 -0400 @@ -203,8 +203,15 @@ cmd += "Name=" + name + "\n"; cmd += "Type=Application\n"; cmd += "Comment=Web Application\n"; - cmd += "Exec=" + target.path + " -webapp " + id + "\n"; + // cmd += "Exec=" + target.path + " -webapp " + id + "\n"; + // we don't want to call xulrunner from paths like /usr/lib/xulrunner-1.9b2pre/xulrunner + // which change with releases. Instead, call using the link maintained in the + // xulrunner-1.9 package. We also need to specify our application.ini. + cmd += "Exec=xulrunner-1.9 /usr/share/prism/application.ini -webapp " + id + "\n"; cmd += "Icon=" + icon.path + "\n"; + cmd += "Categories=GTK;Network;\n"; + cmd += "StartupWMClass=Prism\n"; + cmd += "StartupNotify=true\n"; var stream = Cc['@mozilla.org/network/file-output-stream;1'].createInstance(Ci.nsIFileOutputStream); stream.init(file, PR_WRONLY | PR_CREATE_FILE | PR_TRUNCATE, 0600, 0);