George Vlahavas
a145ffff2f
Mention that -n does not work with openbox.
5 months ago
George Vlahavas
63b66f6542
Remove part about icons
5 months ago
George Vlahavas
7ffc395db0
Update documentation for openbox
Include info about generating a dynamic pipe-menu.
5 months ago
George Vlahavas
8e7c83e95b
Remove bold formatting.
5 months ago
George Vlahavas
a7c9fc879b
Extract wm_supports_icons function.
5 months ago
George Vlahavas
6523859b69
Update openbox test file
5 months ago
George Vlahavas
69296625b9
Fix phrasing
5 months ago
George Vlahavas
81d365613d
Add instructions for openbox
5 months ago
George Vlahavas
11b0da0de3
Merge pull request #30 from digital-freak/master
Add support for Openbox pipe-menus
5 months ago
digital-freak
ee9b954df2
Add test for Openbox pipe-menu
5 months ago
digital-freak
f0c632076f
Add support Openbox pipe-menus
5 months ago
digital-freak
c6b15ce054
Add .orig files to .gitignore
5 months ago
George Vlahavas
9227cf1605
Replace global variables with a dictionary
It's better organized this way.
5 months ago
George Vlahavas
b9011504a5
Add svg icon support for icewm
Well... apparently IceWM has had support for svg icons since 2017 and I
had totally missed that. Thanks to SteelT1 for reporting this.
Fixes #29 .
5 months ago
George Vlahavas
a9c674fb03
Merge pull request #28 from sunshine69/sunshine69-patch-1
Fix syntax warning in python 3.12
8 months ago
Steve Kieu
71c0d0271e
Fix syntax warning in python 3.12
8 months ago
George Vlahavas
04e2b9cb93
Add missing parentheses
Fixes #25 .
2 years ago
George Vlahavas
7dd8a63abd
Remove future import for print function
Not needed anymore, as we're always using Python 3 now.
4 years ago
George Vlahavas
be98a02e04
Merge pull request #23 from pinotree/drop-python2
Drop support for Python 2
4 years ago
Pino Toscano
e86d98c8c6
Drop Python 2 support
Python 2 went EOL almost 1 year and half ago, and Python 2 bits are
tested less and less. Even more, Python 3 has been available for years
before that.
Hence, drop the support for Python 2, and assume Python 3 instead.
4 years ago
Pino Toscano
103914b7e7
Switch to Python 3 as default
Discourage the usage of Python 2 by using Python 3 as default Python
everywhere.
4 years ago
George Vlahavas
1931ee4079
Merge pull request #22 from pinotree/qwindowtitle
Ignore also -qwindowtitle %c in Exec
4 years ago
Pino Toscano
e63c8f63d0
Ignore also -qwindowtitle %c in Exec
Qt 5 supports a -qwindowtitle for the main window title, so ignore it
in the same way of -caption %c.
4 years ago
George Vlahavas
bc99abf2af
Replace SafeConfigParser with ConfigParser
SafeConfigParser seems to be deprecated now.
Closes #20
4 years ago
George Vlahavas
2552e06343
Merge pull request #19 from bgstack15/onlyshowin
handle OnlyShowIn and NotShowIn better
4 years ago
B Stack
62fb13e154
handle OnlyShowIn and NotShowIn better
While the target WMs are not registered with freedesktop, some
users do use these fields for these WMs.
https://github.com/search?l=&q=onlyshowin%3D.%2Afluxbox+extension%3Adesktop&type=Code
returns 367 code results.
4 years ago
George Vlahavas
08554c83f5
Remove redundant word
6 years ago
George Vlahavas
ebfcea7459
Add generated manpage to gitignore
6 years ago
George Vlahavas
ee8d421782
Add info about amiwm in manpage
6 years ago
George Vlahavas
da7f1debe6
Add info about amiwm in README.md
6 years ago
George Vlahavas
65255ffcc7
Add menus_test in .gitignore
6 years ago
George Vlahavas
f35861ff70
Add test for amiwm
6 years ago
George Vlahavas
ae2952675a
Mention amiwm in the --help message
6 years ago
George Vlahavas
2d52840859
Add support for amiwm
6 years ago
George Vlahavas
eabec4527d
Update tests
7 years ago
George Vlahavas
f2944fee0d
Add description for --no-svg option
7 years ago
George Vlahavas
7bde503afc
Use SVG icons for JWM menus
Apparently JWM supports SVG icons, so use them when they are available.
Also provide a --no-svg command line option to disable their use.
Fixes #13
7 years ago
George Vlahavas
dcc48c6611
Merge pull request #12 from quatauta/dict-has-key-in
Python 3 removed dict.has_key(), use in operator
8 years ago
Daniel Schömer
40363599d0
Python 3 removed dict.has_key(), use in operator
Should solve #11
8 years ago
George Vlahavas
21a399042f
Exit if no X session is found
Catch the exception that is raised when an icon lookup is performed
without an active X session and bail out.
8 years ago
George Vlahavas
b50ac52703
Merge pull request #9 from roarde/category-selection-order
Use first valid category listed in Desktop Entry
8 years ago
roarde
0f6b825298
Use first valid category listed in Desktop Entry
8 years ago
George Vlahavas
f5e3564845
Extract clean_up_categories from get_entry_info
Just to make the get_entry_info function smaller and more readable.
8 years ago
George Vlahavas
907f2a119d
Extract remove_command_keys from get_entry_info
The get_entry_info function was getting too long. It's cleaner if we
extract the part that removes the command keys from it.
8 years ago
George Vlahavas
3c923b7e63
Change replacement order for %c
Quoted keys should be replaced first, otherwise they will never be
replaced.
8 years ago
George Vlahavas
db833f265d
Replace the %k key in Exec
This is what freedektop says about it:
"The location of the desktop file as either a URI (if for example
gotten from the vfolder system) or a local filename or empty if no
location is known."
I have never seen this in the wild, but still it might exist somewhere.
8 years ago
George Vlahavas
ca8c0c957b
Replace the icon key (%i) in Exec
This is what freedesktop says about it:
"The Icon key of the desktop entry expanded as two arguments, first
--icon and then the value of the Icon key. Should not expand to any
arguments if the Icon key is empty or missing. "
8 years ago
George Vlahavas
a2ea68873a
Remove caption option for KDE .desktop files
some KDE apps have this "-caption %c" in a few variations. %c is "The
translated name of the application as listed in the appropriate Name key
in the desktop entry" according to freedesktop. All apps launch without a
problem without it as far as I can tell, so it's better to remove it than
have to deal with extra sets of nested quotes which behave differently in
each WM. This is not 100% failure-proof. There might be other variations
of this out there, but we can't account for every single one. If someone
finds one another one, I can always add it later.
8 years ago
George Vlahavas
85dffdd9a5
Improve icon extension handling
In addition to other icon file types, also detect svgz icons. Do not
use them in any case, since none of the supported WMs can use them.
Also, make the extension detection case-insensitive. I've never seen an
icon extension with capitals in the wild, but who knows...
Finally, clean up the code a bit, so it reads easier.
8 years ago
George Vlahavas
a5f8ab0ff2
Add tests for twm
8 years ago