From c6e8cd8f0a5d2910257468173e51a7890afb3ed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6neberger?= Date: Sat, 18 Dec 2021 01:31:56 +0100 Subject: [PATCH] Fix locale dir and update links --- .gitignore | 1 + README.md | 18 ++++++++++++++++++ debian/changelog | 0 debian/control | 8 ++++++++ debian/copyright | 0 src/nemo-kdeconnect.py | 8 ++++---- 6 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 .gitignore delete mode 100644 debian/changelog delete mode 100644 debian/copyright diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..378eac2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build diff --git a/README.md b/README.md index e69de29..e38d7ef 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,18 @@ + +# KDEConnect Nemo Extension + + This extension for the Nemo file manager adds the ability to send files to devices connected using KDEConnect directly from Nemo. + +# Usage + + Just right click on any file and select the device under the extension's context menu entry. + +# Installation + +## Debian based Distributions (e.g. Ubuntu, Linux Mint, ...) + + Install the deb file from the [Releases Section](https://github.com/JoeJoeTV/nemo-extension-kdeconnect/releases) + +## Other Distributions + + Download the .tar.gz file from the [Releases Section](https://github.com/JoeJoeTV/nemo-extension-kdeconnect/releases) and put it in the nemo-python extensions folder (`~/.local/share/nemo-python/extensions`) \ No newline at end of file diff --git a/debian/changelog b/debian/changelog deleted file mode 100644 index e69de29..0000000 diff --git a/debian/control b/debian/control index e69de29..768350b 100644 --- a/debian/control +++ b/debian/control @@ -0,0 +1,8 @@ +Package: nemo-kdeconnect +Version: 1.0.0 +Priority: optional +Maintainer: JoeJoeTV +Description: Extension for the Nemo file manager that adds the ability to send files to devices connected using KDEConnect directly from Nemo. +Homepage: https://github.com/JoeJoeTV/nemo-extension-kdeconnect +Architecture: all +Depends: nemo, python3 diff --git a/debian/copyright b/debian/copyright deleted file mode 100644 index e69de29..0000000 diff --git a/src/nemo-kdeconnect.py b/src/nemo-kdeconnect.py index b714278..cbb0f31 100644 --- a/src/nemo-kdeconnect.py +++ b/src/nemo-kdeconnect.py @@ -3,17 +3,17 @@ # Name: KDE Connect Nemo Extension # Description: KDE Connect Integration for the Nemo file manager # by JoeJoeTV -# https://github.com/JoeJoeTV/KDEConnectNemoExtension -# Version: 1.0 +# https://github.com/JoeJoeTV/nemo-extension-kdeconnect +# Version: 1.0.0 -import gi +import os, gi gi.require_version('Notify', '0.7') from gi.repository import GObject, Nemo, Gtk, Gio, GLib, Notify import gettext, locale -locale_dir = "./nemo-kdeconnect/locale" # GLib.get_home_dir() + "/.local/share/locale" +locale_dir = os.path.dirname(os.path.realpath(__file__)) + "/nemo-kdeconnect/locale" # GLib.get_home_dir() + "/.local/share/locale" locale_domain = "nemo-kdeconnect" # Get correct icon name from device type string