VirtualBox

Changeset 7594 in vbox for trunk


Ignore:
Timestamp:
Mar 27, 2008 3:20:00 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29094
Message:

FE/Qt3-4: openRemoteSession get the path to the executable through the environment now.

Location:
trunk/src/VBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxSelectorWnd.cpp

    r7442 r7594  
    929929#endif
    930930
     931#if defined (Q_WS_MAC) /* Avoid Lanuch Services confusing this with the selector by using a helper app. */
     932    env += "\nVBOXGUIPATH=../Resources/VirtualBoxVM.app/Contents/MacOS/VirtualBoxVM";
     933#elif defined (Q_WS_WIN)
     934    env += "\nVBOXGUIPATH=VirtualBox.exe";
     935#else
     936    env += "\nVBOXGUIPATH=VirtualBox";
     937#endif
     938
    931939    CProgress progress = vbox.OpenRemoteSession (session, id, "gui", env);
    932940    if (!vbox.isOk())
  • trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk

    r7583 r7594  
    364364ifeq ($(BUILD_TARGET),darwin)
    365365# For the launch trick we need different inode numbers.
    366 VirtualBox_INST = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
     366VirtualBox_INST = $(INST_BIN)VirtualBox4 $(INST_BIN)VirtualBoxVM4
    367367
    368368 # For testing iChat Theater stuff change
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxSelectorWnd.cpp

    r7442 r7594  
    933933#endif
    934934
     935#if defined (Q_WS_MAC) /* Avoid Lanuch Services confusing this with the selector by using a helper app. */
     936    env += "\nVBOXGUIPATH=../Resources/VirtualBoxVM.app/Contents/MacOS/VirtualBoxVM4";
     937#elif defined (Q_WS_WIN)
     938    env += "\nVBOXGUIPATH=VirtualBox4.exe";
     939#else
     940    env += "\nVBOXGUIPATH=VirtualBox4";
     941#endif
     942
    935943    CProgress progress = vbox.OpenRemoteSession (session, id, "gui", env);
    936944    if (!vbox.isOk())
  • trunk/src/VBox/Main/MachineImpl.cpp

    r7516 r7594  
    31613161    if (type == "gui")
    31623162    {
    3163 #ifdef RT_OS_DARWIN /* Avoid Lanuch Services confusing this with the selector by using a helper app. */
    3164         const char VirtualBox_exe[] = "../Resources/VirtualBoxVM.app/Contents/MacOS/VirtualBoxVM";
    3165 #else
    3166         const char VirtualBox_exe[] = "VirtualBox" HOSTSUFF_EXE;
    3167 #endif
    3168         Assert (sz >= sizeof (VirtualBox_exe));
     3163        char VirtualBox_exe[sz];
     3164        size_t cchActual;
     3165        vrc = RTEnvGetEx (env, "VBOXGUIPATH", VirtualBox_exe, sz, &cchActual);
     3166        AssertRCBreakVoid (vrc);
    31693167        strcpy (cmd, VirtualBox_exe);
    31703168
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette