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
George Vlahavas
a1ff1d6d21
Rename README to README.md
9 years ago
George Vlahavas
51c2df2f65
Convert README to markdown
Use markdown formatting for README file.
9 years ago
George Vlahavas
aecf3fadb3
Rename INSTALL file to INSTALL.md
The installation instructions file is formatted with markdown, so why
not have the correct extension.
9 years ago
George Vlahavas
c7c6b967e5
Update installation instructions
Update the INSTALL file with updated instructions for using the
Makefile.
9 years ago
George Vlahavas
6c075e4903
Replace installation script with standard Makefile
Create a standard Makefile that replaces the non-standard installation
script.
9 years ago
George Vlahavas
7a6984a6ba
Mention --size in man page
10 years ago
George Vlahavas
fd6123eca6
Add --size command line option
Add a --size (or -s) command line option that sets the preferred icon
size.
10 years ago
George Vlahavas
6f7b96748c
Update --help message
10 years ago
George Vlahavas
0bb7926e68
Update README and man page with better JWM instructions
10 years ago
George Vlahavas
7020301437
Mention JWM in the README 1st section
10 years ago
George Vlahavas
65233f88b2
Add another comment for JWM static menus
10 years ago
George Vlahavas
bdd5da2ede
Add info about JWM in README
10 years ago
George Vlahavas
b3a162c406
Add JWM info in manpage
10 years ago
George Vlahavas
da8ccd9fd1
Add support for JWM
10 years ago
George Vlahavas
377c636658
Fix option description
Instead of mentioning which WMs each option supports, mention which ones
it doesn't (only windowmaker for now).
10 years ago