aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils')
-rw-r--r--src-qt5/desktop-utils/lumina-archiver/TarBackend.cpp5
-rw-r--r--src-qt5/desktop-utils/lumina-notify/README.md41
-rw-r--r--src-qt5/desktop-utils/lumina-notify/lumina-notify.pro19
-rw-r--r--src-qt5/desktop-utils/lumina-notify/main.cpp25
4 files changed, 4 insertions, 86 deletions
diff --git a/src-qt5/desktop-utils/lumina-archiver/TarBackend.cpp b/src-qt5/desktop-utils/lumina-archiver/TarBackend.cpp
index 91e233d0..714cfe45 100644
--- a/src-qt5/desktop-utils/lumina-archiver/TarBackend.cpp
+++ b/src-qt5/desktop-utils/lumina-archiver/TarBackend.cpp
@@ -114,7 +114,10 @@ void Backend::startAdd(QStringList paths, bool absolutePaths){
paths[i] = paths[i].section(parent,1,-1);
if(paths[i].startsWith("/")){ paths[i].remove(0,1); }
}
- args << "-C" << parent; }
+ args << "-C" << parent;
+ }else{
+ args << "-C" << "/";
+ }
args << paths;
if(QFile::exists(filepath)){ //append to existing
args.replaceInStrings(filepath, tmpfilepath);
diff --git a/src-qt5/desktop-utils/lumina-notify/README.md b/src-qt5/desktop-utils/lumina-notify/README.md
deleted file mode 100644
index 4772a743..00000000
--- a/src-qt5/desktop-utils/lumina-notify/README.md
+++ /dev/null
@@ -1,41 +0,0 @@
-### lumina-notify
-
-This is a simple application for launching QDialogs from shell.
-
-Use:
-
-lumina-notify arg1 arg2 arg3 arg4
-
-* arg1 = Message Text
-* arg2 = Button Text (Accept Role)
-* arg3 = Button Text (Reject Role)
-* arg4 = Window Title
-
-For multiple word arguments encapsulate them with "s
-
-***
-Example usage in shell script
-
-~~~~
-#!/bin/csh
-set a=`./lumina-notify "Did Jar Jar do anything wrong?" Yes No "Question"`
-if ($a == 1) then
-set b=`./lumina-notify "Are you sure?" Yes No "Are you Sure?"`
-if ($b == 1) then
-./lumina-notify "Please stop being a hater." Ok Ok "Haters gunna hate"
-else
-set c=`./lumina-notify "Thank you for changing your mind" OK OK "You're Awesome"`
-endif
-else
-./lumina-notify "High Five for Darth Jar Jar" Sure OK "Respect"
-endif`
-~~~~
-
-***
-
-### Library Dependencies
-
-1. Qt 5.0+ (specific modules listed below)
- * core
- * gui
- * widgets
diff --git a/src-qt5/desktop-utils/lumina-notify/lumina-notify.pro b/src-qt5/desktop-utils/lumina-notify/lumina-notify.pro
deleted file mode 100644
index 7aa09583..00000000
--- a/src-qt5/desktop-utils/lumina-notify/lumina-notify.pro
+++ /dev/null
@@ -1,19 +0,0 @@
-#-------------------------------------------------
-# Created by q5sys
-# Released under MIT License 2017-03-08
-#-------------------------------------------------
-include($${PWD}/../../OS-detect.pri)
-
-QT += core gui
-
-greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
-
-TARGET = lumina-notify
-target.path = $${L_BINDIR}
-TEMPLATE = app
-
-DEFINES += QT_DEPRECATED_WARNINGS
-
-SOURCES += main.cpp
-
-INSTALLS += target desktop
diff --git a/src-qt5/desktop-utils/lumina-notify/main.cpp b/src-qt5/desktop-utils/lumina-notify/main.cpp
deleted file mode 100644
index 23f30b95..00000000
--- a/src-qt5/desktop-utils/lumina-notify/main.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-//-------------------------------------------------
-// Created by q5sys (JT)
-// Released under MIT License 2017-03-08
-// A Simple GUI Dialog Program
-//-------------------------------------------------
-
-#include <QApplication>
-#include <QMessageBox>
-#include <QDebug>
-#include <QTextStream>
-
-int main(int argc, char *argv[])
-{
- QApplication a(argc, argv);
- a.setAttribute(Qt::AA_UseHighDpiPixmaps);
- int answer;
- QMessageBox *messageBox = new QMessageBox;
- messageBox->setText(argv[1]);
- QPushButton *pushButtonOk = messageBox->addButton(argv[2], QMessageBox::AcceptRole);
- QPushButton *pushButtonNo = messageBox->addButton(argv[3], QMessageBox::RejectRole);
- messageBox->QDialog::setWindowTitle(argv[4]);
- messageBox->show();
- if(messageBox->exec() == QMessageBox::AcceptRole){ answer = 0; QTextStream cout(stdout); cout << answer;}
- else { answer = 1; QTextStream cout(stdout); cout << answer;}
-}
bgstack15