Comments (5)
Seems like https://doc.qt.io/qt-6/qprocess.html#startDetached-1 has a timeout in
Lines 343 to 370 in e915cfc
But it doesn't look that you can get around that easily...
But I also don't think it's a good idea to run processes from QOwnNotes in the background indefinitely...
What did you try to do with https://git.sad.ovh/sophie/QOwnNotesDiscordRPC/src/branch/main/main.py?
from qownnotes.
Seems like https://doc.qt.io/qt-6/qprocess.html#startDetached-1 has a timeout in
Lines 343 to 370 in e915cfc
But it doesn't look that you can get around that easily... But I also don't think it's a good idea to run processes from QOwnNotes in the background indefinitely...
What did you try to do with https://git.sad.ovh/sophie/QOwnNotesDiscordRPC/src/branch/main/main.py?
In short, I wanted to add Discord RPC to QOwnNotes. This requres a pretty complicated protocol and from what I know QML does not have a good binary writing and protocol making library (also, because I'm lazy.. who isn't? xD)
I've succeeded in this (however, it's quite buggy, due to this issue). The QML and python scripts manage state through a websocket.
- QML starts Python
- Python closes if already open
- QML connects websocket to python
- Python sends data
- If no connection in 5s, python closes script
from qownnotes.
https://git.sad.ovh/sophie/QOwnNotesDiscordRPC/src/branch/main/main.qml
Nifty, websocket in QML 😉👍️
Hm, things you maybe could do...
- Find out if you can increase the timeout for QProcess, then I could add that feature
- Run your Python script periodically and do polling in your Python script (or do you need bidirectional communication between Discord and your Script?)
- Start your python script as system d service?
from qownnotes.
There is no timeout in QProcess::startDetached
, it is mostly likely an issue in the python script you are launching. Try running a program with infinite loop and see if it stops after 30 seconds.
from qownnotes.
Ah, good insight! I hardly ever use Python. 😁
from qownnotes.
Related Issues (20)
- [FEATURE] Add list of AI backends, that were added by scripting engine and ability to test them HOT 2
- [BUG] Syntax Highlighting Error HOT 30
- [BUG] "Check for script updates" in Scripting settings doesn't seem to check for updates HOT 1
- [FEATURE/QUESTION] Static linking HOT 15
- [BUG] Incorrect creation / removal of notes and sub-folders when in Experimental Note Tree Mode HOT 1
- [BUG] 24.8.3 appimage database connection HOT 8
- [FEATURE] Qt6 AppImage
- [BUG] AI Settings page looks broken in Qt 5.15.2 and Qt6 < 6.6 HOT 1
- [FEATURE] Nix CMake build process HOT 37
- [FEATURE] KSyntaxHighlighting HOT 11
- [FEATURE] Can I change the interface theme somehow? The orange highlight in dark mode is not for me. HOT 1
- [FEATURE] Would it be feasible to add an option to enable hanging indent for deeper list levels in the editor? HOT 2
- [BUG] Incorrect Code Block Display in Note HOT 1
- [BUG] Words cannot be accented for the Spanish language. HOT 5
- [BUG] highlighting issue in malformed unordered lists HOT 3
- [EDITOR SCHEMA] Everforest Dark (Hard) HOT 11
- [EDITOR SCHEMA] Everforest Light (Hard) HOT 4
- [I] Can't edit notes HOT 3
- [I] Bracket incorrectly removed/ paired when incompletely nested HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qownnotes.