2022-11-22 00:01:58 +01:00
Index: VirtualBox-7.0.4/src/apps/Makefile.kmk
2010-12-23 11:08:49 +01:00
===================================================================
2022-11-22 00:01:58 +01:00
--- VirtualBox-7.0.4.orig/src/apps/Makefile.kmk
+++ VirtualBox-7.0.4/src/apps/Makefile.kmk
2022-11-18 22:49:33 +01:00
@@ -28,5 +28,7 @@
SUB_DEPTH = ../..
include $(KBUILD_PATH)/subheader.kmk
2010-12-23 11:08:49 +01:00
2011-08-28 09:05:37 +02:00
+include $(PATH_SUB_CURRENT)/VBoxPermissionMessage/Makefile.kmk
2010-12-23 11:08:49 +01:00
+
2012-10-02 16:03:09 +02:00
include $(FILE_KBUILD_SUB_FOOTER)
2010-12-23 11:08:49 +01:00
2022-11-22 00:01:58 +01:00
Index: VirtualBox-7.0.4/src/apps/VBoxPermissionMessage/Makefile.kmk
2011-08-28 09:05:37 +02:00
===================================================================
--- /dev/null
2022-11-22 00:01:58 +01:00
+++ VirtualBox-7.0.4/src/apps/VBoxPermissionMessage/Makefile.kmk
2017-12-29 20:22:29 +01:00
@@ -0,0 +1,32 @@
2011-08-28 09:05:37 +02:00
+# $Id: Makefile.kmk 28800 2010-04-27 08:22:32Z vboxsync $
+## @file
+#
+# VBoxPermissionMessage is wrapper for suse users
+#
+#
+# Copyright (C) 2009 Oracle Corporation
+#
+# This file is part of VirtualBox Open Source Edition (OSE), as
+# available from http://www.virtualbox.org. This file is free software;
+# you can redistribute it and/or modify it under the terms of the GNU
+# General Public License (GPL) as published by the Free Software
+# Foundation, in version 2 as it comes in the "COPYING" file of the
+# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
+# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
+#
2010-12-23 11:08:49 +01:00
+
+
2011-08-28 09:05:37 +02:00
+SUB_DEPTH = ../../..
+include $(KBUILD_PATH)/subheader.kmk
+
+PROGRAMS += VBoxPermissionMessage
+
2016-07-26 18:15:55 +02:00
+VBoxPermissionMessage_TEMPLATE = VBOXQTGUIEXE
2011-08-28 09:05:37 +02:00
+VBoxPermissionMessage_SOURCES = VBoxPermissionMessage.cpp
+VBoxPermissionMessage_QT_MODULES = Core Gui
2017-12-29 20:22:29 +01:00
+VBoxPermissionMessage_QT_MODULES += Widgets
2011-08-28 09:05:37 +02:00
+
+#INSTALLS += VBoxPermissionMessage
+
+include $(KBUILD_PATH)/subfooter.kmk
+
2022-11-22 00:01:58 +01:00
Index: VirtualBox-7.0.4/src/apps/VBoxPermissionMessage/VBoxPermissionMessage.cpp
2010-12-23 11:08:49 +01:00
===================================================================
--- /dev/null
2022-11-22 00:01:58 +01:00
+++ VirtualBox-7.0.4/src/apps/VBoxPermissionMessage/VBoxPermissionMessage.cpp
2010-12-23 11:08:49 +01:00
@@ -0,0 +1,12 @@
2016-07-26 18:15:55 +02:00
+#include <QtWidgets/QApplication>
+#include <QtWidgets/QMessageBox>
2010-12-23 11:08:49 +01:00
+int main(int argc, char *argv[])
+{
+ QApplication app(argc, argv);
+ QMessageBox msgBox;
+ msgBox.setWindowTitle(QObject::tr("Permissions problem !"));
+ msgBox.setText(QObject::tr("You are not a member of the \"vboxusers\" group. Please add yourself to this group before starting VirtualBox. You could do it using: Yast / Security and Users / User and Group management. Don't forget re-login your user account!"));
+ int ret = msgBox.exec();
+ app.quit();
+ return 0;
+}
\ No newline at end of file