aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-notify
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils/lumina-notify')
-rw-r--r--src-qt5/desktop-utils/lumina-notify/README.md33
-rw-r--r--src-qt5/desktop-utils/lumina-notify/lumina-notify.pro5
2 files changed, 37 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-notify/README.md b/src-qt5/desktop-utils/lumina-notify/README.md
new file mode 100644
index 00000000..ea71b0f4
--- /dev/null
+++ b/src-qt5/desktop-utils/lumina-notify/README.md
@@ -0,0 +1,33 @@
+### 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`
+~~~~
diff --git a/src-qt5/desktop-utils/lumina-notify/lumina-notify.pro b/src-qt5/desktop-utils/lumina-notify/lumina-notify.pro
index 8b1317d7..7aa09583 100644
--- a/src-qt5/desktop-utils/lumina-notify/lumina-notify.pro
+++ b/src-qt5/desktop-utils/lumina-notify/lumina-notify.pro
@@ -2,15 +2,18 @@
# 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 = qnotify
+TARGET = lumina-notify
+target.path = $${L_BINDIR}
TEMPLATE = app
DEFINES += QT_DEPRECATED_WARNINGS
SOURCES += main.cpp
+INSTALLS += target desktop
bgstack15