Node webkit window manager on boot - linux

I have written a node webkit application that also works as a window manager.
I want to achieve the following on Ubuntu on boot:
Bypass Ubuntu loading screen (skip it or customize it)
Start and display my app instead of and before anything else
Is that possible? And if yes how can it be achieved? Thanks.

I take it that you are launching node-webkit in kiosk mode?
https://github.com/nwjs/nw.js/wiki/The-Kiosk-mode
To add your app in Ubuntu as apps to start as soon as linux has booted:
https://askubuntu.com/questions/30931/how-do-i-make-a-program-auto-start-every-time-i-log-in

Related

Custom Linux Desktop Environment on Electron

Is it possible to create Desktop Environment like KDE or GNOME using Electron framework?
How this can be achieved?
Electron is a Node.js Server with Chromium as a Frontend. So you can build cross platform applications using all the power of Node. That's nice but not even near the tasks and settings a desktop enviroment like GNOME or KDE have to manage.
I see absolutely no way achieving what you are looking for.

Add node-webkit app to launch on OS login?

I'm creating an app for Mac, Windows, Linux using node-webkit and I want to have the app auto launch on start.
I have googled ferociously but to no avail. Does anybody know how to add the app to the "login items" using node-webkit?
Here is a print screen of where it would go on MAC.
Thanks in advance for your help.

auto start node.js server on boot in Windows 8

Running a node.js server in Windows. I need the server to auto launch on startup-boot, followed by launching a standalone application. can anyone tell me the best way of accomplishing this?
You'll want to run node as a Windows Service. Services start right after boot, before login.
As far as launching the standalone app, the answer depends on what it is. If it's a GUI app, you'll need to configure Windows to automatically log in, then you can just put it in the Startup folder. If it doesn't have a GUI, you can just use child_process to spawn the app from node.

openjdk shows proper application icon only when started from terminal

I'm using openJDK on Ubuntu 12.04 LTS and I have strange problem with starting GUI applications that are packed in jar archive. When I start application from terminal with "java -jar archivename.jar" it shows proper application icon in side panel. But when I start it from nautilus by double clicking archive icon it shows standard Duke icon.
It also shows icon when I start application by double-clicking shell script from nautilus.
Script content is simple:
#!/bin/bash
java -jar archievename.jar
Is this some bug, or what is the problem? How can I make it show application icon when started from nautilus too, but without script?
It's not big problem to be honest, because I think that using script to start application is often way to do it in linux, even for native applications, written in C++.
I'm just curious.
Thank you.
You can probably make a desktop entry and set the icon properly. See this question about running a jar file.

How to use OpenGL without a window manager in Linux?

I've just finished the LFS book and my Linux system is working right now. I want to use OpenGL to display graphics on the screen, while the only installed package right now are those described on http://www.linuxfromscratch.org/lfs/view/stable/chapter03/packages.html.
I don't want to install something like Gnome, KDE or X.org. Instead, I want to use OpenGL directly from my software. Is this possible, and how can I do this? Or is it just as easy (I don't think so :'p) as writing an OpenGL application which runs full screen?
You don't have to install Gnome or KDE. These are used to managed windows, and you can launch graphical applications without having a window manager.
Therefore, you'll have to install a X server. The X server is responsible of drawing things on your screen. Without X server, you can't launch graphical applications.
Once X has been installed, launch it, export your DISPLAY environment variable, and the rest is like writing an OpenGL application which runs full screen :-)
You can use Pygame as well to create custom launch UI. Also try looking at Wayland compositor as it has replaced XServer in verisons like Fedora and Ubuntu.
kmscube DRM example
https://github.com/robclark/kmscube
This is possibly the most popular demo available, it uses OpenGL and EGL.
Unfortunately, the Ubuntu 18.04 package with NVIDIA proprietary drivers it does not work for me after going into Ctrl + Alt + F3:
drmModeGetResources failed: Invalid argument
failed to initialize legacy DRM
bug report: https://github.com/robclark/kmscube/issues/12
But I did get it working on emulator.
It takes over the entire display, and shows a colorful spinning cube.

Resources