Code Monkey home page Code Monkey logo

harbour-sailfishconnect's Introduction

Sailfish Connect

KDE Connect for Sailfish OS

Screenshots

Screenshot 1 Screenshot 2 Screenshot 3

Install

KDE Connect Clients

Features

Plugins

Name Status Description
Battery ✔️ 🔋 Share battery status with your computer.
Clipboard ✔️ 📋 Share clipboard text content.
Mpris ✔️ ⏯️ Control multimedia player from your computer.
Ping ✔️ 👋 Check connection with a ping.
Touchpad ✔️ 🖱️ Create mouse input from your phone.
Share ✔️ Send and receive files, text and URLs.
Telephony ✔️ 📞 Share call status (incoming or active) with your computer.
RemoteKeyboard ✔️ ⌨️ Create keyboard input from your phone.
Contacts ✔️ 👥 Share contacts with your computer.
SendNotifications 🚧 Share notifications of your phone.
RunCommand ✔️ Run user-defined commands on your computer.
RemoteCommands ✔️ Let user-defined commands run on your phone.
RemoteSystemVolume ✔️ 🔉 Control system volume of your computer.
Telepathy 💬 Send SMS messages and read SMS history from your computer.
Sftp 📂 Provide access to local files from your computer.
FindMyPhone 📳 Make finding your phone easier.
SystemVolume 🔉 Share control of system volume of your phone.
ReceiseNotifications Receive notifications of your computer.
MprisReceiver ⏯️ Share multimedia player control with your computer.

Core

  • Pairing
  • Plugin management
  • Use background daemon
  • Downloads/Uploads (Payload)

UI

  • Device list
  • Pairing
  • Plugin management
  • SSL key hash view
  • Device view
  • Show progress of file transfers
  • Run in background as service (by default off; activate in settings page)

Backend

  • ✔️ LAN
  • ❌ Bluetooth

Contribute

Known Issues

  • LAN: A connection through USB-Ethernet and develeper mode is not possible.

Credits

Sailfish Connect uses libraries of the KDE Connect desktop client.

harbour-sailfishconnect's People

Contributors

carlosgonz0 avatar derfogel avatar dikonov avatar karry avatar kossebau avatar r1tschy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

harbour-sailfishconnect's Issues

can't sync sms with GSConnect

Desktop
Ubuntu 18.04.3 with Gnome 3.28.2 and GSconnect installed
Xperia XA2 with SFOS 3.2.0.12 with Sailfish Connect 0.4.1.1.

Devices are paired, I can share clipboard, touchapd, send files...

But Desktop message app stays empty
image

SMS plugin is enabled on Desktop side
image

And on phone side
image

Do I miss something?

Text won't send with gsconnect

When I try to send an sms text on my computer, the messenger app implies that the text has been sent. When I look at my phone, the sms has not been sent but it is typed into my phone text keyboard.

Messages app launched

At startup, the messages app is also launched and directly closed. Any reason for this behavior?

