diff options
| author | James Henstridge <james@jamesh.id.au> | 2023-08-11 14:05:02 +0800 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@gmail.com> | 2023-09-06 16:44:05 +0200 |
| commit | 4850a32d26eb49bb084e6a081c215d10414678d4 (patch) | |
| tree | 5c8229a24d0aadf8782acd9d844678f228dac292 | |
| parent | dea4dea1fd4228dba4d674b780b97544637bdec3 (diff) | |
desktop/desktopentry: update comment
| -rw-r--r-- | desktop/desktopentry/expand_exec.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/desktopentry/expand_exec.go b/desktop/desktopentry/expand_exec.go index 4396faaec6..904e5ef489 100644 --- a/desktop/desktopentry/expand_exec.go +++ b/desktop/desktopentry/expand_exec.go @@ -133,7 +133,8 @@ func expandExec(de *DesktopEntry, exec string, uris []string) (args []string, er buf.WriteRune(r) } } - // If no URI substitutions have happened, add an implicit %f argument + // If no URI substitutions have happened, add a single + // implicit %f argument if len(uris) > 0 && len(uris) == nUris { buf.WriteRune(' ') if _, err = expandMacro('f', &buf, de, uris); err != nil { |
