New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: start apps in tray #16375

Closed
Sandmonster opened this Issue Jan 12, 2019 · 5 comments

Comments

Projects
None yet
3 participants
@Sandmonster
Copy link

Sandmonster commented Jan 12, 2019

  • Operating System (Platform and Version): Arch Linux x64, kernel 4.20.0, i3 WM 4.16

Expected Behavior
Start applications directly in tray without showing the application window.

Actual behavior
Applications start with minimized window. This fail for systems which don't support minimization

Additional Information
i3 is window manager which doesn't require any desktop environment at all. All the big apps like Discord, Matttermost and Slack have option to start minimized in tray, but in systems which don't support minimizing and maximizing windows this applications still appear on the desktop and take rendering resources which slows the whole machine. I think electron must have an option to start application directly in tray without creating application window. It would be much better, because most of the time you want to receive only notifications from the app, but you don't want to see the window. Setting i3 startup applications is done by executing commands in config file and login startup api doesn't work in this case.

@welcome

This comment has been minimized.

Copy link

welcome bot commented Jan 12, 2019

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

@wget

This comment has been minimized.

Copy link

wget commented Jan 12, 2019

More pieces of info regarding this issue can be found on this thread on the Mattermost forum

@MarshallOfSound

This comment has been minimized.

Copy link
Member

MarshallOfSound commented Jan 12, 2019

I think electron must have an option to start application directly in tray without creating application window

This is a not a "feature" that Electron needs to support, we support tray icons without a BrowserWindow and we support creating BrowserWindow's that are hidden by default. The issues you are describing are partly due to the unusual way that I3 works and the per-app implementation of starting minimized. (Probably using .minimize() and .maximize())

This is something you'll need to take up with individual apps to recognize I3 (Via the WM name) and then use .hide() and .show() instead of .minimize()

@Sandmonster

This comment has been minimized.

Copy link

Sandmonster commented Jan 12, 2019

This is sounds odd to ask every electron developer out there to implement the same code of recognizing wm instead of having common function for this needs

@MarshallOfSound

This comment has been minimized.

Copy link
Member

MarshallOfSound commented Jan 12, 2019

@Sandmonster To clarify the facts as I see them here

  • I3 doesn't support window minimization (as a design choice)
  • Apps have implemented their "launch hidden in tray" functionality using minimization
  • This, therefore, doesn't work on I3

That's not an Electron problem, it's barely an app problem, it's a design choice of I3 that you can't minimize windows. If you want a certain app to behave in an "I3" style way you'll need to get that app to implement special logic for I3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment