George Vlahavas
d6b4773838
Mention XDGMENUMAKERTERM in manpage
9 years ago
George Vlahavas
6aa7487bab
Add TESTS file
Add a TESTS file that explains how icon related tests will FAIL in any
other system but mine.
9 years ago
George Vlahavas
4df9fc00f2
Hardcode xterm as the default terminal for tests
Since the original menus were created with xterm set as the default
terminal emulator, make sure it is also used for testing as well.
9 years ago
George Vlahavas
7034fa1f6c
Use XDGMENUMAKERTERM var to override terminal app
Check if an XDGMENUMAKERTERM environment variable is set. If it is, set
the default terminal emulator to it. This overrides any other setting.
9 years ago
George Vlahavas
ccffdbd6db
Fix typo
9 years ago
George Vlahavas
dfd7c76ddf
Correct command syntax for blackbox/fluxbox
Replace the parentheses with braces for the menu updating commands in
the blackbox and fluxbox sections.
9 years ago
George Vlahavas
5c0761ef9b
Use better names for subsection titles
Use more descriptive names for the subsection titles in the windowmaker
section.
9 years ago
George Vlahavas
28c2170df0
Add blackbox section in README
9 years ago
George Vlahavas
f001fa0622
Add a section about blackbox in the manpage
9 years ago
George Vlahavas
aaa872aeaf
Add test file for blackbox
9 years ago
George Vlahavas
db0fb24433
Add support for Blackbox
Blackbox menus are exactly the same as Fluxbox menus. They just don't
support icons.
9 years ago
George Vlahavas
0886144d2b
Remove reduntant variable
The show variable is not needed anymore.
9 years ago
George Vlahavas
8c5f07f011
Don't process desktop entries if they won't show
If for any reason the desktop entry won't be shown (for example if
NoDisplay is set), then don't process the desktop entry any further as
there is no need to. Should make processing a tiny bit faster.
9 years ago
George Vlahavas
a2da39c7e9
Clean tests when cleaning from main dir
When running "make clean" from the main directory, also clean the
generated test files.
9 years ago
George Vlahavas
4b4b19c8df
Make it possible to specify the python executable
Use a PYTHON variable to specify which python executablet to use when
testing. Example:
make test PYTHON=/usr/bin/python
9 years ago
George Vlahavas
aa077339b7
Make the location of xdgmenumaker configurable
The xdgmenumaker executable can be anywhere set by the MM variable when
running make for testing, like:
make test MM=/usr/local/bin/xdgmenumaker
9 years ago
George Vlahavas
c11e3a92fd
Add tests
Add a test rule that is used to test the output of xdgmenumaker. Also
add a test-clean rule that cleans the files that are generated during
testing.
9 years ago
George Vlahavas
786e55bb2d
Add generated menus for testing
Use these generated menus as templates for testing.
9 years ago
George Vlahavas
f9b6c96dc0
Add collection of .desktop files for testing
Add several .desktop files that will be used for testing the creation of
menus.
9 years ago
George Vlahavas
258978281f
Read testing environment variable
Determine if an XDGMENUMAKER_TEST exists and equals "1". If it does,
read the .desktop files from the tests directory instead of reading the
standard systemwide and homedir .desktop files.
9 years ago
George Vlahavas
87110b8adf
Add uninstall rule to PHONY list
9 years ago
George Vlahavas
bf30e3aff1
Rename iterator variables
Use more descriptive names for some iterator variables. Easier to
understand the code this way.
9 years ago
George Vlahavas
202233d910
Move classes to the top, add some comments
Move the class definitions towards the top of the file and also add some
comments describing what each class does.
9 years ago
George Vlahavas
c3c0154769
Add App and MenuCategory classes
Use classes instead of clumsy lists for passing data around. Makes for
much more readable code.
9 years ago
George Vlahavas
1399f0b6d7
Refactor to use the MenuEntry class better
A more sane way to use the MenuEntry class
9 years ago
George Vlahavas
66ef18f89f
Add message about generating manpage
Show a message that informs what's being done when running "make".
9 years ago
George Vlahavas
de5fb49eb1
Better text wrapping
Keeps (almost) everything within 79 chars.
9 years ago
George Vlahavas
dd85935a78
Replace tabbed intentation with spaces
PEP8 compliance. Also add instructions for vim at the top of the file to follow these.
9 years ago
George Vlahavas
e214b54c5e
Use the print function from __future__
This should make it easier to port to python3 later
9 years ago
George Vlahavas
f3ef55834a
State utf8 encoding
State that the file is utf8 encoded at the top of the file. Makes good
practice.
9 years ago
George Vlahavas
6dcfbec3c5
Add trailing backspaces
Doesn't work with out them...
9 years ago
George Vlahavas
4dbac413da
Put desktop-directories in a custom PREFIX
When installing with "make install" use the PREFIX variable to determine
the location of desktop-directories as well. It goes under
PREFIX/share/desktop-directories
If xdgmenumaker is run in-place, it looks for it in
../desktop-directories
as it should be in the source directory tree.
9 years ago
George Vlahavas
02062243bc
Update system category translations
9 years ago
George Vlahavas
50badfb0e3
Update other category translations
9 years ago
George Vlahavas
4b0fda66f3
Update office category translations
9 years ago
George Vlahavas
218bd4c6a0
Update graphics category translations
9 years ago
George Vlahavas
11b14b3518
Update games category translations
9 years ago
George Vlahavas
621e08c66c
Merge branch 'master' of github.com:gapan/xdgmenumaker
9 years ago
George Vlahavas
b01492403f
Update education category with new translations
9 years ago
George Vlahavas
66771426fd
Merge pull request #4 from rezso/patch-1
Fix manual installation
9 years ago
rezso
e28b7ebee2
Fix manual installation
man/xdgmenumaker.man not created, the manual never installed
9 years ago
George Vlahavas
c19c063d6f
Restore Version and Encoding fields
9 years ago
George Vlahavas
cf1e5cbd75
Update accessories category translations
9 years ago
George Vlahavas
b439dc6099
Update applications category translations
9 years ago
George Vlahavas
99ed4c4da1
Better wrapping of help screen
Manually wrap the --help message to 79 characters.
9 years ago
George Vlahavas
e558aff390
Better syntax for if statement
9 years ago
George Vlahavas
de13b106f2
Remove reduntant globals
No need for declaring these variables as globals in these functions.
Values are only read in there, not modified.
9 years ago
George Vlahavas
5c9423db02
Remove unnecessary comparisons with True
It's more pythonic to not have actual equality tests for True.
9 years ago
George Vlahavas
63258cdc97
Use markdown italics properly
9 years ago
George Vlahavas
edf5c451f6
Wrap config filenames with verbatim quotes
Use verbatim quotes when referring to configuration files in the text.
9 years ago