question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error with pomodor.notify when using a script

See original GitHub issue

Bug Report

Summary

Affected module: pomodoro

Description:

Error with pomodoro.notify when using a script as outline in issue #532

How to reproduce

Following the steps in issue #532 I created a pomodoro-notify script with the following code and placed it in a Scripts folder in my home directory:

#!/bin/bash

notify-send -u critical "Time Up!" & tput bel

I then tested the script in a terminal and everything worked as expected so I inserted into the pomodo module as such: pomodoro.notify=“/home/dalton/Scripts/pomodoro-notify”

However when I ran the timer like normal (via left-click on the module) at the end of the work period it appears to have ran the script twice and not ran the bell. The “Time Up!” text pops up with the correct urgency so I know that the script is running but the bell sound doesn’t play and the timer resets with 1440 minutes as the work interval.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Apr 4, 2020

I believe the correct syntax is && not &

You can test with

echo "foo" & echo "bar"

vs

echo "foo" && echo "bar"

Single & is supposed to send the command to background

0reactions
ghostcommented, Apr 4, 2020

I didn’t realize that on most systems that would try to ring a pc speaker not a sound device via alsa, pulse, etc.

That was just my assumption. I think at least it used to be like that long ago, maybe even in pre-alsa era.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No possibility to chain commands like audio and visual ...
I use pomodoro.notify="/home/user/bin/pomodoro-notify.sh" - a full path to the notify script, to make sure bumblebee-status can find it.
Read more >
FCC Pomodoro Clock failing in-built tests
Solution: use a callback as second parameter to setState() : setState(prevState => ({ paused: !prevState.paused }), () => { // You can read ......
Read more >
Pomodoro Clock tests not passing although app is functional
Hey everyone, I have constructed a pomodoro clock although it is fully functional at this point, I still cannot pass 7 of the...
Read more >
AppleScript: Cannot click Menulet (Menu Bar 2) for Third ...
It does not have built-in Applescript support, so I want to create a script that clicks on its menu bar and presses "Start...
Read more >
Pomodoro - msunified.net
Update 06.10.20: Updated the flow to better handle expected failure, should now exit as success if the task ... Using the triggers in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found