meganz / MEGAsync

Easy automated syncing between your computers and your MEGA Cloud Drive
Other
1.64k stars 281 forks source link

Gnome-shell integration #95

Open charlesjt opened 7 years ago

charlesjt commented 7 years ago

It would be great to have better integration with gnome-shell through an integrated indicator and taking action through notifications. Gnome has an extensions platform that can be useful to distribute the integration without having to modify the current usability of Megasync for other DE.

SabeBarker commented 7 years ago

+1 for this. I use Debian Jessie which has gnome shell 3.14.4 which does not have the new message tray icons on the bottom left but has the unviewable message tray. When you make the message tray appear and click the MEGAsync icon the status popup appears and the message tray closes leaving no real way to close the status popup easily. You have to open settings and close settings for example to make the status popup go away, click the desktop does to work.

screenshot from 2017-06-08 08-57-30 screenshot from 2017-06-08 08-59-04

Regardless of the new message tray icons at the bottom left in new gnome shell versions I would still prefer having MEGAsync at the top right as it's a nice position where the MEGAsync popup doesn't protrude over anything (like my dock which is on the left for example).

polmr commented 7 years ago

Understood. Thanks for the inputs. We'll consider improving integration with gnome-shell. The popup issue is a rather different issue. We'll try to reproduce it and find a fix.

hemebond commented 7 years ago

It looks like the legacy systray is completely disappearing from Gnome Shell. I updated a tonne of packages last night and it's gone, along with the ability to open MEGASync.

Edit: I was able to find a Shell extension that put the tray icons at the top. So it's all good.

polmr commented 7 years ago

We have just released new version of MEGAsync in which the main UI does not act as a popup in case systray is missing (it'll be listed as any other window) in order to counter-act that. In any case, you can allways execute MEGAsync again and, if running, it'll show the main window. However, using TopIcons extension is the preferred way.

sT331h0rs3 commented 6 years ago

+1 for Gnome Shell integration feature.

hemebond commented 6 years ago

MEGAsync has stopped showing up even with the TopIcon extension.

polmr commented 6 years ago

@hemebond, MEGAsync does work with TopIcons. See attached screenshot: image However you might want to try TopIconsPlus instead (https://extensions.gnome.org/extension/1031/topicons/)

hemebond commented 6 years ago

@polmr I'm already using Topicons Plus but tested with Topicons to be sure. The MEGAsync tray icon It was there back in November but has since disappeared and won't come back.

polmr commented 6 years ago

What's your OS?

hemebond commented 6 years ago

Debian buster/sid. On a whim I killed/exited MEGAsync and started it again and now the icon shows. So I guess MEGAsync is starting before Topicons Plus and so isn't registering or something.

Edit: that doesn't actually seem to be the case since after even after a reboot the Pidgin tray icon is visible but the MEGAsync icon is not. Even though there is a notification right below the tray saying MEGAsync has started.

austinbutler commented 6 years ago

These issues stemming from the removal of the system tray icons in Gnome could be fixed a few different ways.

Personally I think I'd prefer a MEGAsync systemd service, where MEGAsync is started at boot (if you enable the service) and doesn't show the interface at boot. If you've enabled the service you have implicitly agreed to this.

Otherwise there could be a setting in the UI that disables showing the UI at bootup (while still autostarting in the background at boot).

Either of these options covers the issue of the user specifically choosing this behavior instead of it being the default.

imyxh commented 5 years ago

Sorry if I'm being ignorant, but shouldn't it be fairly simple to just set a --no-systray flag or something if we prefer to forgo the extension, and just run the interface as a regular windowed application?

+1 for the systemd service suggestion, though.

coxackie commented 5 years ago

Icon appears in systray with extensions like topicons plus, tray icons, etc, but once one restarts gnome-shell on XOrg (Alt-F2, r), it disappears. I also think a systemd service (and a dedicated gnome extension) would go a long way into making this service very popular.

elken commented 4 years ago

Changing the exec line to Exec=sh -c 'sleep 2 && megasync &' along with this systray extension resolves this.

jonaramos commented 2 years ago

I am using MegaCmd instead as I didn't like the Qt dependency and how it looked on Gnome, and also being unable to minimize the window.

Read MegaCmd documentation

Download MegaCmd rpms file

Basic steps to sync folder once MegaCmd is installed --!:

  1. $ mega-cmd
  2. MegaCmd$ login your@email.com
  3. Type password as requested
  4. MegaCmd$ sync /localpath /remotepath
  5. MegaCmd$ quit --only-shell (to keep MegaServer sync)