Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Commit

Permalink
Update some files
Browse files Browse the repository at this point in the history
  • Loading branch information
Steeven Lopes committed Mar 23, 2017
1 parent 65c8d3f commit c87145d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
5 changes: 2 additions & 3 deletions data/extensions/kdeconnect-send-nautilus.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from gi.repository import Nautilus, GObject, Notify
from subprocess import call
from os.path import expanduser, isfile
from os.path import isfile
import urllib, re, gettext, locale

# use of _ to set messages to be translated
Expand All @@ -18,8 +18,7 @@
class KDEConnectSendExtension(GObject.GObject, Nautilus.MenuProvider):

def __init__(self):
homedir = expanduser("~")
self.devices_file = homedir+"/.config/indicator-kdeconnect/devices"
self.devices_file = "/tmp/devices"
pass

"""Inicialize translations to a domain"""
Expand Down
2 changes: 1 addition & 1 deletion scripts/wayland/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
indicator-kdeconnect-wayland.sh is a script to allow user run the indicator-kdeconnect from wayland.
Give it permission to exectute with "sudo chmod +x i_k_w.sh indicator-kdeconnect-wayland.sh" command.
Run "sudo indicator-kdeconnect.sh install" to install or "sudo indicator-kdeconnect.sh remove" to remove the script.
Run "sudo ./indicator-kdeconnect-wayland.sh install" to install or "sudo indicator-kdeconnect.sh remove" to remove the script.
8 changes: 3 additions & 5 deletions src/DeviceIndicator.vala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace KDEConnectIndicator {
private Gtk.SeparatorMenuItem separator;
private Gtk.SeparatorMenuItem separator2;
private Gtk.SeparatorMenuItem separator3;
private string visible_devices = "/.config/indicator-kdeconnect/devices";
private string visible_devices = "/tmp/devices";

public DeviceIndicator (string path) {
this.path = path;
Expand Down Expand Up @@ -249,8 +249,7 @@ namespace KDEConnectIndicator {
}

private int write_status (){
var file = File.new_for_path (Environment.get_home_dir ()
+visible_devices);
var file = File.new_for_path (visible_devices);

if (!file.query_exists ()) {
message ("File '%s' doesn't exist.\n", file.get_path ());
Expand Down Expand Up @@ -308,8 +307,7 @@ namespace KDEConnectIndicator {
}

private int delete_status(){
var file = File.new_for_path (Environment.get_home_dir ()
+visible_devices);
var file = File.new_for_path (visible_devices);

if (!file.query_exists ())
message ("File '%s' doesn't exist.\n", file.get_path ());
Expand Down
8 changes: 3 additions & 5 deletions src/KDEConnectManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace KDEConnectIndicator {
private DBusConnection conn;
private SList<DeviceIndicator> device_list;
private SList<uint> subs_identifier;
private string visible_devices = "/.config/indicator-kdeconnect/devices";
private string visible_devices = "/tmp/devices";

public KDEConnectManager () {
try {
Expand All @@ -33,8 +33,7 @@ namespace KDEConnectIndicator {
message ("KDE Connect daemon found");


var file = File.new_for_path (Environment.get_home_dir ()
+visible_devices);
var file = File.new_for_path (visible_devices);

try{
file.create (FileCreateFlags.NONE);
Expand Down Expand Up @@ -125,8 +124,7 @@ namespace KDEConnectIndicator {

//Delete trusted devices file
try {
var file = File.new_for_path (Environment.get_home_dir ()
+visible_devices);
var file = File.new_for_path (visible_devices);
if (!file.query_exists ()) {
message ("File '%s' doesn't exist.\n", file.get_path ());
}
Expand Down

0 comments on commit c87145d

Please sign in to comment.