George Vlahavas
7ff68163d1
Remove deprecated pygtkcompat
Fixes #32
1 year ago
George Vlahavas
d959ec16db
Fix typo in comment
2 years ago
George Vlahavas
a145ffff2f
Mention that -n does not work with openbox.
2 years ago
George Vlahavas
63b66f6542
Remove part about icons
2 years ago
George Vlahavas
7ffc395db0
Update documentation for openbox
Include info about generating a dynamic pipe-menu.
2 years ago
George Vlahavas
8e7c83e95b
Remove bold formatting.
2 years ago
George Vlahavas
a7c9fc879b
Extract wm_supports_icons function.
2 years ago
George Vlahavas
6523859b69
Update openbox test file
2 years ago
George Vlahavas
69296625b9
Fix phrasing
2 years ago
George Vlahavas
81d365613d
Add instructions for openbox
2 years ago
George Vlahavas
11b0da0de3
Merge pull request #30 from digital-freak/master
Add support for Openbox pipe-menus
2 years ago
digital-freak
ee9b954df2
Add test for Openbox pipe-menu
2 years ago
digital-freak
f0c632076f
Add support Openbox pipe-menus
2 years ago
digital-freak
c6b15ce054
Add .orig files to .gitignore
2 years ago
George Vlahavas
9227cf1605
Replace global variables with a dictionary
It's better organized this way.
2 years 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 .
2 years ago
George Vlahavas
a9c674fb03
Merge pull request #28 from sunshine69/sunshine69-patch-1
Fix syntax warning in python 3.12
2 years ago
Steve Kieu
71c0d0271e
Fix syntax warning in python 3.12
2 years ago
George Vlahavas
04e2b9cb93
Add missing parentheses
Fixes #25 .
3 years ago
George Vlahavas
7dd8a63abd
Remove future import for print function
Not needed anymore, as we're always using Python 3 now.
5 years ago
George Vlahavas
be98a02e04
Merge pull request #23 from pinotree/drop-python2
Drop support for Python 2
5 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.
5 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.
5 years ago
George Vlahavas
1931ee4079
Merge pull request #22 from pinotree/qwindowtitle
Ignore also -qwindowtitle %c in Exec
5 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.
5 years ago
George Vlahavas
bc99abf2af
Replace SafeConfigParser with ConfigParser
SafeConfigParser seems to be deprecated now.
Closes #20
5 years ago
George Vlahavas
2552e06343
Merge pull request #19 from bgstack15/onlyshowin
handle OnlyShowIn and NotShowIn better
6 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.
6 years ago
George Vlahavas
08554c83f5
Remove redundant word
8 years ago
George Vlahavas
ebfcea7459
Add generated manpage to gitignore
8 years ago
George Vlahavas
ee8d421782
Add info about amiwm in manpage
8 years ago
George Vlahavas
da7f1debe6
Add info about amiwm in README.md
8 years ago
George Vlahavas
65255ffcc7
Add menus_test in .gitignore
8 years ago
George Vlahavas
f35861ff70
Add test for amiwm
8 years ago
George Vlahavas
ae2952675a
Mention amiwm in the --help message
8 years ago
George Vlahavas
2d52840859
Add support for amiwm
8 years ago
George Vlahavas
eabec4527d
Update tests
8 years ago
George Vlahavas
f2944fee0d
Add description for --no-svg option
8 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
8 years ago
George Vlahavas
dcc48c6611
Merge pull request #12 from quatauta/dict-has-key-in
Python 3 removed dict.has_key(), use in operator
9 years ago
Daniel Schömer
40363599d0
Python 3 removed dict.has_key(), use in operator
Should solve #11
9 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.
9 years ago
George Vlahavas
b50ac52703
Merge pull request #9 from roarde/category-selection-order
Use first valid category listed in Desktop Entry
9 years ago
roarde
0f6b825298
Use first valid category listed in Desktop Entry
9 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.
9 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.
9 years ago
George Vlahavas
3c923b7e63
Change replacement order for %c
Quoted keys should be replaced first, otherwise they will never be
replaced.
9 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.
9 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. "
9 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.
9 years ago