diff options
author | Ken Moore <ken@pcbsd.org> | 2014-10-06 09:55:02 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2014-10-06 09:55:02 -0400 |
commit | d0371bef82a055b52a71706c13c3fab196510354 (patch) | |
tree | 228da7d2fb8c15ffcfb09e3499661d3471ad2d26 /lumina-desktop/AppMenu.cpp | |
parent | Merge pull request #14 from Nanolx/master (diff) | |
download | lumina-d0371bef82a055b52a71706c13c3fab196510354.tar.gz lumina-d0371bef82a055b52a71706c13c3fab196510354.tar.bz2 lumina-d0371bef82a055b52a71706c13c3fab196510354.zip |
Clean up the new global.h usage in all the Lumina subprojects.
1) Move the global.h file usage into libLumina exclusively
2) Define a new "LuminaOS::LuminaShare()" function for retrieving the install directory for Lumina (based on the PREFIX/global.h)
3) Change all the other lumina sub directories/projects to use the new LuminaShare() function when necessary.
4) This also fixes up the loading of translations in many of the subprojects (found a bug in the path used in a number of them).
Reason:
Previous implementation *only* worked if you built lumina from the base directory, causing problems with rebuilding individual pieces of Lumina. This also cleans up the general lumina projects as they only need the LuminaOS class loaded instead of knowing about this other possible OS implementation.
Diffstat (limited to 'lumina-desktop/AppMenu.cpp')
-rw-r--r-- | lumina-desktop/AppMenu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lumina-desktop/AppMenu.cpp b/lumina-desktop/AppMenu.cpp index 8893c629..496d0932 100644 --- a/lumina-desktop/AppMenu.cpp +++ b/lumina-desktop/AppMenu.cpp @@ -6,11 +6,11 @@ //=========================================== #include "AppMenu.h" #include "LSession.h" -#include "../global.h" +#include <LuminaOS.h> AppMenu::AppMenu(QWidget* parent) : QMenu(parent){ - appstorelink = PREFIX + "/share/applications/softmanager.desktop"; //Default application "store" to display (AppCafe in PC-BSD) - controlpanellink = PREFIX + "/share/applications/pccontrol.desktop"; //Default control panel + appstorelink = LOS::AppStoreShortcut(); //Default application "store" to display (AppCafe in PC-BSD) + controlpanellink = LOS::ControlPanelShortcut(); //Default control panel APPS.clear(); watcher = new QFileSystemWatcher(this); connect(watcher, SIGNAL(directoryChanged(QString)), this, SLOT(watcherUpdate()) ); |