Skip to content

Commit

Permalink
Fixing issue#2, issue#4 and issue#5
Browse files Browse the repository at this point in the history
  • Loading branch information
slgobinath committed Oct 25, 2016
1 parent 1c889e9 commit dd3f797
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
6 changes: 4 additions & 2 deletions safeeyes/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
safeeyes (1.0.6-1) xenial; urgency=medium
safeeyes (1.0.7-1) xenial; urgency=medium

* Removing apscheduler dependency

* Fixing seconds instead of mnutes bug
* Fixing seconds instead of minutes bug

* Bug fixes for Ubuntu 14.04 and keyboard lock during break

Expand Down
2 changes: 1 addition & 1 deletion safeeyes/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Homepage: https://github.com/slgobinath/SafeEyes/

Package: safeeyes
Architecture: any
Depends: gir1.2-appindicator3-0.1, python (>= 2.7.0), python-xlib
Depends: gir1.2-appindicator3-0.1, python (>= 2.7.0), python-xlib, python-gi
Description: Safe Eyes
Safe Eyes is a simple tool to remind you to take periodic breaks for your eyes. This is essential for anyone spending more time on the computer to avoid eye strain and other physical problems.
.
Expand Down
3 changes: 1 addition & 2 deletions safeeyes/debian/install
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
safeeyes /opt/safeeyes
share/applications/safeeyes.desktop /opt/safeeyes
safeeyes /opt
share /usr
6 changes: 4 additions & 2 deletions safeeyes/safeeyes/safeeyes
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ break_screen_glade = os.path.join(bin_directory, "glade/break_screen.glade")
settings_dialog_glade = os.path.join(bin_directory, "glade/settings_dialog.glade")
system_config_file_path = os.path.join(bin_directory, "config/safeeyes.json")
system_style_sheet_path = os.path.join(bin_directory, "config/style/safeeyes_style.css")
desktop_file = os.path.join(bin_directory, "../safeeyes.desktop")

def show_settings():
settings_dialog = SettingsDialog(config, save_settings, settings_dialog_glade)
Expand Down Expand Up @@ -119,7 +118,10 @@ def prepare_local_config_dir():
raise

# Add to startup for the first time only
shutil.copy2(desktop_file, (startup_dir_path + "/safeeyes.desktop"))
try:
os.symlink("/usr/share/applications/safeeyes.desktop", os.path.join(startup_dir_path, "safeeyes.desktop"))
except OSError as exc:
pass

if not os.path.isfile(style_sheet_path):
shutil.copy2(system_style_sheet_path, style_sheet_path)
Expand Down
2 changes: 1 addition & 1 deletion safeeyes/share/applications/safeeyes.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Encoding=UTF-8
Name=Safe Eyes
Comment=Protect your eyes from eye strain
Exec=/opt/safeeyes/safeeyes/safeeyes
Exec=/opt/safeeyes/safeeyes
Icon=safeeyes
Version=1.0.0
Terminal=false
Expand Down

0 comments on commit dd3f797

Please sign in to comment.