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

Commit

Permalink
Change the way this look for kdeconnect path
Browse files Browse the repository at this point in the history
  • Loading branch information
Bajoja committed Apr 22, 2017
1 parent 08087ab commit f896514
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
KDE Connect Indicator
=====================
[![Translation Status](https://hosted.weblate.org/widgets/indicator-kde-connect/-/svg-badge.svg)](https://hosted.weblate.org/engage/indicator-kde-connect/?utm_source=widget)
[![Build Status](https://travis-ci.org/Bajoja/indicator-kdeconnect.svg?branch=send-sms-dev)](https://travis-ci.org/Bajoja/indicator-kdeconnect)
[![Build Status](https://travis-ci.org/Bajoja/indicator-kdeconnect.svg?branch=master)](https://travis-ci.org/Bajoja/indicator-kdeconnect)

This Indicator is written to make [KDE Connect](https://community.kde.org/KDEConnect) usable in desktops without KDE Plasma, such as Ubuntu Unity and Pantheon.
It started as an [AppIndicator](https://unity.ubuntu.com/projects/appindicators/), but you can send files and URLs easily through KDE Connect with kdeconnect-send.
Expand Down
2 changes: 1 addition & 1 deletion rpm/indicator-kdeconnect.changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-------------------------------------------------------------------
--- -- -- --:--:-- UTC 2017 - [email protected]
Sat Apr 22 00:00:00 UTC 2017 - [email protected]

- Update to version 0.8.0:
* Fix bug #51 - Nemo and Caja only show the first device
Expand Down
9 changes: 5 additions & 4 deletions src/KDEConnectManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,14 @@ namespace KDEConnectIndicator {
}

private void run_kdeconnect_binary () {
//TODO: path depends from operating system, for now this will be the way to find it
var kdeconnect_path = GLib.Environment.get_system_config_dirs()[0]+
"/autostart/kdeconnectd.desktop";

string std_out;

try{
Process.spawn_sync (null,
new string[]{"grep",
"Exec",
"/etc/xdg/autostart/kdeconnectd.desktop"},
new string[]{"grep","Exec",kdeconnect_path},
null,
SpawnFlags.SEARCH_PATH,
null,
Expand Down

0 comments on commit f896514

Please sign in to comment.