Merge lp:~townsend/autopilot/fix-gcalctool-desktop-file into lp:autopilot/legacy

Proposed by Christopher Townsend
Status: Merged
Approved by: Christopher Lee
Approved revision: 496
Merged at revision: 496
Proposed branch: lp:~townsend/autopilot/fix-gcalctool-desktop-file
Merge into: lp:autopilot/legacy
Diff against target: 12 lines (+1/-1)
1 file modified
autopilot/process/__init__.py (+1/-1)
To merge this branch: bzr merge lp:~townsend/autopilot/fix-gcalctool-desktop-file
Reviewer Review Type Date Requested Status
Christopher Lee (community) Approve
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+256702@code.launchpad.net

Commit message

Account for the renaming of gcalctool.desktop to gnome-calculator.desktop.

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

Not sure if you want a review from me but I'll comment anyway :-) This looks fine to me.

This isn't the first time something like this has happened (renamed .desktop files) I wonder (out loud) if it is worth changing this so that it is programatically populated at run time and checks the existence of a couple of known .desktop files and uses the correct one.
Although, this happens infrequently enough that I'm not sure it's worth doing that work.

review: Approve
Revision history for this message
Christopher Townsend (townsend) wrote :

Hey Chris,

Thanks for the review. I'll take a review from anyone who can actually get this merged:)

Revision history for this message
Leo Arias (elopio) wrote :

@veebers, what I'm not sure is that we need to support this. We have hardcoded ways to launch about 5 applications. That's weird. I don't understand why would we like to make it easier to launch those apps. Without the hardcoded values, it's still pretty easy to launch them.

What I would do is to depracate this functionality.

@townsend, can you please tell me why do you need this update? Are you launching the calculator in one of your tests?

Revision history for this message
Christopher Townsend (townsend) wrote :

@elopio

Yes, many of the Unity 7 Autopilot tests launch the calculator app and without this change, those tests fail due to Autopiplot not finding the correct .desktop file since it was renamed.

Revision history for this message
Christopher Townsend (townsend) wrote :

Any chance this can get approved, merged, and landed in the archive? Or some other method of choice that fixes this failure?

Thanks!

Revision history for this message
Christopher Lee (veebers) wrote :

In the past it has been the Unity7 team responsible for approving the legacy branch. I go ahead and top approve it now. Sorry for any confusion.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'autopilot/process/__init__.py'
2--- autopilot/process/__init__.py 2014-08-05 13:46:10 +0000
3+++ autopilot/process/__init__.py 2015-04-17 18:26:27 +0000
4@@ -39,7 +39,7 @@
5 'process-name': 'gucharmap',
6 },
7 'Calculator': {
8- 'desktop-file': 'gcalctool.desktop',
9+ 'desktop-file': 'gnome-calculator.desktop',
10 'process-name': 'gnome-calculator',
11 },
12 'Mahjongg': {

Subscribers

People subscribed via source and target branches