diff options
author | mdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-24 20:55:17 +0000 |
---|---|---|
committer | mdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-24 20:55:17 +0000 |
commit | 811e7d36f5bb3768cb7203f752744d079750aa1a (patch) | |
tree | 3c227c875203d068357084b18d9a484b9c77fc99 /chrome/browser | |
parent | 059e58b90c883044a0efe8ebaf599ca1a2352833 (diff) | |
download | chromium_src-811e7d36f5bb3768cb7203f752744d079750aa1a.zip chromium_src-811e7d36f5bb3768cb7203f752744d079750aa1a.tar.gz chromium_src-811e7d36f5bb3768cb7203f752744d079750aa1a.tar.bz2 |
Linux: use switches::kApp instead of "--app" when creating .desktop files.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/174340
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24143 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/shell_integration_linux.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/shell_integration_linux.cc b/chrome/browser/shell_integration_linux.cc index 48abd49..8ecc0da 100644 --- a/chrome/browser/shell_integration_linux.cc +++ b/chrome/browser/shell_integration_linux.cc @@ -23,6 +23,7 @@ #include "base/thread.h" #include "chrome/browser/browser_process.h" #include "chrome/common/chrome_paths.h" +#include "chrome/common/chrome_switches.h" #include "googleurl/src/gurl.h" namespace { @@ -204,7 +205,9 @@ std::string ShellIntegration::GetDesktopFileContents( if (exec_tokenizer.token() != "%U") final_path += exec_tokenizer.token() + " "; } - std::string app_switch(StringPrintf("\"--app=%s\"", + std::wstring app_switch_wide(switches::kApp); + std::string app_switch(StringPrintf("\"--%s=%s\"", + WideToUTF8(app_switch_wide).c_str(), url.spec().c_str())); ReplaceSubstringsAfterOffset(&app_switch, 0, "%", "%%"); output_buffer += std::string("Exec=") + final_path + app_switch + "\n"; |