From df98e21e3cf6bd18bd62fda1737928109c3612b8 Mon Sep 17 00:00:00 2001 From: itdominator <1itdominator@gmail.com> Date: Tue, 21 Feb 2023 17:15:54 -0600 Subject: [PATCH] updated readme, cleaned up configs --- README.md | 3 ++- user_config/bin/cornea | 17 +++++++++++++++++ .../usr/applications/cornea.desktop | 4 ++-- 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100755 user_config/bin/cornea rename cornea.desktop => user_config/usr/applications/cornea.desktop (72%) diff --git a/README.md b/README.md index c5ce5bc..2d3853a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,8 @@ Cornea is a Python + Gtk application to take screenshots. # Notes * Need python 2+ -* ```sudo apt-get install python3``` +* ```sudo apt-get install python3.8 python3-gi python3-setproctitle python-pyscreenshot``` + # Images ![1 Cornera interface. ](images/pic1.png) diff --git a/user_config/bin/cornea b/user_config/bin/cornea new file mode 100755 index 0000000..001d4f2 --- /dev/null +++ b/user_config/bin/cornea @@ -0,0 +1,17 @@ +#!/bin/bash + +# . CONFIG.sh + +# set -o xtrace ## To debug scripts +# set -o errexit ## To exit on error +# set -o errunset ## To exit if a variable is referenced but not set + + +function main() { + call_path=`pwd` + cd "${call_path}" + echo "Working Dir: " $(pwd) + + python /opt/cornea.zip "$@" +} +main "$@"; diff --git a/cornea.desktop b/user_config/usr/applications/cornea.desktop similarity index 72% rename from cornea.desktop rename to user_config/usr/applications/cornea.desktop index e814950..e4184fa 100755 --- a/cornea.desktop +++ b/user_config/usr/applications/cornea.desktop @@ -1,8 +1,8 @@ [Desktop Entry] Name=Cornea -GenericName=A python screenshot application. +GenericName=A Python and Gtk+ screenshot application. Comment=Take screenshots of your desktop. -Exec=/screenshot +Exec=/bin/cornea Icon=/usr/share/cornea/cornea.png Type=Application StartupNotify=true