diff options
author | Ken Moore <ken@ixsystems.com> | 2017-03-31 12:32:46 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-03-31 12:32:46 -0400 |
commit | 0fe16b3717588219f6294876f55eb8e6270cad22 (patch) | |
tree | a092e01355e847b634eac598b63d3982dd01d93e /src-qt5/desktop-utils/lumina-mediaplayer/main.cpp | |
parent | Merge branch 'master' of github.com:trueos/lumina (diff) | |
download | lumina-0fe16b3717588219f6294876f55eb8e6270cad22.tar.gz lumina-0fe16b3717588219f6294876f55eb8e6270cad22.tar.bz2 lumina-0fe16b3717588219f6294876f55eb8e6270cad22.zip |
Get the new lumina-mediaplayer semi-working. If pianobar is installed, it can now use it to play Pandora radio stations - but most of the interactive buttons have not been hooked up to the backend process yet.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-mediaplayer/main.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-mediaplayer/main.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-mediaplayer/main.cpp b/src-qt5/desktop-utils/lumina-mediaplayer/main.cpp new file mode 100644 index 00000000..9eebff9f --- /dev/null +++ b/src-qt5/desktop-utils/lumina-mediaplayer/main.cpp @@ -0,0 +1,30 @@ +//=========================================== +// Lumina-DE source code +// Copyright (c) 2016, Ken Moore +// Available under the 3-clause BSD license +// See the LICENSE file for full details +//=========================================== +#include <QApplication> +#include <QDebug> + +#include <LuminaThemes.h> +#include <LUtils.h> +#include <LuminaSingleApplication.h> + +#include "mainUI.h" + +int main(int argc, char *argv[]) { + LTHEME::LoadCustomEnvSettings(); + LSingleApplication a(argc, argv, "l-mediap"); + //Now go ahead and setup the app + QStringList args; + for(int i=1; i<argc; i++){ + if( QString(argv[i]).startsWith("--") ){ args << QString(argv[i]); } + else{ args << LUtils::PathToAbsolute( QString(argv[i]) ); } + } + //Now start the window + MainUI W; + W.loadArguments(args); + W.show(); + return a.exec(); +} |