Comments (14)
ae39591 With this commit the connection should be closed ( i used conn.close() even though with statement would have been better. I have plans to clean up code when it gets stable enough )
from cassowary.
I will consider adding option to configure LIBVIRT_DEFAULT_URI or --connect parameter for virsh in advanced section of application !
from cassowary.
If it's ok with you I can try and add that, ever used pyqt though
from cassowary.
If it's ok with you I can try and add that, ever used pyqt though
Sure, you can try and if you got it working send a PR!
Should be pretty easy, you can try adding a key for libvirt url to cfgvars.py's default configuration, Then you can open main.ui file located in 'src/cassowary/gui/components/qtui_files' in qt designer and add a label and text box then give them a name..
Open main_ui.py located in 'src/cassowary/gui/components/' directory, edit the populate_general function to write the current value to the GUI and save_vminfo function to allow saving ( Should be pretty easy). Then you can find wherever virsh is added and add "--connect", "cfgvars.config['your_key_in_config']" to the list of parameters ( preferably right after "virsh" before other parameters)
from cassowary.
Nice thanks, I'll start working on a POC. One question, why are you using subprocess instead of using the libvirt python module?
from cassowary.
Nice thanks, I'll start working on a POC. One question, why are you using subprocess instead of using the libvirt python module?
I really don't know why i did that 😅 , i had also noticed that and plan to replace them as i get time .
Update: I removed all subprocess calls to virsh and use libvirt-python, just need to test it and push the changes, i also added one configurable libvirt uri in GUI !
from cassowary.
Not multiple libvirt uri, but i added option to configure libvirt URI in the latest release, also as you suggested i removed subprocess calls to virsh and moved to libvirt-python :)
Can you check the latest release and close the issue if you feel like the feature was added as you wanted !
from cassowary.
I'll try as soon as I get back home from work. Don't worry about multiple URIs, thinking back it doesn't make much sense since cassowary can only handle one connection to one windows machine
from cassowary.
Did some testing and it works great. Only one thing I noticed, in the code you open connections to libvirt but you never close them. You should either use con.close() or the with statement, preferably the latter
from cassowary.
The v0.6 release should have the fix added, you can test if it works as expected !
from cassowary.
Will do, but lately windows defender is acting up lately, thinking that cassowary.exe is a troyan and blocking it
from cassowary.
Will do, but lately windows defender is acting up lately, thinking that cassowary.exe is a troyan and blocking it
This may have happened because latest build was done on wine instead of windows vm , you can try building it locally if you have issues :)
from cassowary.
I'm back, I tried building it on my VM, and after some problems I managed to build everything, but the server doesn't want to start, no reports from windows defender though
from cassowary.
I'm back, I tried building it on my VM, and after some problems I managed to build everything, but the server doesn't want to start, no reports from windows defender though
can you start the server application with command line and see it it throws any error and also check the logs for error
path\to\cassowary.exe -s
to starr the server application !
Windows defender can create some issues so i recommend using setup.bat to install and run Cassowary server from C drive as setup adds firewall rule for Cassowary in C:\Program Files\cassowary\cassowary.exe
from cassowary.
Related Issues (20)
- Remove cassowary from host HOT 1
- Create a "proper" package for Cassowary HOT 2
- Change ugly window name
- Cannot get Cassowary to work HOT 1
- update instructions for Windows 11 Installation
- Wrong keyboard layout in remote VM applications HOT 1
- I can't see any other programs except the ones installed by default in windows HOT 2
- Display bug when full screen in dual monitor setup
- Add password viewing in settings panel HOT 1
- Settings GUI hangs when connecting to server
- Cannot Build on Fedora
- Consider switching to sdlfreerdp
- Use spice instead of rdp for better mouse control HOT 1
- Add proper window hints so that i3 doesn't try to tile popups HOT 1
- Can cassowary work with a second GPU - passthrough? HOT 1
- support Appimage
- Window resize not possible
- Use with a remote VM? HOT 2
- Unable to open cassowary configuration utility. HOT 2
- Error with open apps HOT 7
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 cassowary.