Skip to content
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

Right clicking icon and choosing 'Quit' just minimizes #90

Closed
DivineOmega opened this issue Mar 21, 2016 · 24 comments
Closed

Right clicking icon and choosing 'Quit' just minimizes #90

DivineOmega opened this issue Mar 21, 2016 · 24 comments

Comments

@DivineOmega
Copy link

Running Ubuntu 14.04 and Mattermost Desktop (electron-mattermost) v1.0.7, steps to reproduce:

  1. Start up Mattermost Desktop in the normal manner.
  2. Right click the icon representing the running program in Unity.
  3. Click the 'Quit' menu option.

Expected behaviour:

  • Mattermost Desktop exits.

Actual behaviour:

  • Mattermost Desktop minimizes if not already minimized and does nothing if it is already minimized.

The only way to quit Mattermost Desktop in this instance is to use the File -> Quit menu option or to kill the process.

@yuya-oc
Copy link
Contributor

yuya-oc commented Mar 22, 2016

On Linux, the application performs 'minimize' instead of 'close' in order to keep the window. It seems that this feature is working in this issue. Unfortunately, I don't know what is the difference between Unity's 'Quit' and normal 'close'.

@brumle80
Copy link

brumle80 commented Apr 8, 2016

same "issue" in Fedora 23, click the x and it minimizes, but doesn't close.

@yuya-oc
Copy link
Contributor

yuya-oc commented Apr 8, 2016

@brumle80 Did you mean about window's "close button"? If you did, the behavior is by design as I had written at the previous post. I think that the point of this issue is the handling for 'Quit' operation caused by desktop environment like Unity/GNOME.

@jasonblais
Copy link
Contributor

Thanks @DivineOmega and @brumle80 for the feedback,

A related ticket #178 has been resolved and closed, which should fix the issue presented here.

However, if there is a further improvement you would like to see, I invite you to help contribute your suggestion in Mattermost feature idea forum so it can be discussed, upvoted and considered for a ticket accepting pull requests?

If you do add it to the feature idea forum, please include a link back to this GitHub Issue. If you're interested in implementing, please say so and we'll prioritize the review.

@jasonblais
Copy link
Contributor

I realized there actually is still an issue with right clicking icon and choosing 'Quit'. I have added it as a known issue to the desktop changelog

@RaphaelKimmig
Copy link

@jasonblais Given that this is a known issue in the changelog, should this issue still be open?

@jasonblais
Copy link
Contributor

@RaphaelKimmig I think that's fair

@jasonblais jasonblais reopened this Dec 11, 2018
@amyblais
Copy link
Member

Ticket for tracking: https://mattermost.atlassian.net/browse/MM-14130

@amyblais amyblais changed the title [Ubuntu] Right clicking icon and choosing 'Quit' just minimizes [Help Wanted] [Ubuntu] Right clicking icon and choosing 'Quit' just minimizes Feb 27, 2019
@echosa
Copy link

echosa commented Apr 10, 2019

I'm not sure if this is the right issue to tack on to, or if I should create a new one (happy to do so!), but there's an inconsistency in the way "Quit" menu items work in Mattermost, at least in GNOME.

There are are a few "Quit" options but not all work the same:

  • In the application window, File -> Quit. This actually quits the program.
  • From the tray icon, <right-click> -> Quit. This actually quits the program.
  • From the upper-left application menu (next to Activities). <Application menu> -> Quit. **This only closes the window/minimizes to the tray, leaving Mattermost open.
  • The Close/X button in the upper-right of the windows. This also only closes the windows/minimizes to the tray, but that's expected... sort of. See below.

So, of these four options, the third seems wrong. <Application menu> -> Quit should completely quit the program, in my opinion.

Now, I can understand the fourth option, since you're "closing" rather than "quitting". However, closing the window is keeping Mattermost open/in the tray, even though I have the "Leave app running [...]" setting unchecked/turned off. See screenshot. Is this a bug? Shouldn't Mattermost be quitting when I close the window since I have that setting turned off?

image

@bochecha
Copy link

In addition to @echosa's last post, there is a 5th way to quit the app in GNOME:

  • in the Activities overview, click the (x) button in the top-right corner of the window thumbnail. Nothing happens at all.

I too have the "Leave app running [...]" setting unchecked/turned off" and would expect all 5 ways to completely quit the program.

