25 Nov 2008 twisti   » (Master)

Right-mouse on a MacBook Pro

I've got a new, shiny MackBook Pro (actually an old one like this but with 15", because I don't like the new ones) and, as probably everyone knows: it only has one button. That sucks very much when it comes to context menus. On my old PowerBook G4 I had some settings in my xorg.conf to enable two- and three-finger taps, but I don't wanted to do that again.

Instead I wanted something to be turned on in GNOME itself. So my attention came to accessibility extensions.

Fortunately I don't need them but there is a nice mouse feature called "Simulated Secondary Click". I wanted to turn on "Trigger secondary click by holding down the primary button", but it said something about "mousetweaks is not installed". Damn...

I searched the OpenSolaris package repositories but couldn't find it. I thought this is a GNOME core package? And what about handicapped people really needing this? So I searched in the spec-files and found this as comment in SUNWgnome-a11y-mousetweaks:

# We have removed mousetweaks from our builds since it is GPLv3.
# For now, leave in the following comment so that our ARC
# recognize that we are not shipping this module starting with
# the 2.24 release.  When we re-integrate this package, remove
# the following line:

I have also filed a bug report to see what the exact problem is.

In the meantime I built it myself from source. I downloaded JDS Common Build Environment (CBE), patched the spec-file a bit:

Index: SUNWgnome-a11y-mousetweaks.spec
--- SUNWgnome-a11y-mousetweaks.spec	(revision 16491)
+++ SUNWgnome-a11y-mousetweaks.spec	(working copy)
@@ -23,7 +23,7 @@
 Name:                    SUNWgnome-a11y-mousetweaks
 Summary:                 provided mouse accessibility
 Version:                 %{mousetweaks.version}
-Source:                  %{name}-manpages-0.1.tar.gz
+#Source:                  %{name}-manpages-0.1.tar.gz
 SUNW_BaseDir:            %{_basedir}
 SUNW_Copyright:          %{name}.copyright
 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
@@ -79,9 +79,9 @@
 %mousetweaks.install -d %name-%version
-rm -rf $RPM_BUILD_ROOT%{_mandir}
-cd %{_builddir}/%name-%version/sun-manpages
+#rm -rf $RPM_BUILD_ROOT%{_mandir}
+#cd %{_builddir}/%name-%version/sun-manpages
+#make install DESTDIR=$RPM_BUILD_ROOT
 %if %build_l10n

...and: voila! I have a right mouse. Nice.

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!