Configured to use wrong location for contacts in SailFish 4.5.0.21

  • Given: reasonably recent installation of Sailfish 4.5.0.21 on Xperia 10 III, latest SailfishConnect from OpenRepos via Storeman, and KDE Connect as shipped with Debian Bookworm (sorry, I can't find an "About" dialog with a version number in it).
  • When I: use Fingerterm on the Xperia to launch SailfishConnect.
  • I get: messages about the contact database not being opened, see logs below.
  • I expect: the contact database to be opened successfully.

The contact database is at /home/defaultuser/.local/share/system/Contacts/qtcontacts-sqlite but SailfishConnect expects it at /home/nemo/.local/share/system/Contacts/qtcontacts-sqlite/contacts.db.

[defaultuser@Xperia10III ~]$ harbour-sailfishconnect 
   ____     _ ______     __   _____                       __
  / __/__ _(_) / _(_)__ / /  / ___/__  ___  ___  ___ ____/ /_
 _\ \/ _ `/ / / _/ (_-</ _ \/ /__/ _ \/ _ \/ _ \/ -_) __/ __/
/___/\_,_/_/_/_//_/___/_//_/\___/\___/_//_/_//_/\__/\__/\__/
 --- Version 0.6.2
[D] unknown:0 - Using Wayland-EGL
library "libutils.so" not found
library "libcutils.so" not found
library "libhardware.so" not found
library "[email protected]" not found
library "[email protected]" not found
library "[email protected]" not found
library "[email protected]" not found
library "libc++.so" not found
library "libhidlbase.so" not found
library "libgralloctypes.so" not found
library "[email protected]" not found
library "libion.so" not found
library "libz.so" not found
library "libhidlmemory.so" not found
library "[email protected]" not found
library "[email protected]" not found
[W] unknown:0 - DelegateModel::cancel: index out range 0 0
[I] unknown:0 - Using 0 MB of album art cache
[C] unknown:0 - Cannot open contacts database "/home/nemo/.local/share/system/Contacts/qtcontacts-sqlite/contacts.db" : "out of memory Error opening database"
[W] unknown:0 - QSqlQuery::exec: database not open
[C] unknown:0 - Getting modified timestamps failed: " "
[W] unknown:0 - discarding unsupported packet "kdeconnect.clipboard.connect" for "nuc"
[W] unknown:0 - QSqlQuery::exec: database not open
[C] unknown:0 - Getting modified timestamps failed: " "
[W] unknown:0 - discarding unsupported packet "kdeconnect.clipboard.connect" for "nuc"
[W] unknown:0 - discarding unsupported packet "kdeconnect.sms.request_conversations" for "nuc"
[W] unknown:0 - discarding unsupported packet "kdeconnect.sms.request_conversations" for "nuc"

SMS to unnamed, thus not sending

I don't know this is not abandoned. Just giving it a shot.

When I connect the phone (Sailfish 3) to the desktop application KDE connect to send an SMS. It finds the address book fine. I can select the recipient to whom I'm going to sent a message. But when I press sent the phone want to sent to (unnamed). That won't work.

KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1

DeviceList doesn't show proper devices

Trying a Sailfish Connect built from git master, there's only a "localhost.localdomain" on DeviceListPage. I am not quite sure what it is (can't see it being any online device of mine), I think it appeared at times on earlier versions, too. I can open its page and try pairing, but it just timeouts.
I can't thus open my desktop KDE Connect's device page from the device list. However, I get it to open if I send a pairing request to Sailfish Connect and click the notification, and after accepting the pairing, the device page is available.

Even more peculiarly, my desktop KDE Connect is listed on app cover as second row after localhost.localdomain. I also tried debugging what's up, and found that trustedDevices.count = 2, but didn't find yet any proper way to extract more information on these (I tried writing a simple dummy delegate to replace deviceDelegate to see if there's something wrong with rendering and overlapping etc, but to no success).

Is this related to some known issues, or is there just something strange in my networks causing this?

Re-connection with paired device is failing

Hi. I am using KDE connect 1.4.0 (Kubuntu 20.10) and Sailfish connect build from source (today) on SFOS 4.0.1.45. When I pair with my notebook, everything works fine. But when I terminate applicatin on the phone or restart the phone or connection just lost, it is not able to connect again. KDE daemon just prints error about certificate:

$ LC_ALL=C /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd --replace 
kdeconnect.core: Disconnecting due to fatal SSL Error:  "The issuer certificate of a locally looked up certificate could not be found"
kdeconnect.core: Disconnecting due to fatal SSL Error:  "No certificates could be verified"

I need to unpair devices and pair them every time...

Host timed out without sending any identity

When trying to connect my Sailfish Connect device (Sony Xperia X, SFOS 4.4.0.58) with my desktop PC (openSUSE Tumbleweed, KDE Connect 22.04.0) I can not find the device. Ports are not blocked and both devices are in the same network. KDE connect prints the following message to the log when trying to update the list of discovered devices:

kdeconnect.core: LanLinkProvider/newConnection: Host timed out without sending any identity. QHostAddress("::ffff:192.168.178.200")

The address fits the LAN address of my phone. So, not sure if this is an issue with Sailfish Connect or with KDE Connect. I already tried to remove current configuration in ~/.config/harbour-sailfishconnect but without any success.

Terminating Sailfish Connect

Closing Sailfish Connect means it keeps running in the background. Most of the time that whats you want. But there is no other way then killing the background processes to stop it as far as I can tell. Perhaps an "exit" option in the menu could accomplish a real exit?

Add a link to your port in GSConnect?

Hi, I had forgotten their was more than one SailfishOS port for KDE Connect. Currently, we have a link in GSConnect's settings dialog pointing to Adam Piggz' client.

Would like us to add a link to your port in v27 (soon) as well? If so, where is the best URL to point to for end-users?

Power consumption

Submitter: evk

The app seems to drain the battery. This is without any actual usage.

Trailing \n in deviceId causes "...strange ssl certificate" error while pairing

I'm trying to use SailfishConnect with GSConnect, but pairing fails due to a trailing \n in the deviceId.

This results in an error "[W] Device::Device(QObject*, KdeConnectConfig*, const QString&, const QString&, const QString&)::<lambda:111 - Device pairing error "This device cannot be paired because it sends a strange ssl certificate.".

I didn't investigate the issue so much, so I don't really know if it's GSConnect that sends the id string with a trailing newline or if it's sailfish connect that adds it somehow.

To quickly solve the issue I've changed the sanitizeDeviceId method in device.cpp to trim the deviceId before replacing non alphanumerical characters.

Testing with Win10 KDEConnect

Just thought I would report on trying V0.5-1 with
kdeconnect-kde-master-268-windows-msvc2017_64-cl.exe

On Win10: Firewall was blocking kdeconnectd. Type "firewall" to check if kdeconnectd is blocked. but issue was my wifi type was public, and blocked for public.

kdeconnect-app.exe doesn't show a window (is it supposed to?) all interaction is through the kedconnect tray icon (hidden by default)

  • clipboard working both ways
  • battery level showing
  • touchpad working to control pc, left/right mouse buttons work
  • keyboard to pc mostly works. comma, space and fullstop don't work (same on linux)
  • keyboard from pc to sfos : "Remote keyboard from the desktop" plugin is not listed in the KDE Connect settings. Is this Windows end or SFOS end issue?
  • media player > button starts/stops youtube
  • send pings works both ways
  • send sms : endless waiting circle, not working. Same if messages is foreground in SFOS
  • file send from SFOS: silently saved to Downloads folder
  • file send from PC: Can select file. silently saved to /home/nemo/Downloads/
  • inhibit screensaver: doesn't work
  • sfos notification to PC: doesn't work
  • contacts sync: Nothing appears to happen when I create new person in People app on PC or People app on SFOS

Summary:
The two main functions I want: Use PC keyboard -> phone and SMS from PC not working yet.
File sends are silent with no ack, so you don't know they happened. Should notify or something.

App crashing when using with KDE-Connect on Windows

I have been facing this issue for last few months, but didn't report if because I use Windows so rarely.
At first the app seems to work fine, you can pair it to a Windows device just fine and all the features work. But sometimes sailfishconnect will crash, and when you try to turn it on again, it will turn on, show that it connected to the Windows device, and then crash. Rebooting the Windows device will usually fix it.
I will post the screenshot with the error log in a sec, I have no way to send it to the PC, as the app is crashing ;)
Zrzut_ekranu_20221010_001
The error has occured on previous version of SailfishConnect, Xperia 10 and 10 III, many Windows builds of KDE Connect, and multiple PCs. Never had a similar bug on Linux.

Dependency issue with SFOS 4.0

Hi. Today was release Sailfish 4.0.1 (Koli). Sailfish connect cannot be installed anymore. It fails with unsatisfied dependency:

Problem: nothing provides libcontextkit-statefs-qt5.so needed by harbour-sailfishconnect-0.5.1-1.armv7hl

Autostart

Is there any way to make the app start automatically?

I tried to do it myself by just having a systemd user unit launch the app on startup, and while that worked there were bugs like the app becoming invisible (you can see the glass background, but any elements like text or even the pulley menu were not visible, though you could still interact with it I think (the pulley menu did play sound effects)).

It would be great if there was a way to automatically start the app.

Please provide aarch64 package

Hi.

Jolla released full SFOS for Xperia 10.II yesterday. On this device just aarch64 applications may be used. It would be great to provide aarch64 build of Sailfish Connect in store/openrepos.

[Feature request] Manually add a peer device

The Android KDE connect app allows you to manually add a device when peer auto-detection is unable to reach the intended peer. It happens if you have to go across a router to reach it. This feature would nicely complete Sailfish connect.

Sailfish-connect does not start in Rauma 4.4.0.58

Haven't tried to re-install yet. Starting the application, it gives some startup screen as an application tile in the app-list, but then the screen goes away again. I haven't found the binary to start from commandline to see what is happening.

No commands available on KDE

When my XA2 and KDE Plasma are connected, no commands are available on the KDE Connect plugin. It stays empty, but for the battery state:

Screenshot_20190819_100132

Runing kdeconnect-cli -d {ID} --list-commands yields an empty output (exit code 0).

However, sharing clipboard and receiving notifications from the phone (as well as touchpad control from the phone) are working, for instance. Also running kdeconnect-cli -d {ID} --send-sms "test" --destination "{PHONENO}" opens the SMS dialog.

I am running Sailfish Connect 0.4-2 and kdeconnect 1.3.5-1 (on KDE Plasma 5.16.4-1)

Crash on timed out pairing

Reproduce:

  • Send a pairing request for a other device
  • Do not react on pairing request

What happens:

  • App crashes

[FR] Show media controls in cover page

The current cover page shows a device list and refresh button, regardless of connection status. It would be nice that, when the application is on the 'Device' page, the active cover would show data/controls specific to the connected device, such as MPRIS info and a 'play/pause' and 'skip' button.

I'm not that familiar with QML. Is it even possible to dynamically switch the cover page?

clipboard sync problem from jolla to pc

version: sailfishconnect 0.1
OS: sailfishOS 2.2.0.29

There is a sync problem from jolla to pc: I make a selection on my jolla1 and in klipper there is an empty entry.

vice versa it works fine: I make a selection on pc and the clipboard of sailfish changes correctly.

No notifications in KDE Connect

I have installed KDE Connect v1.3.3 and Sailfish Connect v0.5.1 on Sailfish OS v3.2.1.20 (Sony Xperia X). Connecting works fine, but notifications from the mobile are not shown on the desktop. All other features I have tested so far seem to work.

Problems during conan dependency compilation

I've been trying to compile a build of harbour-sailfishconnect locally with Sailfish IDE, but I've encountered some problems. (OpenSuSE Tumbleweed)

First problem was compilation error during "Collecting PyYAML<=6.0,>=3.11 (from conan===1.60.1)"
This could be esaily fixed with bumping conan version in harbour-sailfishconnect.spec to 1.60.2

However, I'm having problems with paths during dependency installations
KF5Config/5.36.0@r1tschy/stable` from 'sailfishos' KF5CoreAddons/5.36.0@r1tschy/stable from 'sailfishos KF5I18n/5.36.0@r1tschy/stable from 'sailfishos' Qca-qt5/2.2.1@r1tschy/stable from 'sailfishos' extra-cmake-modules/5.68.0@r1tschy/stable from 'sailfishos' libssh/0.9.5@r1tschy/stable from 'sailfishos'

e.g.

libssh/0.9.5@r1tschy/stable: Copying sources to build folder
libssh/0.9.5@r1tschy/stable: Building your package in /home/user/harbour-sailfishconnect/.conan/data/libssh/0.9.5/r1tschy/stable/build/ab7ea57f49b7c07a7394772fef5a7758f78bb4c4
libssh/0.9.5@r1tschy/stable: Generator cmake created conanbuildinfo.cmake
libssh/0.9.5@r1tschy/stable: Aggregating env generators
libssh/0.9.5@r1tschy/stable: Calling build()
/home/mersdk/.mb2/wrappers/build-harbour-sailfishconnect-SailfishOS_4_5_0_18_i486_in_Sailfish_SDK_Build_Engine-Release/cmake: Executing real cmake:
+ /usr/bin/cmake --version -GNinja -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_C_COMPILER_TARGET:STRING=i486-meego-linux-gnu -DCMAKE_CXX_COMPILER_TARGET:STRING=i486-meego-linux-gnu /home/user/harbour-sailfishconnect//home/user/harbour-sailfishconnect/.conan/data/libssh/0.9.5/r1tschy/stable/build/ab7ea57f49b7c07a7394772fef5a7758f78bb4c4
/home/mersdk/.mb2/wrappers/build-harbour-sailfishconnect-SailfishOS_4_5_0_18_i486_in_Sailfish_SDK_Build_Engine-Release/cmake: Executing real cmake:
+ /usr/bin/cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Release -DCONAN_IN_LOCAL_CACHE=ON -DCONAN_COMPILER=gcc -DCONAN_COMPILER_VERSION=8.3 -DCONAN_CXX_FLAGS=-m32 -DCONAN_SHARED_LINKER_FLAGS=-m32 -DCONAN_C_FLAGS=-m32 -DCONAN_LIBCXX=libstdc++11 -DCMAKE_INSTALL_PREFIX=/home/user/harbour-sailfishconnect/.conan/data/libssh/0.9.5/r1tschy/stable/build/ab7ea57f49b7c07a7394772fef5a7758f78bb4c4/install -DCMAKE_INSTALL_BINDIR=bin -DCMAKE_INSTALL_SBINDIR=bin -DCMAKE_INSTALL_LIBEXECDIR=bin -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_INCLUDEDIR=include -DCMAKE_INSTALL_OLDINCLUDEDIR=include -DCMAKE_INSTALL_DATAROOTDIR=share -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCONAN_EXPORTED=1 -DWITH_ZLIB=True -DWITH_SFTP=True -DWITH_SERVER=True -DWITH_STATIC_LIB=True -DBUILD_EXAMPLES=False -DBUILD_TESTING=False -DBUILD_SHARED_LIBS=False -Wno-dev /home/user/harbour-sailfishconnect/.conan/data/libssh/0.9.5/r1tschy/stable/build/ab7ea57f49b7c07a7394772fef5a7758f78bb4c4/libssh-0.9.5 -GNinja -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_C_COMPILER_TARGET:STRING=i486-meego-linux-gnu -DCMAKE_CXX_COMPILER_TARGET:STRING=i486-meego-linux-gnu /home/user/harbour-sailfishconnect//home/user/harbour-sailfishconnect/.conan/data/libssh/0.9.5/r1tschy/stable/build/ab7ea57f49b7c07a7394772fef5a7758f78bb4c4
CMake Error: The source directory "/home/user/harbour-sailfishconnect/home/user/harbour-sailfishconnect/.conan/data/libssh/0.9.5/r1tschy/stable/build/ab7ea57f49b7c07a7394772fef5a7758f78bb4c4" does not exist.

I can work around these in compilation by manually creating a directory /home/user/harbour-sailfishconnect/home/user/harbour-sailfishconnect/.conan/data/libssh/0.9.5/r1tschy/stable/build and copying /home/user/harbour-sailfishconnect/.conan/data/libssh/0.9.5/r1tschy/stable/build/ab7ea57f49b7c07a7394772fef5a7758f78bb4c4 there (for each of the dependencies), however this doesn't yet allow the actual harbour-sailfishconnect compilation to find them.

It seems that a white space is missing somewhere, or duplicate contents are added to path for some reason. I've tried poking around the conanfiles, rpm spec and CMakeLists.txt, but I'm not fluent with conan and haven't managed to find out how to fix this correctly.

[Feature Request] Option to enable 'Silent' while connected

Often when I am in my house and use my PC, I get a notification on both my phone and my Computer (from chat applications or email). It would be nice if you could add an option to enable Sailfish OS's silent mode if you're connected to a particular computer, and revert it to what it was before once you disconnect.

Collaboration in kdeconnect-kde repo?

Hi @R1tschY,
happy to have found your work on giving us SFOS users finally native access to the world of kdeconnect. Though at the very same time I also discovered a parallel effort, by a patch for kdeconnect-kde repo itself, https://phabricator.kde.org/D10703 (with work & updates prepared here: https://github.com/piggz/kdeconnect-kde/tree/pgz-sfos-initial)

Myself being also a contributor to KDE projects, including kdeconnect since very recently, and knowing the people, I jumped on the other patch for now :) Also because working on the original code allows more influence on things possibly needed for SFOS.

Then of course it would be great to have people join efforts where possible. When it comes to SFOS, of course all the extra deps currently pulled in for the Plasma-oriented codebase of kdeconnect-kde ideally would be avoidable. @piggz' work here has started that, for now by removing the dependency on KNotifications. And for the future there might be the option of a pure-qt-based kdeconnect core, see e.g. things noted in the comment https://phabricator.kde.org/D10703#228863

So I would like to invite you to consider joining the kdeconnect project, and work together with piggz, me and others to have SFOS a first-class platform directly supported by the original project. Do not hesitate to ask me for more information here, happy to reply to any questions.

Cheers
Friedrich

Connection issues when app is in background too long

Hello,

I noticed that the application can lose connection with my computer when it stays in background too long.
I'm experiencing the issue all the time when watching a movie : I use Sailfish Connect to manage the mouse remotely from my couch (I use it one or two times / movie). In the meantime, I leave the app in background. The issue is that if I wait too long before opening it again, I lose connection : the touchpad doesn't react and when going back in the menu I've got the connection issue message. The only quick fix is for me to hit the refresh button on the background app view to quickly reconnect it.

Has anyone also experienced it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.