Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

Package Slick as a Desktop app #7

Open
bnvk opened this issue May 3, 2015 · 10 comments
Open

Package Slick as a Desktop app #7

bnvk opened this issue May 3, 2015 · 10 comments

Comments

@bnvk
Copy link
Member

bnvk commented May 3, 2015

I'd really like to be able to run a copy of Shout with Slick theme installed that runs natively on a laptop or PC. Shout is web interface + node.js backend server, packaging it in Electron yields the following benefits:

  • Makes Shout + Slick accessible to end-users without requiring the to install it on a server with a public IP or run it on a local machine with a CLI + browser window (which is terrible UX)
  • The ability to read and search log files (from local filesystem) while offline
  • Native OS launching / toggle-ability between other native apps
  • Viewing the interface "chromeless" without the browser interface chrome for a nicer interface
  • Ability to implement other network level plugins like XMPP...

This should be achievable without too much effort using the Electron shell & packager made by Github. I believe @tthew was tinkering with this idea :)

@raucao
Copy link
Member

raucao commented May 3, 2015

This is what AppCache, ServiceWorker and IndexedDB are for. The Web has offline support these days. ;)

@erming
Copy link

erming commented May 3, 2015

Some time ago I built a desktop app with node-webkit:
https://github.com/erming/shout-build

By modifying what's inside the shout/-folder you might be able to create a standalone from it. However, I have not tried building it for a long time, it might not work 100%.

(...node-webkit has since changed it's name to nw.js)

@raucao
Copy link
Member

raucao commented May 3, 2015

Yes, but how would you keep messages offline then? If the app is not designed for that, retro-fitting is hard.

@bnvk
Copy link
Member Author

bnvk commented May 3, 2015

@erming interesting. I wonder about using nw.js instead of Electron. For some reason i'm betting on the later as it seems to have better native integration and Github behind it is also reassuring.

@skddc yes, those are all exciting developments in browser tech and could be cool, but to benefit them Shout would need a significant rewrite... currently logs are stored on the filesystem. Also, there's other benefits like native OS integrations like notifications, tray bar / dock icons and being treated like a native app.

@raucao
Copy link
Member

raucao commented May 3, 2015

currently logs are stored on the filesystem

There's no filesystem access from the Web (except for sandbox in Chrome), so I assume you mean on the server's filesystem. In that case you cannot have offline logs on the client without retro-fitting. And if you just run the whole thing locally, you lose the major and important benefit of backlogs during away/offline time. I think I might be missing the point of this issue, but as far as I can see, you cannot just "wrap stuff in a native app and have everything be nicer" (if that's what the goal is). ;)

like native OS integrations like notifications, tray bar / dock icons and being treated like a native app.

All possible without building native apps now.

@bnvk
Copy link
Member Author

bnvk commented May 4, 2015

@skddc you are missing the point / not understanding the components or the goal. Ping me on IRC sometime if you want to discuss more 😉

@jancborchardt
Copy link
Member

@bnvk it seems though that @skddc is right about his point that your requirement of

read the logs and such while offline

is not possible by just using Electron, right?

@bnvk
Copy link
Member Author

bnvk commented May 4, 2015

@jancborchardt @skddc i've updated the original issue description with more of my reasoning for this, I realize I poorly described my reasoning!

@jancborchardt
Copy link
Member

Great! I agree it would be a good point to package Shout as a desktop app to make it easily installable for less technical people. Sure the bouncer/offline-message aspect would get lost but that’s ok in the first run.

@raucao
Copy link
Member

raucao commented May 4, 2015

So it's running locally then?

(Also, I don't see any goal that can't be achieved with Web tech in the new list either.)

@bnvk Let's meet soon and discuss. I have a feeling you're trying to bend Shout into what we're actually doing with Kosmos. ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants