Comments (5)
D-Bus is a fair choice for IPC. It's cross-platform (so the BSD port can use it), it's extremely cross-language, and it is stable. I can be a bit clunky in the c/c++ world, but it gets the job done, and works with many debug tools.
@soreau, if you don't like dbus-send, you can use busctl (if you use a systemd-based distro)
from wf-shell.
dbus comes to mind, though I find the syntax unwelcoming (both the API code and dbus-send).
from wf-shell.
What I find problematic is the case where we have multiple outputs (or even multiple Wayfire's running). How does the command know which instance to send it to? Perhaps we should just do a Wayfire plugin for tight integration with wf-shell.
from wf-shell.
@ammen99 With compiz there is a concept of screens for each call so the dbus-send caller would choose screen[n] for different instances or allscreens where it doesn't matter. (See the wiki for examples) For knowing which output, you could probably also build it into the call or just use the focused one.
from wf-shell.
In numbernine currently I have a launcher that just pops up as a layer-shell surface on an unspecified output when a gtk action is called, and a panel button that calls a gtk action over dbus. Absolutely no explicit mention of outputs anywhere, Wayfire just puts the lsh surface on the focused output, which is where the button was clicked :) So adding a keybinding is trivial.
multiple Wayfire's running
Each instance should have its own session bus.
clunky in the c/c++ world
gdbus-codegen-glibmm is awesome :) (but with gtk actions, you don't need anything like that)
from wf-shell.
Related Issues (20)
- printf only partially works on command_output HOT 3
- Pressing super key for workspace overview opens menu on every workspace HOT 1
- subprojects/gvc outdated (5 years old) HOT 2
- panel crashes if problems with icons HOT 1
- Not showing WLAN interface on FreeBSD 14 HOT 1
- wf-panel doesn't seem to open certain apps HOT 10
- window-list high cpu usage when full
- latest commits change some expected panel behavior HOT 3
- default.css will not update to newer contents automatically
- Just a showcase
- Panel tray icon behaving unexpectedly (icon size animations) HOT 2
- moveable panel HOT 1
- [Feature Request] Add Pager widget and support for per-workspace tasks HOT 4
- Suggestions for Command-outputs and a little issue with WCM
- LG monitor hotplug on DPMS wake causes several apps to either crash or lose their windows on output recovery HOT 6
- Command-output tooltip execution spam HOT 2
- Tray tooltip variables are used without checking for escape sequences HOT 1
- Panel crashes after immediately switching apps via launchers widget
- panel: harmonise icon sizing HOT 5
- Too many icons blank, icon-mapping option has no effect
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 wf-shell.