Merge lp:~jeremy-munsch/synapse-project/fix-desktop-file-actions into lp:synapse-project

Proposed by Jeremy Munsch on 2015-11-19
Status: Needs review
Proposed branch: lp:~jeremy-munsch/synapse-project/fix-desktop-file-actions
Merge into: lp:synapse-project
Diff against target: 21 lines (+2/-2)
1 file modified
src/plugins/desktop-file-plugin.vala (+2/-2)
To merge this branch: bzr merge lp:~jeremy-munsch/synapse-project/fix-desktop-file-actions
Reviewer Review Type Date Requested Status
Rico Tzschichholz 2015-11-19 Pending
Review via email: mp+278013@code.launchpad.net

Description of the change

OpenAppAction to Highest match score.

This will put applications action on top in alternative panel.
This will prevent <maj>+<enter> hotkey to make application open in terminal instead of using the first app action.

Simple fix.

To post a comment you must log in.

Unmerged revisions

632. By Jeremy Munsch on 2015-11-19

Elevate Application actions to maximum Matchscore

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/plugins/desktop-file-plugin.vala'
2--- src/plugins/desktop-file-plugin.vala 2015-11-14 20:58:02 +0000
3+++ src/plugins/desktop-file-plugin.vala 2015-11-19 14:58:12 +0000
4@@ -268,7 +268,7 @@
5
6 public OpenAppAction (DesktopFileInfo info, string action)
7 {
8- Object (desktop_info : info, action : action);
9+ Object (desktop_info : info, action : action, default_relevancy: MatchScore.HIGHEST);
10 }
11
12 construct
13@@ -360,7 +360,7 @@
14 {
15 foreach (var action in any_list)
16 {
17- rs.add (action, MatchScore.POOR);
18+ rs.add (action, action.default_relevancy);
19 }
20 }
21 else