{"action":"opened","issue":{"url":"https://api.github.com/repos/meganz/MEGAsync/issues/41","repository_url":"https://api.github.com/repos/meganz/MEGAsync","labels_url":"https://api.github.com/repos/meganz/MEGAsync/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/meganz/MEGAsync/issues/41/comments","events_url":"https://api.github.com/repos/meganz/MEGAsync/issues/41/events","html_url":"https://github.com/meganz/MEGAsync/issues/41","id":180509101,"number":41,"title":"megasync behaviour in Linux when no systray available","user":{"login":"sedimentation-fault","id":22053241,"avatar_url":"https://avatars.githubusercontent.com/u/22053241?v=3","gravatar_id":"","url":"https://api.github.com/users/sedimentation-fault","html_url":"https://github.com/sedimentation-fault","followers_url":"https://api.github.com/users/sedimentation-fault/followers","following_url":"https://api.github.com/users/sedimentation-fault/following{/other_user}","gists_url":"https://api.github.com/users/sedimentation-fault/gists{/gist_id}","starred_url":"https://api.github.com/users/sedimentation-fault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sedimentation-fault/subscriptions","organizations_url":"https://api.github.com/users/sedimentation-fault/orgs","repos_url":"https://api.github.com/users/sedimentation-fault/repos","events_url":"https://api.github.com/users/sedimentation-fault/events{/privacy}","received_events_url":"https://api.github.com/users/sedimentation-fault/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-02T12:04:05Z","updated_at":"2016-10-02T12:04:05Z","closed_at":null,"body":"When someone uses _megasync_ in Linux, in a window manager without any standard systray application (say, _fvwm2_), then one starts _megasync_ from the command line of an _xterm_, _megasync_ starts and...nothing.\r\n\r\nThe user who uses it for the first time (we are *all* first-time users at some point in a software's life-cycle!) is left in the dark: _megasync_ seems to be running OK, even the debug output indicates that it _is_ doing something and probably what it is doing is its job - but there is _no icon, no feedback_. Is it logging in? Is it synchronizing? Is it reading/writing? Is all OK? Did I miss anything during compilation/installation?\r\n\r\nI had to search for _days_, under the almost certain impression that _megasync_ is NOT functioning correctly, until I found some blog that displayed, step-by-step AND with _screenshots_, how installation of _megasync_ looks like in a GNOME/KDE environment - an environment that comes with a systray application by its very definition. The screenshot '_megasync_ docs into your systray' was a revelation to me! There was no sign at all for me that _megasync_ does such a thing by default - up to that point!\r\n\r\nYou should do something about this use case - I cannot imagine that it is too odd. There _are_ people in the Linux world who dislike systrays, but would like to use a syncing application like _megasync_. **In case there is no systray running, _megasync_ should at least issue a warning to the user, so he knows what is going on and what is needed.** \r\n\r\nFYI, as soon as I installed [stalonetray](http://stalonetray.sourceforge.net/), all is well. _stalonetray_ (a systray application, but not the only one around...) displays the _megasync_ icon and the icon informs me about what is going on. All fine! :-)\r\n\r\n**To the _FVWM_ users out there reading this, here is how you can incorporate _stalonetray_ to your window manager:**\r\n\r\nAdd the lines:\r\n```\r\n\r\n#-----------------------------------------------------------------------\r\n# Starts a system tray \"module\"\r\n#-----------------------------------------------------------------------\r\n#\r\nDestroyFunc FuncStartSysTray\r\nAddToFunc FuncStartSysTray\r\n+ \"I\" Test (x stalonetray) PipeRead `echo Exec exec stalonetray \\\r\n-d all \\\r\n--grow-gravity SE \\\r\n--kludges fix_window_pos,force_icons_size,use_icons_hints \\\r\n--background=\"grey67\"`\r\n+ \"I\" TestRc (Match) Wait stalonetray\r\n\r\n\r\n#-----------------------------------------------------------------------\r\n# Starts system tray applets like network, sound, etc\r\n#-----------------------------------------------------------------------\r\nDestroyFunc FuncStartSystrayApplets\r\nAddToFunc FuncStartSystrayApplets\r\n+ \"I\" PipeRead 'echo SetEnv systray_started `ps -e |grep -c stalonetray`'\r\n+ \"I\" Test (EnvMatch systray_started 0 ) break\r\n# volume\r\n+ \"I\" Test (x volumeicon) exec exec volumeicon\r\n# battery\r\n+ \"I\" Test (x fdpowermon) exec exec fdpowermon\r\n# network\r\n+ \"I\" Test (x nm-applet) exec exec nm-applet\r\n# bluetooth\r\n+ \"I\" Test (x bluetooth-applet) exec exec bluetooth-applet\r\n\r\n#-----------------------------------------------------------------------\r\n# stalonetray\r\n#-----------------------------------------------------------------------\r\nStyle stalonetray !Title\r\nStyle stalonetray HandleWidth 2\r\nStyle stalonetray EWMHUseStackingOrderHints\r\nStyle stalonetray Sticky\r\nStyle stalonetray WindowListSkip\r\nStyle stalonetray StaysOnBottom\r\n```\r\nto your ~/.fvwm2rc file. Then add the lines\r\n\r\n ```\r\n+\t\"I\"\tTest (Init) FuncStartSysTray\r\n +\t\"I\"     Test (Init) FuncStartSystrayApplets\r\n```\r\nto your _InitFunction_, i.e. somewhere under the line:\r\n\r\n`AddToFunc InitFunction`\r\n\r\nTo let _FvwmButtons_ (in case you use it) swallow _stalonetray_, add something like:\r\n\r\n*FvwmButtonsRows\t\t3\r\n\r\n# The '1x3' makes stalonetray occupy 1 column and 3 rows in FvwmButtons,\r\n# resulting in a nice vertical tooltray. \r\n*FvwmButtons (1x3, Swallow(NoClose, UseOld, SwallowNew) \"stalonetray\" 'Test (x stalonetray) FuncStartSysTray'\r\n\r\nto _~/.fvwm2rc_.\r\n\r\nYou also need a configuration file for _stalonetray_. This is _~/.stalonetrayrc_. My _~/.stalonetray_ file contains:\r\n\r\n```\r\ntransparent true\r\nwindow_layer bottom\r\ngrow_gravity NW\r\nicon_gravity NW\r\nscrollbars vertical\r\nno_shrink true\r\ntint_level 0\r\ntint_color white\r\nlog_level info\r\nparent_bg false\r\nicon_size 18\r\nsticky true\r\nwindow_layer normal\r\nwindow_strut auto\r\nwindow_type normal\r\ngeometry 4x12\r\nskip_taskbar false\r\n```\r\nbut YMMV.\r\n\r\n**PS.** You might want to add the above to your FAQ."}}
{"actor":{"display_login":"sedimentation-fault"}}