Blob Blame History Raw
diff -urNr boinc-client_release-7.18-7.18.1-orig/clientgui/AdvancedFrame.cpp boinc-client_release-7.18-7.18.1/clientgui/AdvancedFrame.cpp
--- boinc-client_release-7.18-7.18.1-orig/clientgui/AdvancedFrame.cpp	2021-08-03 17:52:19.000000000 +0200
+++ boinc-client_release-7.18-7.18.1/clientgui/AdvancedFrame.cpp	2022-06-10 13:54:43.438712713 +0200
@@ -360,6 +360,20 @@
         strMenuName,
         strMenuDescription
     );
+/*
+
+   On Linux distributions, BOINC runs as a service. Users must not be able to
+   try stopping the service from exit menu entry.
+   This leads to unexpected behaviour, like:
+   - service being killed;
+   - service still running.
+   Moreover, the Manager will no longer be able to connect to the client, unless
+   the user connects to 127.0.0.1. Then if the Manager is connected to the client
+   by using 127.0.0.1 address, the "Exit from BOINC Manager" entry will not
+   show any frame asking the user if he wants to stop the service.
+*/
+
+#ifndef __WXGTK_
 
     strMenuDescription.Printf(
         _("Exit %s"),
@@ -381,6 +395,7 @@
         strMenuName,
         strMenuDescription
     );
+#endif
 
 #ifdef __WXMAC__
     // wxWidgets actually puts this in the BOINCManager menu
diff -urNr boinc-client_release-7.18-7.18.1-orig/clientgui/sg_BoincSimpleFrame.cpp boinc-client_release-7.18-7.18.1/clientgui/sg_BoincSimpleFrame.cpp
--- boinc-client_release-7.18-7.18.1-orig/clientgui/sg_BoincSimpleFrame.cpp	2021-08-03 17:52:19.000000000 +0200
+++ boinc-client_release-7.18-7.18.1/clientgui/sg_BoincSimpleFrame.cpp	2022-06-10 13:55:59.347322275 +0200
@@ -152,7 +152,20 @@
         strMenuName,
         strMenuDescription
     );
+/*
 
+   On Linux distributions, BOINC runs as a service. Users must not be able to
+   try stopping the service from exit menu entry.
+   This leads to unexpected behaviour, like:
+   - service being killed;
+   - service still running.
+   Moreover, the Manager will no longer be able to connect to the client, unless
+   the user connects to 127.0.0.1. Then if the Manager is connected to the client
+   by using 127.0.0.1 address, the "Exit from BOINC Manager" entry will not
+   show any frame asking the user if he wants to stop the service.
+*/
+
+#ifndef __WXGTK_
     strMenuDescription.Printf(
         _("Exit %s"),
         pSkinAdvanced->GetApplicationName().c_str()
@@ -168,6 +181,7 @@
         strMenuName,
         strMenuDescription
     );
+#endif
 
 #ifdef __WXMAC__
     // wxWidgets actually puts this in the BOINCManager menu