Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework program starter #8

Merged
merged 27 commits into from
Oct 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ca781b4
unlimited command queue; added new shutdown methods; added history
Apr 1, 2020
c0d1d83
destroy settings on quit; add date time etc to log files; qshutdown: …
Apr 2, 2020
6bcf7fc
add abort on error; fix window titles
Apr 5, 2020
68edc88
fix singleshot timer closing nonexisting window
Apr 5, 2020
0fa3dd0
add 10 second timeout for abborting; more fixes to come
Apr 6, 2020
c4054ff
added countdown settings; fixed bad window bug; fixed error handling
Apr 7, 2020
0d4799b
fix unability to stop timers; add disconnect where necessary
Apr 8, 2020
180c749
fix config and log location for qprogram-starter
Apr 9, 2020
1d7a95b
fix start available while countdown
Apr 10, 2020
525f8fe
qprogram-starter: updated texts; qshutdown: updated log and config lo…
Apr 11, 2020
2324638
fix cancel tasks -> kill; update ts files
Apr 12, 2020
3df75c8
fix method declaration; fix save history
Apr 12, 2020
175a127
qshutdown: added new icons; reset on missed time; quit on close by de…
Apr 15, 2020
0fdcef8
review texts
Apr 16, 2020
cfef92e
updated package info, version up, readme to md format...
May 4, 2020
f520556
disable warnings as default; remove remaining conf strings
May 4, 2020
828496d
fix manpages; fix qprogram-starter adding output on display output; a…
May 5, 2020
7891c89
message boxes for kill button and for the clear history button in the…
May 6, 2020
5c50234
fix debian info and ts file
May 7, 2020
ae8825e
fix translation files showing wrong text
May 9, 2020
5b951d1
update translation files and source text
May 10, 2020
c8a43d7
add window icon to history dialog
May 11, 2020
9003032
reverted ast_ES back to ast
May 11, 2020
3ea08cd
fix spelling
May 15, 2020
6a35532
fix more mistakes and add German translation
May 15, 2020
2425e6a
fix german translation for qshutdown
May 15, 2020
9781cc5
qprogram-starter: reverse history update behaviour; fixed deprecations
Oct 19, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
shutdown-qapps (1.8.0-1) unstable; urgency=low
* qshutdown
- increased time-skip-check to 30 seconds. If your system goes to sleep
etc. please wait 30 seconds until you wakeup or start your system again.
- changed default settings and log file location. See the info window for
more information.
- added default value instead of "0"
- added custom icons for system tray (because of heavy trouble under
Ubuntu/Xubuntu etc.)
- fixed calendar date problems
- fixed message box "bad window" message
- disable "warinings on" as default
* qprogram-starter
- replaced second text editor with more efficient functinality
(see below)
- run each line in the text editor as a separate process unless
the line ends with a backslash
- the default settings and log files location has changed (see
the info window for more information)
- added command history
- fixed message box "bad window" message
- revision of button names / tooltip texts etc.

-- Christian Metscher <[email protected]> Wed, 06 May 2020 22:55:29 +0900

shutdown-qapps (1.7.4-1) unstable; urgency=low

- switched to QT 5
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Section: utils
Priority: optional
Maintainer: Christian Metscher <[email protected]>
Build-Depends: debhelper (>= 9), qtbase5-dev, qttools5-dev-tools, qt5-qmake:native
Standards-Version: 4.3.0
Standards-Version: 4.5.0
Vcs-Git: https://github.com/hakaishi/shutdown-qapps.git
Vcs-browser: https://github.com/hakaishi/shutdown-qapps
Homepage: https://launchpad.net/~hakaishi
Expand Down
2 changes: 1 addition & 1 deletion debian/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Upstream-Name: shutdown-qapps
Source: https://launchpad.net/qt-shutdown-p/shutdown-qapps/debian-release

