Skip to content

Commit

Permalink
Fix locale dir and update links
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeJoeTV committed Dec 18, 2021
1 parent be06657 commit c6e8cd8
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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`)
Empty file removed debian/changelog
Empty file.
8 changes: 8 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Package: nemo-kdeconnect
Version: 1.0.0
Priority: optional
Maintainer: JoeJoeTV <[email protected]>
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
Empty file removed debian/copyright
Empty file.
8 changes: 4 additions & 4 deletions src/nemo-kdeconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c6e8cd8

Please sign in to comment.