Commit Graph

23 Commits

Author SHA1 Message Date
d968d39b27 Replace http:// with https:// where applicable
The testcases will be updated automatically in a separate commit.
2017-09-24 10:19:07 +02:00
838616a165 prevent multiple menu items per .desktop entry
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-05-15 05:02:09 +02:00
32175b0a1f Fix i3-dmenu-desktop quoted command name
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"
2017-04-30 14:40:04 +02:00
7b1729a85b i3-dmenu-desktop: do not die on failed open 2016-03-23 18:48:38 +01:00
884214f14f Update copyright notices and get rid of ranges
The script used to make these changes can be found at:

   https://gist.github.com/Deiz/32322020f76d23e2bf8f
2015-04-20 17:50:21 -04:00
9a355dcb92 Fix comment box 2015-03-12 11:18:12 +01:00
94b1e76af4 degendered terms 2015-03-11 21:41:43 -07:00
9b0ec8b2ae Bugfix: i3-dmenu-desktop: quote path (Thanks nikolaus)
fixes #1316
2014-07-11 09:51:05 +02:00
0d50658fa7 i3-dmenu-desktop: don’t use smartmatch (it’s experimental)
This commit should not change functionality at all (famous last words).
2014-05-15 22:52:35 +02:00
a0e979d097 i3-dmenu-desktop: also quote the %c field code (Thanks bo)
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
2014-04-26 14:25:12 +02:00
35aec2f038 i3-dmenu-desktop: honor Path= key (Thanks Alexander)
fixes #1041
2013-07-13 17:47:10 +02:00
7552a02d5c i3-dmenu-desktop: run commands when they don’t match a .desktop file
This allows you to enter e.g. "i3 layout stacking" (provided you don’t
have an i3 .desktop file)
2013-03-21 23:32:46 +01:00
271189444d bump copyright years to 2013 2013-03-17 01:01:04 +01:00
a7ba8931d5 i3-dmenu-desktop: improve error message when dmenu cannot be found
fixes #984
2013-03-17 00:59:18 +01:00
c534b6f7e3 i3-dmenu-desktop: bump version to 1.4 2013-03-12 13:38:14 +01:00
8327f837a0 i3-dmenu-desktop: remove %i from commandline
We don’t currently support the icon argument, but entirely not handling
%i leads to e.g. “digikam” not starting.
2013-03-03 21:27:56 +01:00
23078f6ded i3-dmenu-desktop: List filenames of .desktop files
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
2013-01-30 13:39:49 +01:00
0d354ebd0c i3-dmenu-desktop: skip broken files (no/empty Exec=) but warn about them 2012-12-26 18:31:33 +01:00
ba1b3a3240 i3-dmenu-desktop: skip files with broken utf8 but warn about it 2012-12-26 18:31:21 +01:00
f866607c67 i3-dmenu-desktop: strip newlines from dmenu ≥ 4.4 (Thanks saurabhgeek92)
fixes #891
2012-12-25 12:41:00 +01:00
e0194f0765 i3-dmenu-desktop: don’t add “geany” if “Geany” is already present (Thanks Tai-Lin Chu) 2012-12-21 00:04:29 +01:00
5a63b64fb8 i3-dmenu-desktop: skip .desktop files with Type != Application 2012-12-11 22:43:06 +01:00
9f7b4b9a43 move i3-dmenu-desktop from contrib to / 2012-12-11 22:10:22 +01:00