Changeset 76622 in vbox
- Timestamp:
- Jan 3, 2019 3:41:31 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 127926
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/platform
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/platform/UIDesktopServices.h ¶
r76581 r76622 25 25 #include <QUuid> 26 26 27 #ifdef VBOX_GUI_WITH_SHARED_LIBRARY 28 /** Name of the executable (image) used to start VMs. */ 29 # define VBOX_GUI_VMRUNNER_IMAGE "VirtualBoxVM" 30 #endif 31 27 32 /* Qt forward declarations */ 28 33 class QString; -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/platform/win/UIDesktopServices_win.cpp ¶
r76606 r76622 32 32 IShellLink *pShl = NULL; 33 33 IPersistFile *pPPF = NULL; 34 QString strVBox = QDir::toNativeSeparators(QCoreApplication::applicationFilePath()); 34 #ifdef VBOX_GUI_WITH_SHARED_LIBRARY 35 QString strVBox = QDir::toNativeSeparators(QCoreApplication::applicationDirPath() + "/" + VBOX_GUI_VMRUNNER_IMAGE); 36 37 #else 38 QString strVBox = QDir::toNativeSeparatorsgg (QCoreApplication::applicationFilePath()); 39 #endif 35 40 QFileInfo fi(strVBox); 36 41 QString strVBoxDir = QDir::toNativeSeparators(fi.absolutePath()); -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/platform/x11/UIDesktopServices_x11.cpp ¶
r76606 r76622 33 33 if (link.open(QFile::WriteOnly | QFile::Truncate)) 34 34 { 35 #ifdef VBOX_GUI_WITH_SHARED_LIBRARY 36 QString strVBox = QDir::toNativeSeparators(QCoreApplication::applicationDirPath() + "/" + VBOX_GUI_VMRUNNER_IMAGE); 37 #else 38 QString strVBox = QDir::toNativeSeparators(QCoreApplication::applicationFilePath()); 39 #endif 35 40 QTextStream out(&link); 36 41 out.setCodec("UTF-8"); … … 42 47 << "Comment=Starts the VirtualBox machine " << strName << endl 43 48 << "Type=Application" << endl 44 << "Exec=" << QCoreApplication::applicationFilePath()<< " --comment \"" << strName << "\" --startvm \"" << uUuid.toString() << "\"" << endl49 << "Exec=" << strVBox << " --comment \"" << strName << "\" --startvm \"" << uUuid.toString() << "\"" << endl 45 50 << "Icon=virtualbox-vbox.png" << endl; 46 51 /* This would be a real file link entry, but then we could also simply
Note:
See TracChangeset
for help on using the changeset viewer.