[Trisquel-devel] Rev 43: virtualbox: removed menu about non-free driver install (Closes #4456) in file:///home/bzr/package-helpers/branches/aklis/
Santiago Rodríguez
santi at trisquel.info
Thu Mar 8 22:08:49 CET 2012
At file:///home/bzr/package-helpers/branches/aklis/
------------------------------------------------------------
revno: 43
revision-id: santi at trisquel.info-20120308210703-3tz7hetozfuck8lc
parent: santi at trisquel.info-20120216235128-inm3stwner0mz7de
committer: Santiago Rodríguez <santi at trisquel.info>
branch nick: aklis
timestamp: Thu 2012-03-08 22:07:03 +0100
message:
virtualbox: removed menu about non-free driver install (Closes #4456)
-------------- next part --------------
=== added file 'helpers/oneiric/make-virtualbox'
--- a/helpers/oneiric/make-virtualbox 1970-01-01 00:00:00 +0000
+++ b/helpers/oneiric/make-virtualbox 2012-03-08 21:07:03 +0000
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# Copyright (C) 2012 Santiago Rodr��guez <santi at trisquel.info>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+#
+
+VERSION=1
+COMPONENT=main
+. ./config
+
+#% FREEDOM: Remove menu for non-free drivers
+#% CurrentBehaviour: There is a menu option to install non-free drivers (called Guest Additions)
+#% ExpectedBehaviour: There is no "Install Guest Additions" menu option
+#% Closes: http://trisquel.info/es/issues/4456
+
+FILE=src/VBox/Frontends/VirtualBox/src/runtime/UIMachineMenuBar.cpp
+LINENUM=`grep -n 'pMenu->addAction(pActionsPool->action(UIActionIndex_Simple_InstallGuestTools));' $FILE | cut -d\: -f1`
+
+sed -i "$(($LINENUM-1))","$LINENUM"d $FILE
+
+compile
+
More information about the Trisquel-devel
mailing list