Enabling the option should really only minimize the app for the window close button (4th case from @echosa's comment), all other cases should always quit the program no matter what.

@aunwin
Copy link

aunwin commented Jun 19, 2019

Not being able to quit the Desktop Client in the usual way (e.g. klicking the red x button at the top) might cause people to move away from using mattermost.
Under Ubuntu 18_04 LTS I have to use CTRL+q to actually quit the application.

@amyblais amyblais added the Hacktoberfest null label Oct 7, 2019
@hanzei hanzei changed the title [Help Wanted] [Ubuntu] Right clicking icon and choosing 'Quit' just minimizes Right clicking icon and choosing 'Quit' just minimizes Oct 22, 2019
@amyblais amyblais removed the Hacktoberfest null label Nov 4, 2019
@skewty
Copy link

skewty commented Dec 13, 2019

Hey look, another >3 year old bug given low importance due to minuscule Linux market share.

Ticket for tracking: https://mattermost.atlassian.net/browse/MM-14130

Doesn't have any useful information (also showing lack of care about this issue).

Is this an upstream issue? I don't have this issue with other Electron apps. Is it an upstream one? Does anyone have links to the upstream issue(s)?

@amyblais
Copy link
Member

Are you still experiencing this issue on desktop v4.4.0?

@aunwin
Copy link

aunwin commented Mar 25, 2020

Yes. Both for mousclick on the close-icon as well as for alt+F4 Hotkey attempts.

@cookiengineer
Copy link

I wanted to confirm that this is still the case with GNOME 3.36 and later. Not a Unity setup, up-to-date Arch + GNOME stable.

Why doesn't mattermost instead use the appindicator API to land in systray if that's the wanted behaviour - and allow users to disable systray integration in order to close it when they want it?

Currently, users have to manually pkill the process, which I think is pretty annoying.

@raphaelmro
Copy link

I'm having the same experience on Pop!_OS 19.10 x86_64 and GNOME 3.34.3.
The close-icon minimizes the app and the quit button while on the dock is not triggering any close/kill action.

@cfcohen
Copy link

cfcohen commented May 1, 2020

I'm running Mattermost in KDE. In my opinion, closing the window (with the X in the top right corner of the window that normally quits an application) should actually quit the application. This is especially true if the "leave app running in the notification area" is not checked in the settings. That setting is completely disabled on my system, probably because there's no actual KDE notification support. The current behavior just feels like the app is intentionally defeating my attempts to quit, including several other contexts in which an app would normally exit, but instead Mattermost just minimizes (even when it's already minimized, resulting no action). I would recommend just disabling the non-standard close behavior when the setting is disabled.

@SemaiCZE
Copy link

SemaiCZE commented May 4, 2020

Did you mean about window's "close button"? If you did, the behavior is by design as I had written at the previous post. I think that the point of this issue is the handling for 'Quit' operation caused by desktop environment like Unity/GNOME.

@yuya-oc For me it's bad design choice. I'm using Gnome on Fedora and I have UNchecked the Leave app running in notification area switch in settings. On Gnome there is no such thing as notification area and minimizing applications is also not much supported. I'd love to quit Mattermost client the same way as any other app (including Slack). Please reevaluate your design choise. Thanks

@volca02
Copy link

volca02 commented May 4, 2020

On version 4.4.1, while using i3 WM on linux, clicking the red X, or using the i3's close application key combo (which seems to use the WM_DELETE protocol) does nothing at all. That's with the option Leave app running in notification area when application window is closed disabled, I can't seem to be able to enable it.

@cookiengineer
Copy link

I created the pull request #1279 and it respects the minimizeToTray setting correctly.

  • If minimizeToTray is set to true, hide the main window.
  • If minimizeToTray is set to false, close the main window.

@hanzei hanzei linked a pull request May 4, 2020 that will close this issue
5 tasks
@skewty
Copy link

skewty commented Jul 30, 2020

@cookiengineer has even done a PR for the fix. Is the PR not acceptable? What is holding this up?

@cookiengineer
Copy link

cookiengineer commented Jul 31, 2020

@skewty The current status is that I'm building my own fork because nobody answered on the UI/UX implications for this change and I cannot answer these questions, as I am not affiliated with mattermost anyhow.

The settings UI is currently differently rendered on each platform whereas Windows doesn't even have the option, and therefore is behaving wrong in my opinion; and MacOS has this setting but needs testing from a UX member of mattermost.

PS: As an outside contributor I have no clue on what or whether there are even test scenarios for this, and to be honest it seems as the workflow for accepting (or not) pull requests for UX changes seems to be totally broken and overengineered from the CI perspective.

Therefore I kind of gave up and decided to keep maintaining my fork until somebody else has enough time to deal with the UX debate behind this fix. My fork works and behaves the same on MacOS, Windows and Linux - given the settings are rendered everywhere the same, as they should be in my opinion. The fullscreen on MacOS integration isn't affected by this settings option anyways and has a completely separate code branch.

As long as nobody from mattermost's UX team answers, this will likely not be merged in upstream.

@dontlaugh
Copy link

Thanks for your work so far on this. I'm not affiliated with Mattermost, either. But, as a GNOME desktop user, this is a major quality of life issue for me.

@devinbinnie
Copy link
Member

Closing as we have other issues for this and a toggle checkbox to determine whether this should happen or not.

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

Successfully merging a pull request may close this issue.