commit
cca84acde1
|
@ -1,12 +0,0 @@
|
|||
# These are supported funding model platforms
|
||||
|
||||
github: slgobinath
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
otechie: # Replace with a single Otechie username
|
||||
custom: 'https://www.paypal.com/paypalme/slgobinath'
|
20
README.md
20
README.md
|
@ -7,7 +7,6 @@
|
|||
[![Flathub](https://img.shields.io/flathub/v/io.github.slgobinath.SafeEyes)](https://flathub.org/apps/details/io.github.slgobinath.SafeEyes)
|
||||
[![Translation status](https://hosted.weblate.org/widgets/safe-eyes/-/translations/svg-badge.svg)](https://hosted.weblate.org/engage/safe-eyes/?utm_source=widget)
|
||||
[![Awesome Humane Tech](https://raw.githubusercontent.com/humanetech-community/awesome-humane-tech/main/humane-tech-badge.svg?sanitize=true)](https://github.com/humanetech-community/awesome-humane-tech)
|
||||
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/slgobinath)
|
||||
|
||||
Protect your eyes from eye strain using this simple and beautiful, yet extensible break reminder.
|
||||
|
||||
|
@ -41,7 +40,7 @@ Safe Eyes is available in Ubuntu PPA, Arch AUR, Gentoo and Python PyPI. You can
|
|||
### Ubuntu, Linux Mint and other Ubuntu Derivatives
|
||||
|
||||
```bash
|
||||
sudo add-apt-repository ppa:slgobinath/safeeyes
|
||||
sudo add-apt-repository ppa:safeeyes-team/safeeyes
|
||||
sudo apt update
|
||||
sudo apt install safeeyes
|
||||
```
|
||||
|
@ -121,11 +120,11 @@ python3 -m safeeyes
|
|||
Safe Eyes installers install the required icons to `/usr/share/icons/hicolor`. When you run Safe Eyes from source without, some icons may not appear.
|
||||
|
||||
|
||||
### Install in Virtual Environment
|
||||
### Install in a virtual environment
|
||||
|
||||
Some Linux systems like Cent OS do not have matching dependencies available in their repository. In such systems, you can install and use Safe Eyes in a Python Virtual Environment. The following instruction was tested on Cent OS 7.
|
||||
Some Linux systems like CentOS do not have matching dependencies available in their repository. In such systems, you can install and use Safe Eyes in a Python virtual environment.
|
||||
|
||||
1. Install the necessary dependencies
|
||||
1. Install the necessary dependencies for CentOS 7
|
||||
|
||||
```bash
|
||||
sudo yum install python3-devel dbus dbus-devel cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel gobject-introspection-devel cairo-gobject-devel
|
||||
|
@ -137,13 +136,12 @@ Some Linux systems like Cent OS do not have matching dependencies available in t
|
|||
mkdir ~/safeeyes
|
||||
cd ~/safeeyes/
|
||||
|
||||
pip3 install virtualenv --user
|
||||
virtualenv --no-site-packages venv
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
pip3 install dbus-python safeeyes
|
||||
```
|
||||
|
||||
3. Start Safe Eyes from terminal
|
||||
3. Start Safe Eyes from the terminal
|
||||
|
||||
```bash
|
||||
cd ~/safeeyes & source venv/bin/activate
|
||||
|
@ -187,9 +185,3 @@ Thirdparty plugins are available at another GitHub repository: [safeeyes-plugins
|
|||
## License
|
||||
|
||||
GNU General Public License v3
|
||||
|
||||
## IDE Support
|
||||
|
||||
<p align="center">Thanks to JetBrains for offering IDE support to develop this Open Source project.</p>
|
||||
|
||||
<p align="center"><a href="https://www.jetbrains.com/?from=SafeEyes"><img src="https://raw.githubusercontent.com/JetBrains/logos/master/web/jetbrains/jetbrains.svg?sanitize=true" width="64" align="center"></a></p>
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
safeeyes (2.1.9) noble; urgency=medium
|
||||
|
||||
* Fix crash in smartpause
|
||||
|
||||
-- Gobinath Loganathan <slgobinath@gmail.com> Tue, 18 Jun 2024 20:25:00 -0400
|
||||
|
||||
safeeyes (2.1.8) noble; urgency=medium
|
||||
|
||||
* Support Python 3.12
|
||||
|
|
|
@ -71,7 +71,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.</pr
|
|||
<property name="valign">center</property>
|
||||
<property name="margin_top">10</property>
|
||||
<property name="margin_bottom">10</property>
|
||||
<property name="label" translatable="yes">Safe Eyes 2.1.8</property>
|
||||
<property name="label" translatable="yes">Safe Eyes 2.1.9</property>
|
||||
<property name="justify">center</property>
|
||||
<attributes>
|
||||
<attribute name="style" value="normal"/>
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
<url type="homepage">https://slgobinath.github.io/SafeEyes/</url>
|
||||
|
||||
<releases>
|
||||
<release version="2.1.8" date="2023-06-04" />
|
||||
<release version="2.1.9" date="2023-06-04" />
|
||||
</releases>
|
||||
|
||||
<content_rating type="oars-1.1" />
|
||||
|
|
|
@ -40,7 +40,7 @@ from safeeyes.ui.settings_dialog import SettingsDialog
|
|||
gi.require_version('Gtk', '3.0')
|
||||
from gi.repository import Gtk
|
||||
|
||||
SAFE_EYES_VERSION = "2.1.8"
|
||||
SAFE_EYES_VERSION = "2.1.9"
|
||||
|
||||
|
||||
class SafeEyes:
|
||||
|
@ -71,8 +71,8 @@ class SafeEyes:
|
|||
self.show_about)
|
||||
self.context['api']['enable_safeeyes'] = lambda next_break_time=-1, reset_breaks=False: \
|
||||
utility.execute_main_thread(self.enable_safeeyes, next_break_time, reset_breaks)
|
||||
self.context['api']['disable_safeeyes'] = lambda status: utility.execute_main_thread(
|
||||
self.disable_safeeyes, status)
|
||||
self.context['api']['disable_safeeyes'] = lambda status=None, is_resting=False: utility.execute_main_thread(
|
||||
self.disable_safeeyes, status, is_resting)
|
||||
self.context['api']['status'] = self.status
|
||||
self.context['api']['quit'] = lambda: utility.execute_main_thread(
|
||||
self.quit)
|
||||
|
|
|
@ -94,28 +94,16 @@ def start_thread(target_function, **args):
|
|||
thread.start()
|
||||
|
||||
|
||||
# def execute_main_thread(target_function, args=None):
|
||||
# def execute_main_thread(target_function, *args, **kwargs):
|
||||
# """
|
||||
# Execute the given function in main thread.
|
||||
# Execute the given function in main thread, forwarding positional and keyword arguments.
|
||||
# """
|
||||
# if args:
|
||||
# GLib.idle_add(lambda: target_function(args))
|
||||
# else:
|
||||
# GLib.idle_add(target_function)
|
||||
|
||||
def execute_main_thread(target_function, arg1=None, arg2=None):
|
||||
def execute_main_thread(target_function, *args, **kwargs):
|
||||
"""
|
||||
Execute the given function in main thread.
|
||||
"""
|
||||
if arg1 is not None and arg2 is not None:
|
||||
GLib.idle_add(lambda: target_function(arg1, arg2))
|
||||
elif arg1 is not None:
|
||||
GLib.idle_add(lambda: target_function(arg1))
|
||||
elif arg2 is not None:
|
||||
GLib.idle_add(lambda: target_function(arg2))
|
||||
else:
|
||||
GLib.idle_add(target_function)
|
||||
|
||||
GLib.idle_add(lambda: target_function(*args, **kwargs))
|
||||
|
||||
def system_locale(category=locale.LC_MESSAGES):
|
||||
"""
|
||||
|
|
4
setup.py
4
setup.py
|
@ -78,14 +78,14 @@ def __package_data():
|
|||
|
||||
setuptools.setup(
|
||||
name="safeeyes",
|
||||
version="2.1.8",
|
||||
version="2.1.9",
|
||||
description="Protect your eyes from eye strain using this continuous breaks reminder.",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
author="Gobinath Loganathan",
|
||||
author_email="slgobinath@gmail.com",
|
||||
url="https://github.com/slgobinath/SafeEyes",
|
||||
download_url="https://github.com/slgobinath/SafeEyes/archive/v2.1.8.tar.gz",
|
||||
download_url="https://github.com/slgobinath/SafeEyes/archive/v2.1.9.tar.gz",
|
||||
packages=setuptools.find_packages(),
|
||||
package_data={'safeeyes': __package_data()},
|
||||
data_files=__data_files(),
|
||||
|
|
Loading…
Reference in New Issue