johannesjo / gnome-shell-extension-window-session-manager

An indicator that let's you save and restore your open apps and the window positions and arrangements over multiple real and virtual displays.
MIT License
91 stars 18 forks source link

Why don't you use rollup/webpack to pack all npm dependencies? #5

Closed KSXGitHub closed 5 years ago

KSXGitHub commented 6 years ago

Instead of asking users to install them independently

johannesjo commented 6 years ago

I tried doing this before. But it doesn't work because the gnome extension context is a little special unfortunately (no fs for example).

KSXGitHub commented 6 years ago

(no fs for example)

so do browsers!

I've seen some guys use Webpack and ReactJS to build GTK+ apps.

johannesjo commented 6 years ago

Do you have some examples for that? That would be quite helpful!

KSXGitHub commented 6 years ago

React GTK Example

johannesjo commented 6 years ago

@KSXGitHub thanks for the example. Unfortunately gnome shell extensions are not really gtk applications, but gjs scripts that import a gtk layer. So this approach won't work here unfortunately. The only way I see this working is using lwsm as a binary and to run it as a shell command (and there was a former version which did exactly that, but which was to big in size to upload to the extensions website).