<p></p>
<p><b>@eht16</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/geany/geany/pull/2769#discussion_r606855584">plugins/saveactions.c</a>:</p>
<pre style='color:#555'>>              if (ft == NULL || ft->id == GEANY_FILETYPES_NONE)
                        /* ft is NULL when a new file without template was opened, so use the
                         * configured default file type */
                        ft = filetypes_lookup_by_name(instantsave_default_ft);
 
-               if (ft != NULL)
-                       /* add the filetype's default extension to the new filename */
+               /* construct filename */
+               directory = !EMPTY(instantsave_target_dir) ? instantsave_target_dir : g_get_tmp_dir();
+               new_filename = g_build_filename(directory, "gis_XXXXXX", NULL);
+               if (ft != NULL && !EMPTY(ft->extension))
                        SETPTR(new_filename, g_strconcat(new_filename, ".", ft->extension, NULL));
</pre>
<p>Great, you are uncovering very old bugs :). Should be fixed.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2769#discussion_r606855584">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ75RLDF7SPYO424KSDTHDKIVANCNFSM4ZSS3CGA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ6U7QWETBJV57B5SOTTHDKIVA5CNFSM4ZSS3CGKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOEVUAHKI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2769#discussion_r606855584",
"url": "https://github.com/geany/geany/pull/2769#discussion_r606855584",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>