Merge lp://staging/~stefano-palazzo/gpxviewer/gpxviewer-null-pub into lp://staging/gpxviewer
Status: | Needs review |
---|---|
Proposed branch: | lp://staging/~stefano-palazzo/gpxviewer/gpxviewer-null-pub |
Merge into: | lp://staging/gpxviewer |
Diff against target: |
46 lines (+19/-4) 1 file modified
gpxviewer/ui.py (+19/-4) |
To merge this branch: | bzr merge lp://staging/~stefano-palazzo/gpxviewer/gpxviewer-null-pub |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrew Gee | Pending | ||
Review via email: mp+40262@code.staging.launchpad.net |
Commit message
Add "do you want to install..." dalog
Open External apps even without open file
Replac os.spawn with subprocess.Popen
Description of the change
I've notices that, when clicking on "Open with external Program..", nothing happens when
a) the application is not installed
b) no file is opened
So I've changed the code to:
a) ask the user if they want to install the application, if so, install it (transparently, using apt://..)
b) open the application without sending it a file name to open
I've also replaced os.spawn with subprocess.Popen (not that that's important, but it's recommended)
If you're happy with those changes, I think they might be a nice addition to this fantastic application.
Unmerged revisions
- 82. By Stefano Palazzo
-
minor cleanup
- 81. By Stefano Palazzo
-
open app or show install. dialog even if now file is opened
- 80. By Stefano Palazzo
-
added 'do you want to install..?' dalog for when external applications are not installed -- switch from os.spawn() to subprocess.Popen()
Hi Stefano,
Thanks for the merge request. Looks like good work, from a quick glance.
I've been a bit busy this weekend, but should be able to review the code
later today or tomorrow and merge it in.
Thanks for your contribution :)
Andrew Gee
On 06/11/10 22:48, Stefano Palazzo wrote:
> Stefano Palazzo has proposed merging lp:~stefano-palazzo/gpxviewer/gpxviewer-null-pub into lp:gpxviewer.
>
> Requested reviews:
> Andrew Gee (andrewgee)
>
>
> I've notices that, when clicking on "Open with external Program..", nothing happens when
> a) the application is not installed
> b) no file is opened
>
> So I've changed the code to:
> a) ask the user if they want to install the application, if so, install it (transparently, using apt://..)
> b) open the application without sending it a file name to open
>
> I've also replaced os.spawn with subprocess.Popen (not that that's important, but it's recommended)
>
> If you're happy with those changes, I think they might be a nice addition to this fantastic application.