<div dir="ltr">Hi, I sent a second version which add this option back, could you please review this version?</div><span></span>Thanks,<div>  Jakub<br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 3, 2017, 8:14 AM Christophe Fergeau <<a href="mailto:cfergeau@redhat.com" target="_blank">cfergeau@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've seen the follow-up discussion to that patch, but I thought I'd<br>
mention this commit should have more than just a short log as it has a<br>
user-visible impact. If someone wants to know in 2 years *why* we<br>
removed the option, this should be clear from the commit log (and would<br>
help with the discussion too to know the rationale)<br>
<br>
Christophe<br>
<br>
On Tue, Sep 26, 2017 at 10:59:38PM +0200, Jakub Janků wrote:<br>
> ---<br>
>  src/vdagent/vdagent.c | 17 ++++++-----------<br>
>  1 file changed, 6 insertions(+), 11 deletions(-)<br>
><br>
> diff --git a/src/vdagent/vdagent.c b/src/vdagent/vdagent.c<br>
> index dfb9284..6b4c127 100644<br>
> --- a/src/vdagent/vdagent.c<br>
> +++ b/src/vdagent/vdagent.c<br>
> @@ -168,7 +168,7 @@ static void usage(FILE *fp)<br>
>        "  -s <port>                         set virtio serial port\n"<br>
>        "  -S <filename>                     set udcs socket\n"<br>
>        "  -x                                don't daemonize\n"<br>
> -      "  -f <dir|xdg-desktop|xdg-download> file xfer save dir\n"<br>
> +      "  -f <dir>                          file xfer save dir\n"<br>
>        "  -o <0|1>                          open dir on file xfer completion\n",<br>
>        VERSION);<br>
>  }<br>
> @@ -313,18 +313,13 @@ reconnect:<br>
>          return 1;<br>
>      }<br>
><br>
> -    if (!fx_dir) {<br>
> -        if (vdagent_x11_has_icons_on_desktop(x11))<br>
> -            fx_dir = "xdg-desktop";<br>
> -        else<br>
> -            fx_dir = "xdg-download";<br>
> -    }<br>
> +    if (!fx_dir)<br>
> +        fx_dir = g_get_user_special_dir(vdagent_x11_has_icons_on_desktop(x11) ?<br>
> +                                        G_USER_DIRECTORY_DESKTOP :<br>
> +                                        G_USER_DIRECTORY_DOWNLOAD);<br>
>      if (fx_open_dir == -1)<br>
>          fx_open_dir = !vdagent_x11_has_icons_on_desktop(x11);<br>
> -    if (!strcmp(fx_dir, "xdg-desktop"))<br>
> -        fx_dir = g_get_user_special_dir(G_USER_DIRECTORY_DESKTOP);<br>
> -    else if (!strcmp(fx_dir, "xdg-download"))<br>
> -        fx_dir = g_get_user_special_dir(G_USER_DIRECTORY_DOWNLOAD);<br>
> +<br>
>      if (fx_dir) {<br>
>          vdagent_file_xfers = vdagent_file_xfers_create(client, fx_dir,<br>
>                                                         fx_open_dir, debug);<br>
> --<br>
> 2.13.5<br>
><br>
> _______________________________________________<br>
> Spice-devel mailing list<br>
> <a href="mailto:Spice-devel@lists.freedesktop.org" target="_blank">Spice-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/spice-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
</blockquote></div></div>