Skip to content

Commit 8e2b2ad

Browse files
committed
install.sh: Use cinnamon-dbus-command to restart Cinnamon.
The current method breaks .xsession-errors logging.
1 parent 5196fdb commit 8e2b2ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

weather@mockturtl/install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ if [ "$errors" -eq 0 ]; then
4747
cp --verbose files/weather@mockturtl/${VERSION}/weather-applet.js ~/.local/share/cinnamon/applets/weather\@mockturtl/${VERSION}/weather-applet.js
4848
echo "Restarting Cinnamon..."
4949
# Restart Cinnamon in the background without terminating the script
50-
nohup bash -c "export DISPLAY=:0; cinnamon --replace" > /dev/null 2>&1 &
50+
cinnamon-dbus-command RestartCinnamon 0
51+
# nohup bash -c "export DISPLAY=:0; cinnamon --replace" > /dev/null 2>&1 &
5152
if $DEBUG; then
5253
#cinnamon-looking-glass --logs & #TODO create command line parameter in Looking Glass to open logs tab
5354
cinnamon-looking-glass &

0 commit comments

Comments
 (0)