Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Issue 7000018: GTK: Use glib's desktop file parser instead of our hand rolled one. (Closed)

Created:
9 years, 7 months ago by Elliot Glaysher
Modified:
9 years, 7 months ago
Reviewers:
Evan Martin
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

GTK: Use glib's desktop file parser instead of our hand rolled one. We need to support .desktop files that are much more complicated than the simple ones we've used so far. Rip out the our hand rolled parser and use glib's to manage multi-section desktop files. We need to be able to build new .desktop files off desktop files that have multiple groups. Change the unit test so the "real world example" has the X-Ayatana-Desktop-Shortcuts keys (plus related sections). BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85059

Patch Set 1 #

Total comments: 10

Patch Set 2 : Updated comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -73 lines) Patch
M chrome/browser/shell_integration_linux.cc View 1 3 chunks +104 lines, -72 lines 1 comment Download
M chrome/browser/shell_integration_unittest.cc View 7 chunks +24 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Elliot Glaysher
http://codereview.chromium.org/7000018/diff/1/chrome/browser/shell_integration_linux.cc File chrome/browser/shell_integration_linux.cc (right): http://codereview.chromium.org/7000018/diff/1/chrome/browser/shell_integration_linux.cc#newcode443 chrome/browser/shell_integration_linux.cc:443: g_key_file_set_string(key_file, kDesktopEntry, "Exec", final_path.c_str()); This level of quoting is ...
9 years, 7 months ago (2011-05-11 01:07:27 UTC) #1
Elliot Glaysher
ping?
9 years, 7 months ago (2011-05-11 21:21:05 UTC) #2
Evan Martin
http://codereview.chromium.org/7000018/diff/1/chrome/browser/shell_integration_linux.cc File chrome/browser/shell_integration_linux.cc (right): http://codereview.chromium.org/7000018/diff/1/chrome/browser/shell_integration_linux.cc#newcode208 chrome/browser/shell_integration_linux.cc:208: // Remove keys that we certainly don't want. Can ...
9 years, 7 months ago (2011-05-11 21:29:06 UTC) #3
Elliot Glaysher
Updated comments. http://codereview.chromium.org/7000018/diff/1/chrome/browser/shell_integration_linux.cc File chrome/browser/shell_integration_linux.cc (right): http://codereview.chromium.org/7000018/diff/1/chrome/browser/shell_integration_linux.cc#newcode412 chrome/browser/shell_integration_linux.cc:412: final_title = url.spec(); On 2011/05/11 21:29:06, Evan ...
9 years, 7 months ago (2011-05-11 21:52:29 UTC) #4
Evan Martin
9 years, 7 months ago (2011-05-11 21:54:15 UTC) #5
LGTM

http://codereview.chromium.org/7000018/diff/4002/chrome/browser/shell_integra...
File chrome/browser/shell_integration_linux.cc (right):

http://codereview.chromium.org/7000018/diff/4002/chrome/browser/shell_integra...
chrome/browser/shell_integration_linux.cc:459: std::string output_buffer =
kXdgOpenShebang;
Do you need a newline here?  I guess the tests must cover this.

Powered by Google App Engine
This is Rietveld 408576698