b4j4 / indicator-kdeconnect

AppIndicator for KDE Connect
GNU Lesser General Public License v2.1
372 stars 38 forks source link

Nemo extension: Error while getting reachable devices #51

Closed hotice closed 7 years ago

hotice commented 7 years ago

Tested in Ubuntu 17.04 and Linux Mint 18.1, using the latest Nemo version (3.2.2) and indicator-kdeconnect 0.7.0, there's no Nemo context menu for KDE Connect. This is displayed when starting Nemo from a terminal:

** (nemo:15472): CRITICAL **: nemo_menu_provider_get_background_items: assertion 'NEMO_IS_MENU_PROVIDER (provider)' failed

** (nemo:15472): CRITICAL **: nemo_menu_provider_get_background_items: assertion 'NEMO_IS_MENU_PROVIDER (provider)' failed

(nemo:15472): Gtk-WARNING **: Allocating size to NemoWindowPane 0x56542afae430 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

(nemo:15472): Gtk-WARNING **: Allocating size to NemoWindowPane 0x56542b1137a0 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
Traceback (most recent call last):
  File "/usr/share/nemo-python/extensions/kdeconnect-send-nemo.py", line 75, in get_file_items
    raise Exception("Error while getting reachable devices")
Exception: Error while getting reachable devices
Traceback (most recent call last):
  File "/usr/share/nemo-python/extensions/kdeconnect-send-nemo.py", line 75, in get_file_items
    raise Exception("Error while getting reachable devices")
Exception: Error while getting reachable devices
Traceback (most recent call last):
  File "/usr/share/nemo-python/extensions/kdeconnect-send-nemo.py", line 75, in get_file_items
    raise Exception("Error while getting reachable devices")
Exception: Error while getting reachable devices

** (nemo:15472): WARNING **: connect() failed
b4j4 commented 7 years ago

I will check this soon

b4j4 commented 7 years ago

@hotice build the new version with this bug solved to the ppa

ghost commented 7 years ago

@Bajoja checked it, it does work now, but it still only shows a single connected device like how the nautilus extension used to before you fixed that.

b4j4 commented 7 years ago

@szekeres2016 something is not correct on Nemo, 1- Python read the correct values from the file (Xiaomi and Bajoja-PC) 2- Identify their ID 3- The dict with them is created 4- The submenu with both is created too

But nemo only display the first one.

screenshot at 2017-04-10 22-54-38

nemo___

b4j4 commented 7 years ago

@szekeres2016 for now i recomend use kdeconnect-send aplication, you can integrate it with your file manager with this script load it on nemo plugins.

screenshot at 2017-04-18 01-32-22