Skip to content

Instantly share code, notes, and snippets.

@tm9k1
Last active June 25, 2019 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tm9k1/a8cc87cfe4e573375bec584e11c99046 to your computer and use it in GitHub Desktop.
Save tm9k1/a8cc87cfe4e573375bec584e11c99046 to your computer and use it in GitHub Desktop.
GSoC Milestone 1 Testing -- Windows Toast Notification backend for KNotifications

NOTE : This will not be fruitful for packaging Win-notification enabled build of KDE Connect for Windows. There are lots of patches under review for that.

install Python 3.7

https://www.python.org/downloads/

init setup for Craft build system

https://community.kde.org/KDEConnect/Build_Windows

set Craft to build deps and knotifs from master

craft --set version=master kde/frameworks/tier3
craft --set version=master snoretoast
craft --set branch=brute4s99/snore-withactions knotifications

install knotifications and snoretoast from master

craft -i knotifications

craft -i snoretoast

test changes in future

craft -compile --install --qmerge knotifications

^^ if you check out a different branch, it will build the currently selected branch.

^^ works similarly for all Craft packages.

Pairing phone with KDE Connect

  • Open CraftRoot\bin\kdeconectd.exe.
  • In your phone, click on REQUEST PAIRING button within the Windows system entry.
  • run C:\CraftRoot\bin\kdeconnect-cli.exe -d DEVICE_ID --accept.

    Get your DEVICE_ID from ./kdeconnect-cli.exe -l

  • kill kdeconnectd.exe, dbus-daemon.exe from the task manager.

That's it! Now just run kdeconnectd.exe from CraftRoot/bin to test run your changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment