diff options
Diffstat (limited to 'lumina-fm/main.cpp')
-rw-r--r-- | lumina-fm/main.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lumina-fm/main.cpp b/lumina-fm/main.cpp index 18c75223..e2f70bc1 100644 --- a/lumina-fm/main.cpp +++ b/lumina-fm/main.cpp @@ -15,7 +15,14 @@ int main(int argc, char ** argv) { QStringList in; for(int i=1; i<argc; i++){ //skip the first arg (app binary) - in << QString(argv[i]); + QString path = argv[i]; + if(path=="."){ + //Insert the current working directory + in << QDir::currentPath(); + }else{ + if(!path.startsWith("/")){ path.prepend(QDir::currentPath()+"/"); } + in << path; + } } if(in.isEmpty()){ in << QDir::homePath(); } #ifdef __FreeBSD__ |