- Package:
- desktop-file-utils
- Source:
- desktop-file-utils
- Description:
- Utilities for .desktop files
- Submitter:
- Kevin Ryde
- Date:
- 2014-06-30 22:11:28 UTC
- Severity:
- minor
M-x desktop-mode could helpfully quote the buffer-file-name for its
validate command,
(set (make-local-variable 'compile-command)
(concat desktop-entry-validate-command
" " (shell-quote-argument buffer-file-name)))
This lets it work on filenames with spaces and also guards against
accidentally executing arbitrary shell code if the filename has a ";" or
similar special char.