wmbutton will happily start and display what otherwise looks like a
functioning display even if none of the possible configuration files
exist. However, the application promptly exits as soon as it has to show
a tooltip. This isn't nice. It looks like a crash to an unsuspecting
user. Terminal output is shown, of course, leading to a decently quick
diagnostic, but the fail isn't early enough to be useable.
The trivial fix is to check if the local configuration file (specified
as a command line argument or defaulting to ~/.wmbutton) or the global
configuration file can be open. If neither can be open, we bail out
early.
This *still* has the problem of only really being functional in a
terminal. A graphical error box would definitely be preferable and is a
possible improvement.
Signed-off-by: Weland Treebark <weland@blinkenshell.org>
The current Makefile script doesn't work properly, because the path
for /etc doesn't use DESTDIR and the installation path for $(DESTDIR)/usr/bin
is not created before installing the binary file in the folder.
LDFLAGS are needed in some distros to build the package, for example Debian.
This patch solves these problems.
This patch is a code clean patch:
- Removes spaces and tabs at end of line.
- Remove curly brackets not needed.
- Change spaces by tabs.
- Add spaces after and before operators.
- Removes spaces not needed.
- Better code style.
- Added void as function argument.
The mouse middle button should be enabled by default (see the help
and the manpage). This patch solves this bug.
The MIDMOUSE definition is removed because the value of MIDMOUSE
changes the middle button behaviour. Now, the middle button always works,
except if the user uses the -m argument.
Now the manpage and the help show the same info.
This patch is a code clean patch:
- Removes spaces and tabs at end of line.
- Remove curly brackets not needed.
- Change spaces by tabs.
- Add spaces after and before operators.
- Removes spaces not needed.
- Better code style.
This patch is based in the code wrote by Christian Aichinger
for the Debian distribution.
Changes are:
- Removed the compilation of ctags by default
- Changed the include /usr/X11R6/include/X11 to /usr/include
- Created install option
This patch is based in the code wrote by Christian Aichinger
for the Debian distribution.
The patch includes the /etc/wmbutton.conf as global configuration
file. This file is readed if $home/.wmbutton don't exists.
The file .wmbutton is a hidden file, and is better to distribute
it as sample configuration file (sample.wmbutton).
Based on Christian Aichinger's patch.
The X11 libraries are now in include/X11 folder, instead of include
folder. Now is possible to compile the application in new systems.
This patch changes the wmbutton version in the README file too.
Based on Christian Aichinger's patch.
The original wmbutton 0.6.1 is added to the repository.
wmbutton is a dockapp with nine buttons (3x3), capable of launch 27
different applications using the left, middle and right buttons.