Merge lp:~abreu-alexandre/bamf/remove-old-webapps-mode into lp:bamf

Proposed by Alexandre Abreu
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: 596
Merged at revision: 595
Proposed branch: lp:~abreu-alexandre/bamf/remove-old-webapps-mode
Merge into: lp:bamf
Diff against target: 59 lines (+2/-20)
3 files modified
lib/libbamf/bamf-application.c (+1/-8)
src/bamf-matcher.c (+1/-0)
tests/libbamf/test-application.c (+0/-12)
To merge this branch: bzr merge lp:~abreu-alexandre/bamf/remove-old-webapps-mode
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) Approve
David Barth (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+209977@code.launchpad.net

Commit message

Remove old webapp related code since now we dont use browser tab matching anymore.

Description of the change

Remove old webapp related code since now we dont use browser tab matching anymore.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
596. By Alexandre Abreu

remove webpp test

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
David Barth (dbarth) wrote :

+1, webapps should be special cased anymore

review: Approve
Revision history for this message
David Barth (dbarth) wrote :

should *not*

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

+1, thanks

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/libbamf/bamf-application.c'
2--- lib/libbamf/bamf-application.c 2013-08-05 16:18:46 +0000
3+++ lib/libbamf/bamf-application.c 2014-03-07 18:21:16 +0000
4@@ -663,14 +663,7 @@
5 self->priv->cached_mimes = g_key_file_get_string_list (keyfile, G_KEY_FILE_DESKTOP_GROUP,
6 G_KEY_FILE_DESKTOP_KEY_MIME_TYPE, NULL, NULL);
7
8- if (g_strcmp0 (g_app_info_get_executable (G_APP_INFO (desktop_info)), "unity-webapps-runner") == 0)
9- {
10- self->priv->application_type = g_strdup ("webapp");
11- }
12- else
13- {
14- self->priv->application_type = g_strdup ("system");
15- }
16+ self->priv->application_type = g_strdup ("system");
17
18 g_free (icon);
19 g_free (name);
20
21=== modified file 'src/bamf-matcher.c'
22--- src/bamf-matcher.c 2013-08-07 16:45:26 +0000
23+++ src/bamf-matcher.c 2014-03-07 18:21:16 +0000
24@@ -61,6 +61,7 @@
25 "^gksu(do)?$", "^sudo$", "^su-to-root$", "^amdxdg-su$", "^java(ws)?$", "^cli$",
26 "^mono$", "^ruby$", "^padsp$", "^aoss$", "^python(\\d.\\d)?$", "^(ba)?sh$",
27 "^perl$", "^env$", "^xdg-open$", "^qmlscene$", "^qmlviewer$",
28+ "^unity-webapps-runner$", "^webapp-container$",
29 /* javaws strings: */ "^net\\.sourceforge\\.jnlp\\.runtime\\.Boot$", "^rt\\.jar$",
30 "^com\\.sun\\.javaws\\.Main$", "^deploy\\.jar$"
31 };
32
33=== modified file 'tests/libbamf/test-application.c'
34--- tests/libbamf/test-application.c 2013-06-19 16:56:49 +0000
35+++ tests/libbamf/test-application.c 2014-03-07 18:21:16 +0000
36@@ -93,17 +93,6 @@
37 }
38
39 static void
40-test_favorite_valid_desktop_file_webapp (void)
41-{
42- BamfApplication *application;
43-
44- application = bamf_application_new_favorite (DATA_DIR"/ubuntu-web-app.desktop");
45- g_assert_cmpstr (bamf_application_get_application_type (application), ==, "webapp");
46-
47- g_object_unref (application);
48-}
49-
50-static void
51 test_favorite_mime_type_filled (void)
52 {
53 BamfApplication *application;
54@@ -150,5 +139,4 @@
55 g_test_add_func (DOMAIN"/Favorite/NoIcon", test_favorite_no_icon);
56 g_test_add_func (DOMAIN"/Favorite/MimeType/Filled", test_favorite_mime_type_filled);
57 g_test_add_func (DOMAIN"/Favorite/MimeType/Empty", test_favorite_mime_type_empty);
58- g_test_add_func (DOMAIN"/Favorite/DesktopFile/Valid/WebApp", test_favorite_valid_desktop_file_webapp);
59 }

Subscribers

People subscribed via source and target branches

to all changes: