mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
gpg: Keep temp files when opening images via xdg-open
* g10/photoid.c (get_default_photo_command): Change parameter for xdg-open. -- xdg-open spawns the user's preferred image viewer and then exits. Therefore we must not remove the temp file when it exits, otherwise by the time the actual image viewer is started the file doesn't exist any more. Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
This commit is contained in:
parent
e5af401fc4
commit
0441ed6e1c
@ -287,7 +287,11 @@ get_default_photo_command(void)
|
||||
else if (!path_access ("display",X_OK))
|
||||
return "display -title 'KeyID 0x%k' %i";
|
||||
else if (getuid () && !path_access ("xdg-open", X_OK))
|
||||
return "xdg-open %i";
|
||||
{
|
||||
/* xdg-open spawns the actual program and exits so we need to
|
||||
* keep the temp file */
|
||||
return "xdg-open %I";
|
||||
}
|
||||
else
|
||||
return "/bin/true";
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user