aboutsummaryrefslogtreecommitdiffstats
path: root/g10/plaintext.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-05-17 10:31:11 +0000
committerWerner Koch <[email protected]>2019-05-17 10:46:16 +0000
commitcd5f040a5389944dd8a05bc9c938f888581dfc8a (patch)
treeb34dd299771430853dfff09920c341442476f56a /g10/plaintext.c
parentkbx: Fix an endless loop under Windows due to an incomplete fix. (diff)
downloadgnupg-cd5f040a5389944dd8a05bc9c938f888581dfc8a.tar.gz
gnupg-cd5f040a5389944dd8a05bc9c938f888581dfc8a.zip
gpg: Improve the photo image viewer selection.
* g10/exec.c (w32_system): Add "!ShellExecute" special. * g10/photoid.c (get_default_photo_command): Use the new ShellExecute under Windows and fallbac to 'display' and 'xdg-open' in the Unix case. (show_photos): Flush stdout so that the output is shown before the image pops up. -- For Unix this basically syncs the code with what we have in gpg 1.4. Note that xdg-open may not be used when running as root which we support here. For Windows we now use ShellExecute as this seems to be preferred over "cmd /c start"; however this does not solve the actual problem we had in the bug report. To solve that problem we resort to a wait parameter which defaults to 400ms. This works on my Windows-10 virtualized test box. If we can figure out which simple viewers are commonly installed on Windows we should enhance this patch to test for them. GnuPG-bug-id: 4334 Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions