Compare commits

...

13 Commits
v15.2 ... v15.3

Author SHA1 Message Date
o9000
d8770ed590 Release 15.3 2017-11-05 12:28:35 +01:00
o9000
be7873a688 Update release script 2017-11-05 12:28:02 +01:00
o9000
cf81f1c9f9 Update release script 2017-11-05 12:27:05 +01:00
o9000
cde05df1bc Update release script 2017-11-05 12:24:46 +01:00
o9000
5fee459945 Update changelog 2017-11-05 12:19:56 +01:00
o9000
6d67291928 Update release script 2017-11-05 12:18:24 +01:00
o9000
4171e23153 Do not run regression tests more than once for a commit 2017-10-16 11:09:56 +02:00
o9000
725f625aba Use correct whitespace in debian/rules (makefile) 2017-10-15 20:48:28 +02:00
o9000
a6ea1eb5a9 Packaging: Workaround cmake issues 2017-10-15 20:41:46 +02:00
o9000
14b983cd0c Packaging: Workaround cmake issues 2017-10-15 20:30:39 +02:00
o9000
23ddb47e0c Reset signal mask at startup 2017-10-15 13:07:12 +02:00
o9000
407aef3786 Reset signal mask before executing commands (issue #674) 2017-10-15 13:00:18 +02:00
o9000
50c7bf77de Do not hardcode path to /etc 2017-10-04 19:15:44 +02:00
12 changed files with 40 additions and 10 deletions

View File

@@ -273,7 +273,7 @@ set_target_properties( tint2 PROPERTIES LINK_FLAGS "-pthread -fno-strict-aliasin
install( TARGETS tint2 DESTINATION bin ) install( TARGETS tint2 DESTINATION bin )
install( FILES tint2.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps ) install( FILES tint2.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps )
install( FILES tint2.desktop DESTINATION ${CMAKE_INSTALL_DATADIR}/applications ) install( FILES tint2.desktop DESTINATION ${CMAKE_INSTALL_DATADIR}/applications )
install( FILES themes/tint2rc DESTINATION /etc/xdg/tint2 ) install( FILES themes/tint2rc DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/xdg/tint2 )
install( FILES default_icon.png DESTINATION ${CMAKE_INSTALL_DATADIR}/tint2 ) install( FILES default_icon.png DESTINATION ${CMAKE_INSTALL_DATADIR}/tint2 )
install( FILES AUTHORS ChangeLog README.md doc/tint2.md DESTINATION ${docdir} ) install( FILES AUTHORS ChangeLog README.md doc/tint2.md DESTINATION ${docdir} )
install( FILES doc/manual.html doc/readme.html DESTINATION ${htmldir} ) install( FILES doc/manual.html doc/readme.html DESTINATION ${htmldir} )

View File

@@ -1,3 +1,8 @@
2017-11-05 15.3
- Fixes:
- Launcher: Reset signal mask before executing commands (issue #674)
- cmake: Do not hardcode path to /etc
2017-10-01 15.2 2017-10-01 15.2
- Fixes: - Fixes:
- Battery info is now again displayed even when current sensor is missing (https://github.com/jmc-88/tint3/issues/34) - Battery info is now again displayed even when current sensor is missing (https://github.com/jmc-88/tint3/issues/34)
@@ -959,3 +964,4 @@ released tint-0.2
. .
. .
. .
.

View File

@@ -1,5 +1,5 @@
# Latest stable release: 15.2 # Latest stable release: 15.3
Changes: https://gitlab.com/o9000/tint2/blob/15.2/ChangeLog Changes: https://gitlab.com/o9000/tint2/blob/15.3/ChangeLog
Documentation: [doc/tint2.md](doc/tint2.md) Documentation: [doc/tint2.md](doc/tint2.md)
@@ -8,7 +8,7 @@ Compile it with (after you install the [dependencies](https://gitlab.com/o9000/t
``` ```
git clone https://gitlab.com/o9000/tint2.git git clone https://gitlab.com/o9000/tint2.git
cd tint2 cd tint2
git checkout 15.2 git checkout 15.3
mkdir build mkdir build
cd build cd build
cmake .. cmake ..

View File

@@ -199,9 +199,9 @@ pre {
</style> </style>
</head> </head>
<body> <body>
<h1 id="latest-stable-release-15-2"><span class="md2man-title">Latest</span> <span class="md2man-section">stable</span> <span class="md2man-date">release:</span> <span class="md2man-source">15.2</span><a name="latest-stable-release-15-2" href="#latest-stable-release-15-2" class="md2man-permalink" title="permalink"></a></h1><p>Changes: <a href="https://gitlab.com/o9000/tint2/blob/15.2/ChangeLog">https://gitlab.com/o9000/tint2/blob/15.2/ChangeLog</a></p><p>Documentation: <a href="manual.html">manual.html</a></p><p>Compile it with (after you install the <a href="https://gitlab.com/o9000/tint2/wikis/Install#dependencies">dependencies</a>):</p><pre class="highlight plaintext"><code>git clone https://gitlab.com/o9000/tint2.git <h1 id="latest-stable-release-15-3"><span class="md2man-title">Latest</span> <span class="md2man-section">stable</span> <span class="md2man-date">release:</span> <span class="md2man-source">15.3</span><a name="latest-stable-release-15-3" href="#latest-stable-release-15-3" class="md2man-permalink" title="permalink"></a></h1><p>Changes: <a href="https://gitlab.com/o9000/tint2/blob/15.3/ChangeLog">https://gitlab.com/o9000/tint2/blob/15.3/ChangeLog</a></p><p>Documentation: <a href="manual.html">manual.html</a></p><p>Compile it with (after you install the <a href="https://gitlab.com/o9000/tint2/wikis/Install#dependencies">dependencies</a>):</p><pre class="highlight plaintext"><code>git clone https://gitlab.com/o9000/tint2.git
cd tint2 cd tint2
git checkout 15.2 git checkout 15.3
mkdir build mkdir build
cd build cd build
cmake .. cmake ..

View File

@@ -1,4 +1,4 @@
.TH TINT2 1 "2017\-10\-01" 15.2 .TH TINT2 1 "2017\-11\-05" 15.3
.SH NAME .SH NAME
.PP .PP
tint2 \- lightweight panel/taskbar tint2 \- lightweight panel/taskbar

View File

@@ -1,4 +1,4 @@
# TINT2 1 "2017-10-01" 15.2 # TINT2 1 "2017-11-05" 15.3
## NAME ## NAME
tint2 - lightweight panel/taskbar tint2 - lightweight panel/taskbar

View File

@@ -190,3 +190,7 @@ if __name__ == '__main__':
run("cd tint2-%s ; mkdir build ; cd build ; cmake .. ; make" % readable_version) run("cd tint2-%s ; mkdir build ; cd build ; cmake .. ; make" % readable_version)
assert_equal(run("./tint2-%s/build/tint2 -v" % readable_version).strip(), "tint2 version %s" % readable_version) assert_equal(run("./tint2-%s/build/tint2 -v" % readable_version).strip(), "tint2 version %s" % readable_version)
os.system("git log -p -1 --word-diff") os.system("git log -p -1 --word-diff")
print "Does this look correct? [y/n]"
choice = raw_input().lower()
if choice != "y":
run("git reset --hard HEAD~ ; git tag -d %s ; git tag -d %s" % (version, readable_version))

View File

@@ -4,7 +4,7 @@
dh $@ dh $@
override_dh_auto_configure: override_dh_auto_configure:
dh_auto_configure -- -DCMAKE_BUILD_TYPE=RelWithDebInfo dh_auto_configure -- -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_SYSCONFDIR=/etc
override_dh_auto_install: override_dh_auto_install:
dh_auto_install --destdir=$(CURDIR)/debian/tmp dh_auto_install --destdir=$(CURDIR)/debian/tmp

View File

@@ -24,11 +24,23 @@ void signal_handler(int sig)
signal_pending = sig; signal_pending = sig;
} }
void reset_signals()
{
for (int sig = 1; sig < 32; sig++) {
signal(sig, SIG_DFL);
}
sigset_t signal_set;
sigemptyset(&signal_set);
sigprocmask(SIG_SETMASK, &signal_set, NULL);
}
void init_signals() void init_signals()
{ {
// Set signal handlers // Set signal handlers
signal_pending = 0; signal_pending = 0;
reset_signals();
struct sigaction sa_chld = {.sa_handler = SIG_IGN}; struct sigaction sa_chld = {.sa_handler = SIG_IGN};
sigaction(SIGCHLD, &sa_chld, 0); sigaction(SIGCHLD, &sa_chld, 0);

View File

@@ -5,6 +5,7 @@ void init_signals();
void init_signals_postconfig(); void init_signals_postconfig();
void emit_self_restart(const char *reason); void emit_self_restart(const char *reason);
int get_signal_pending(); int get_signal_pending();
void reset_signals();
void handle_sigchld_events(); void handle_sigchld_events();

View File

@@ -59,6 +59,7 @@
#include "../panel.h" #include "../panel.h"
#include "timer.h" #include "timer.h"
#include "signals.h"
void write_string(int fd, const char *s) void write_string(int fd, const char *s)
{ {
@@ -398,6 +399,7 @@ pid_t tint_exec(const char *command,
if (dir) if (dir)
chdir(dir); chdir(dir);
close_all_fds(); close_all_fds();
reset_signals();
if (terminal) { if (terminal) {
#if !defined(__OpenBSD__) #if !defined(__OpenBSD__)
fprintf(stderr, "tint2: executing in x-terminal-emulator: %s\n", command); fprintf(stderr, "tint2: executing in x-terminal-emulator: %s\n", command);

View File

@@ -11,7 +11,9 @@ exec 2>&1
cd ~/tint2 cd ~/tint2
git reset --hard git reset --hard
git pull git pull
last=$(cat .last-reg-test)
curr=$(git rev-parse --verify HEAD)
[ "$last" == "$curr" ] && exit 0
cd ~/tint2.wiki cd ~/tint2.wiki
git reset --hard git reset --hard
@@ -27,3 +29,6 @@ cd ~/tint2.wiki
git add tests.md git add tests.md
git commit -am 'Update test results' git commit -am 'Update test results'
git push origin master git push origin master
cd ~/tint2
echo "$curr" > .last-reg-test