Skip to content

Commit 3349946

Browse files
committed
Bug fix for no audible alert
1 parent 63bc7d6 commit 3349946

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Manual installation is not tested in any systems. I will update this page as soo
2929

3030
* Fedora 24: `libappindicator-gtk3`, `python-xlib`, `python-gobject`, `xorg-x11-utils`, `python-dbus`, `xprintidle` and `mpg123`
3131

32-
2: Download and extract [safeeyes.tar.gz](https://github.com/slgobinath/SafeEyes/releases/download/v1.1.3/safeeyes.tar.gz) into `/`: `sudo tar -xzvf safeeyes.tar.gz -C /`
32+
2: Download and extract [safeeyes.tar.gz](https://github.com/slgobinath/SafeEyes/releases/download/v1.1.4/safeeyes.tar.gz) into `/`: `sudo tar -xzvf safeeyes.tar.gz -C /`
3333

3434
If you have any issues in installing Safe Eyes, please report them [here](https://github.com/slgobinath/SafeEyes/issues)
3535

@@ -119,10 +119,14 @@ For more details, have a look at existing language files: [lang](https://github.
119119

120120

121121
## History
122+
Version 1.1.3:
123+
* Bug fix for no audible alert
124+
122125
Version 1.1.3:
123126
* Optional audible alert after breaks
124127
* Pause Safe Eyes if the system is idle for a given time. (Resume when user is active)
125128
* Bug fix for no break after fullscreen apps found
129+
* Dependency fix for Kubuntu
126130

127131
Version 1.1.2:
128132
* Bug fix for no break

safeeyes/debian/changelog

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
safeeyes (1.1.3-1) xenial; urgency=medium
1+
safeeyes (1.1.4-1) xenial; urgency=medium
22

33
* Optional audible alert and pause Safe Eyes if system is idle
44

safeeyes/safeeyes/Utility.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
import gi
2020
gi.require_version('Gdk', '3.0')
2121
from gi.repository import Gdk, GLib
22-
import subprocess, threading, logging
22+
import os, subprocess, threading, logging
2323

2424
"""
2525
Play the alert.mp3
2626
"""
2727
def play_notification():
2828
logging.info("Playing audible alert")
2929
try:
30-
subprocess.Popen(['mpg123', '-q', 'resource/alert.mp3'])
30+
subprocess.Popen(['mpg123', '-q', os.path.join(os.path.dirname(os.path.realpath(__file__)), 'resource/alert.mp3')])
3131
except:
3232
pass
3333

safeeyes/safeeyes/safeeyes

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ system_language_directory = os.path.join(bin_directory, "config/lang")
4444

4545
is_active = True
4646
CONFIGURATION_VERSION = 2
47-
SAFE_EYES_VERSION = "1.1.3"
47+
SAFE_EYES_VERSION = "1.1.4"
4848

4949
"""
5050
Listen to tray icon Settings action and send the signal to Settings dialog.

safeeyes/share/applications/safeeyes.desktop

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Comment[fr]=Protégez vos yeux de la fatigue
88
Comment[ta]=உங்கள் கண்களை சோர்வடையாது பாதுகாத்திடுங்கள்
99
Exec=/opt/safeeyes/safeeyes
1010
Icon=safeeyes
11-
Version=1.1.3
11+
Version=1.1.4
1212
Terminal=false
1313
Type=Application
1414
Categories=Utility;

0 commit comments

Comments
 (0)