aboutsummaryrefslogtreecommitdiff
path: root/i3-dmenu-desktop
AgeCommit message (Collapse)Author
2022-12-06i3-dmenu-desktop: Allow more than one --entry-type (#5294)Demian
Unlike in the man page, only one --entry-type is reasonable possible. On using multiple --entry-types and a command offers multiple, duplicates are removed i3-dmenu-desktop. See more at #5291 added --show-duplicates flag for this
2022-10-29i3-dmenu-desktop: ignore SIGPIPE when writing to dmenu (#5228)Orestis Floros
Fixes broken test
2022-09-28Fix i3-dmenu-desktop quoting (#5162)Michael Stapelberg
Commit 70f23caa9a18afc146f696fdf7d2481e5f7f0101 introduced new issues. Instead of distinguishing " and \, as that commit attempted, let’s instead keep the level of escaping by escaping each backslash, just like each double quote. I tested this with: # recommended way to quote $ and " in quoted arguments, not ambiguous Exec=/tmp/logargs "hello \\$PWD \\"and\\" more" # permitted way to quote $ and " in quoted arguments, but ambiguous Exec=/tmp/logargs "hello \$PWD \"and\" more" # permitted way to quote arguments, slightly unusual to quote first arg Exec="/tmp/logargs" hey # a complicated shell expression, not ambiguous Exec=sh -c "if [ -n \\"\\$*\\" ]; then exec /tmp/logargs --alternate-editor= --display=\\"\\$DISPLAY\\" \\"\\$@\\"; else exec /tmp/logargs --alternate-editor= --create-frame; fi" placeholder %F related to https://github.com/i3/i3/issues/4697 (electrum, original) related to https://github.com/i3/i3/issues/5152 (phpstorm, breakage) related to https://github.com/i3/i3/issues/5156 (emacsclient, breakage)
2021-12-06fix #4697, adds backslashes quotation for exec (#4699)sergio
Signed-off-by: Sergio E. Nemirowski <sergio@outerface.net>
2021-10-07i3-dmenu-desktop: ignore duplicate files and directoriesMichael Stapelberg
This is required when e.g. mpv is installed in the NixOS global system environment *and* in the user environment. Standalone reproducer: mkdir -p test1/share/applications test2/share ln -svf /usr/share/applications/i3.desktop test1/share/applications ln -svf $PWD/test1/share/applications test2/share export XDG_DATA_DIRS='test1/share:test2/share' i3-dmenu-desktop fixes #4522
2020-10-18i3-dmenu-desktop: Manually search for topdir (#4033)Orestis Floros
Since 3a672bc, using follow or follow_fast, does not set $File::Find::topdir, breaking our deduplication. Fixes #4031
2020-04-11i3-dmenu-desktop: Support symlinksOrestis Floros
follow_fast is passed to find() in order to support this. Since we check ourselves for duplicates, the fast option can be used. Fixes #3973
2017-09-24Replace http:// with https:// where applicableMichael Stapelberg
The testcases will be updated automatically in a separate commit.
2017-05-15prevent multiple menu items per .desktop entryloungecube
If a .desktop entry is being added to the list of Menu items by its "Name" field, it should not be added again by its command or filename. If it is being added by its command, it should not be added again by its filename.
2017-04-30Fix i3-dmenu-desktop quoted command nameSebastian Larsson
According to the Desktop Entry Specification https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables the executable name or path of the executable may be quoted. This is not properly respected when i3-dmenu-desktop extracts the command name from the Exec entry. Examples of values that fail and what they currently result in: - "bar" -> "bar" - "foo/bar" -> bar" - "foo foobar/bar" -> "foo - "foo\sbar" -> "foo\sbar" - foo\sbar -> foo\sbar - "foo\\\\bar" -> "foo\\\\bar"
2016-03-23i3-dmenu-desktop: do not die on failed openCedric
2015-04-20Update copyright notices and get rid of rangesDeiz
The script used to make these changes can be found at: https://gist.github.com/Deiz/32322020f76d23e2bf8f
2015-03-12Fix comment boxMicha Rosenbaum
2015-03-11degendered termsDiana Thayer
2014-07-11Bugfix: i3-dmenu-desktop: quote path (Thanks nikolaus)Michael Stapelberg
fixes #1316
2014-05-15i3-dmenu-desktop: don’t use smartmatch (it’s experimental)Michael Stapelberg
This commit should not change functionality at all (famous last words).
2014-04-26i3-dmenu-desktop: also quote the %c field code (Thanks bo)Michael Stapelberg
The spec says: “Implementations must take care not to expand field codes into multiple arguments unless explicitly instructed by this specification. This means that name fields, filenames and other replacements that can contain spaces must be passed as a single argument to the executable program after expansion.” fixes #1240
2013-07-13i3-dmenu-desktop: honor Path= key (Thanks Alexander)Michael Stapelberg
fixes #1041
2013-03-21i3-dmenu-desktop: run commands when they don’t match a .desktop fileMichael Stapelberg
This allows you to enter e.g. "i3 layout stacking" (provided you don’t have an i3 .desktop file)
2013-03-17bump copyright years to 2013Michael Stapelberg
2013-03-17i3-dmenu-desktop: improve error message when dmenu cannot be foundMichael Stapelberg
fixes #984
2013-03-12i3-dmenu-desktop: bump version to 1.4Michael Stapelberg
2013-03-03i3-dmenu-desktop: remove %i from commandlineMichael Stapelberg
We don’t currently support the icon argument, but entirely not handling %i leads to e.g. “digikam” not starting.
2013-01-30i3-dmenu-desktop: List filenames of .desktop filesMats
In addition to 'name' and 'command', add a third entry type 'filename' to list the filenames of the .desktop files (e.g., 'firefox.desktop' would be display as 'firefox'). Command line option '--entry-type' can be specified multiple times. fixes #930
2012-12-26i3-dmenu-desktop: skip broken files (no/empty Exec=) but warn about themMichael Stapelberg
2012-12-26i3-dmenu-desktop: skip files with broken utf8 but warn about itMichael Stapelberg
2012-12-25i3-dmenu-desktop: strip newlines from dmenu ≥ 4.4 (Thanks saurabhgeek92)Michael Stapelberg
fixes #891
2012-12-21i3-dmenu-desktop: don’t add “geany” if “Geany” is already present ↵Michael Stapelberg
(Thanks Tai-Lin Chu)
2012-12-11i3-dmenu-desktop: skip .desktop files with Type != ApplicationMichael Stapelberg
2012-12-11move i3-dmenu-desktop from contrib to /Michael Stapelberg