Merge lp:~ted/ubuntu-app-launch/disable-only-show-in into lp:ubuntu-app-launch/16.10

Proposed by Ted Gould
Status: Merged
Approved by: Larry Price
Approved revision: 230
Merged at revision: 229
Proposed branch: lp:~ted/ubuntu-app-launch/disable-only-show-in
Merge into: lp:ubuntu-app-launch/16.10
Diff against target: 35 lines (+6/-1)
2 files modified
libubuntu-app-launch/application-info-desktop.cpp (+3/-1)
tests/application-info-desktop.cpp (+3/-0)
To merge this branch: bzr merge lp:~ted/ubuntu-app-launch/disable-only-show-in
Reviewer Review Type Date Requested Status
Larry Price Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+294260@code.launchpad.net

Commit message

Allow invalid desktop files for OTA11 quick fix

To post a comment you must log in.
Revision history for this message
Larry Price (larryprice) wrote :

Should the comments say OTA10 or OTA11 like the commit message?

I'm also curious - what apps were these breaking?

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
230. By Ted Gould

Fixing comment

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Larry Price (larryprice) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'libubuntu-app-launch/application-info-desktop.cpp'
2--- libubuntu-app-launch/application-info-desktop.cpp 2016-05-04 20:12:50 +0000
3+++ libubuntu-app-launch/application-info-desktop.cpp 2016-05-10 19:09:58 +0000
4@@ -181,7 +181,9 @@
5 if (stringlistFromKeyfileContains(keyfile, "NotShowIn", xdg_current_desktop, false) ||
6 !stringlistFromKeyfileContains(keyfile, "OnlyShowIn", xdg_current_desktop, true))
7 {
8- throw std::runtime_error("Application is not shown in Unity");
9+ g_warning("Application is not shown in Unity");
10+ // Exception removed for OTA11 as a temporary fix
11+ // throw std::runtime_error("Application is not shown in Unity");
12 }
13 }
14
15
16=== modified file 'tests/application-info-desktop.cpp'
17--- tests/application-info-desktop.cpp 2016-04-26 13:13:51 +0000
18+++ tests/application-info-desktop.cpp 2016-05-10 19:09:58 +0000
19@@ -112,6 +112,8 @@
20 g_key_file_set_string(hidden.get(), DESKTOP, "Hidden", "true");
21 EXPECT_THROW(ubuntu::app_launch::app_info::Desktop(hidden, "/"), std::runtime_error);
22
23+ /* Disabling for OTA11 */
24+#if 0
25 // not shown in Unity
26 auto notshowin = defaultKeyfile();
27 g_key_file_set_string(notshowin.get(), DESKTOP, "NotShowIn", ("Gnome;" + test_dekstop_env + ";").c_str());
28@@ -121,6 +123,7 @@
29 auto onlyshowin = defaultKeyfile();
30 g_key_file_set_string(onlyshowin.get(), DESKTOP, "OnlyShowIn", "KDE;Gnome;");
31 EXPECT_THROW(ubuntu::app_launch::app_info::Desktop(onlyshowin, "/"), std::runtime_error);
32+#endif
33 }
34
35 TEST_F(ApplicationInfoDesktop, KeyfileShowListEdgeCases)

Subscribers

People subscribed via source and target branches