Files: *
Copyright: 2019 Christian Metscher <[email protected]>
Copyright: 2020 Christian Metscher <[email protected]>
License: GPL-3
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
10 changes: 6 additions & 4 deletions debian/qprogram-starter.1
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
.TH qprogram-starter 1 "2010-09-29"
.TH qprogram-starter 1 "2020-05-04"
.SH NAME
qprogram-starter \- A program starter tool
.SH SYNOPSIS
.B qprogram-starter
.br
.SH DESCRIPTION
.B qprogram-starter
is a simple Qt4 program to start a program or process. If you like with the options to set a start date, to log output and errors, and to shutdown after finish.
is a simple Qt5 program to start a program or process. If you like, there are options to set a start date, to log output and errors, and to shutdown after finish.
.PP
Every line in the text editor is handled (and logged) as a serperate process unless the line ends with a backslash.
.PP
This program uses qdbus to send a shutdown request to the gnome- or kde-session-manager. If it won't do gnome-power-cmd or gnome-power-cmd.sh will be used. When this also fails then qdbus will send the shutdown request to HAL or ConsoleKit (note that when sending the request to HAL or ConsoleKit the session will never be saved). And if this won't do as well, the sudo shutdown command will be used. In this case you need root-rights, so one can to do the following:
.PP
Post the following in a terminal:
"EDITOR=nano sudo \-E visudo" and add this line:
"* ALL = NOPASSWD:/sbin/shutdown" whereas * replaces the username or %groupname.
.PP
.SH Configurationfile qprogram-starter.conf
The configurationfile (and logfiles) is located at ~/.qprogram-starter
.SH Configurationfile
The configurationfile's (and logfiles) location can be seen in the info window inside the app
.PP
.SH KNOWN ISSUES
.PP
Expand Down
2 changes: 1 addition & 1 deletion debian/qprogram-starter.docs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
qprogram-starter/README
qprogram-starter/README.md
qprogram-starter/NEWS
10 changes: 5 additions & 5 deletions debian/qshutdown.1
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
.\"Created with GNOME Manpages Editor
.TH qshutdown 1 "2013-04-20"
.TH qshutdown 1 "2020-05-04"
.PP
.SH NAME
qshutdown \- An avanced shutdown tool
qshutdown \- An advanced shutdown tool
.PP
.SH SYNOPSIS
.B qshutdown
.RI [ options ]
.br
.PP
.SH DESCRIPTION
qshutdown is a simple tool to choose a time or a number of minutes to shutdown, reboot, suspend or hibernate after.
qshutdown is a simple tool to choose a time or a number of minutes to shutdown, reboot, suspend or hibernate after.
.PP
qshutdown will show itself 3 times as a warning if there are less than 70 seconds left. (if 1 Minute or local time +1 Minute was set it'll appear only once.)
.PP
Expand Down Expand Up @@ -46,15 +46,15 @@ If you want qshutdown to run with "parental lock" for every user, you can do
.PP
\& $ sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/
.PP
and set the option Lock_all in \fI/root/.qshutdown/qshutdown.conf\fR to \fBtrue\fR. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to do
and set the option Lock_all in the root users settings file to \fBtrue\fR. Note that qshutdown has to start once to generate the settings file. Furthermore there is a need to do
.PP
\& $ EDITOR=nano sudo \-E visudo
.PP
and add the following line to the sudoers:
.PP
\& * ALL = NOPASSWD:/usr/bin/qshutdown
.PP
If you should ever forget your set password, just remove the whole line starting with \fBPassword\fR manually from the qshutdown.conf.
If you should ever forget your set password, just remove the whole line starting with \fBPassword\fR manually from the settings file.
.PP
.SH FILES
The configurationfile (and logfile) is located at \fI~/.qshutdown/\fR (under Linux/Unix).
Expand Down
2 changes: 1 addition & 1 deletion debian/qshutdown.docs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
qshutdown/README
qshutdown/README.md
qshutdown/NEWS
3 changes: 1 addition & 2 deletions debian/upstream/metadata
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Name: qshutdown
Repository: https://github.com/hakaishi/shutdown-qapps.git
Repository-Browse: https://github.com/hakaishi/shutdown-qapps
Contact: Christian Metscher <[email protected]>
Reference:
Author: Christian Metscher
Author: Christian Metscher
13 changes: 13 additions & 0 deletions qprogram-starter/NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
Changes in Release 1.8.0
=========================

- replaced second text editor with more efficient functinality
(see below)
- run each line in the text editor as a separate process unless
the line ends with a backslash
- the default settings and log files location has changed (see
the info window for more information)
- added command history
- other small fixes


Changes in Release 1.7.0
=========================

Expand Down
20 changes: 9 additions & 11 deletions qprogram-starter/README → qprogram-starter/README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
qprogram-starter

# qprogram-starter

## INSTALL
Dependencies: qtbase5-dev, qttools5-dev-tools, build-essential


If you want to install from source, open a terminal and change into this folder.
To install type:

qmake
sudo make install distclean


`qmake`
`sudo make install distclean`

## UNINSTALL
To uninstall type:

qmake (if the Makefile has been removed)
sudo make deinstall
`qmake` (if the Makefile has been removed)
`sudo make deinstall`

(note that ~/.qprogram-starter/qprogram-starter.conf and
(please note that the users qprogram-starter settings file and
the log files won't be removed)


KNOWN ISSUE:
=============
## KNOWN ISSUE:

For most systems using the Gnome Shell a certain DBus method has been removed,
thus a shutdown dialog will be likely to appear if qshutdown's methods have
Expand Down
1 change: 1 addition & 0 deletions qprogram-starter/autostart/qprogram-starter.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ Type=Application
Icon=qprogram-starter
Categories=Utility;
Name[en_US]=qprogram-starter
Comment=A program starter with shutdown options, start time setting etc
6 changes: 3 additions & 3 deletions qprogram-starter/qprogram-starter.pro
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ system(lrelease qprogram-starter.pro)
QMAKE_DISTCLEAN = src/translations/*.qm

# Input
HEADERS = src/gui.h src/preferences.h
FORMS = src/ui/gui.ui src/ui/preferences.ui
SOURCES = src/main.cpp src/gui.cpp src/preferences.cpp
HEADERS = src/gui.h src/preferences.h src/history.h
FORMS = src/ui/gui.ui src/ui/preferences.ui src/ui/history.ui
SOURCES = src/main.cpp src/gui.cpp src/preferences.cpp src/history.cpp
RESOURCES = ../qprogram-starter.qrc
TRANSLATIONS = src/translations/qprogram-starter-ast.ts\
src/translations/qprogram-starter-bs.ts\
Expand Down
Loading