I have an Electron app and from within it I want to be able to open a native application (i.e Spotify) in a frame. I want to be able to control the layer and position of the window -- is this possible?
Here's a visual.
Related
I'm looking to start any given .exe, and embed that window into my Electron app visibly within a div. It needn't necessarily actually be placed within the div, just visibly; it just needs to be positionable. How can I achieve this?
I'm working on an Electron application that is intended to run on a panel touchscreen computer running Debian. I have enabled the on-screen keyboard board in desktop settings and can see it come up in other applications (such as terminal). However, the on screen keyboard does not come up inside of my electron app when a text input gains focus. I have read that this might be some sort of weirdness with Chromium (see https://askubuntu.com/questions/939616/why-the-onboard-on-screen-keyboard-doesnt-auto-show-in-google-chrome) but have unable to find any workarounds.
I suppose that my question is in two parts:
1 - is there anything that I can do to get Electron to play nicely with the gnome 3 built in keyboard?
2 - is there any program that I can call that would show and/ or hide the on-screen keyboard?
The OS that I am targeting is Debian version 10.3 with the Gnome desktop.
After quite a bit of research, I learned that, in order to trigger the on-screen keyboard for Gnome, an application must be developed around GTK. Any application that fails to do so is considered "foreign" on the Gnome desktop. Apparently, Chrome falls into this category and Electron built apps as well because they are built on Chromium.
With all that said, it is still possible for a foreign application to send on-screen keyboard events through dbus. The issue at CentOS On screen keyboard not showing for Jawa Swing Text entry fields describes these events as follows:
To turn the keyboard on:
dbus-send --type=method_call --dest=org.gnome.Caribou.Keyboard /org/gnome/Caribou/Keyboard org.gnome.Caribou.Keyboard.Show uint32:0
To turn the keyboard off:
dbus-send --type=method_call --dest=org.gnome.Caribou.Keyboard /org/gnome/Caribou/Keyboard org.gnome.Caribou.Keyboard.Hide uint32:0
In Electron, I am using app.dock.hide() to keep my app out of the dock and out of the (cmd-tab) app-switcher. However, I've now created another window (for preferences) and I'd like this to behave like any other normal window. Is there a way to hide a window from the dock (and hence the app-switcher) on a per-window basis?
I'm trying to display a continuous feed of cv images in wxpython using cv.NamedWindow and cv.ShowImage methods. However, this opens the NamedWindow as a separate window.
Is there a way to integrate this named window in a wxpython panel or a frame? My requirement is that the NamedWindow should be part of a GUI and not a standalone window.
I am using Jquery Window plugin v5.03 for my web application. I have to open the multiple windows on screen. But when I call the function to create a window they all open up in the center of the screen and overlap on one another such that previously opened screens are not visible.
I want the windows to open in such a way that at least the title bar and the cross icon is visible on top of the previously opened window. So that the user can know that another window is opened and previous windows are cascaded at the back and are slightly visible.
Please help.