Choose style:

Author Topic: [SOLVED] MEGASync icon disappeared from the indicator apps in the panel  (Read 15265 times)

0 Members and 1 Guest are viewing this topic.

Offline paulus

  • Member
  • ***
  • Posts: 194
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: MEGASync icon disappeared from the indicator apps in the panel
« Reply #15 on: October 11, 2015, 03:32:12 pm »
Does it reappear if you restart the panel:
Code: [Select]
lxpanelctl restart

and can you show us a screen shot of your system tray

I can't upload an image: pressing the image button doesn't do anything! But you can be sure: it's a quite normal panel, without a space for the missing icon.

I try a workaround: I uploaded the image to an external server, and try to put the link on place of the image.

« Last Edit: October 11, 2015, 03:39:39 pm by paulus »

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: MEGASync icon disappeared from the indicator apps in the panel
« Reply #16 on: October 11, 2015, 04:07:48 pm »
Open the file:
Code: [Select]
gedit ~/.config/autostart/megasync.desktop
It'll look like this:
Code: [Select]
[Desktop Entry]
Type=Application
Version=1.0
GenericName=File Synchronizer
Name=MEGASync
Comment=Easy automated syncing between your computers and your MEGA cloud drive.
TryExec=megasync
Exec=megasync
Icon=mega
Terminal=false
Categories=Network;System;
StartupNotify=false
X-GNOME-Autostart-Delay=60
try editing it to look like this:
Code: [Select]
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Version=1.0
GenericName=File Synchronizer
Name=MEGASync
Comment=Easy automated syncing between your computers and your MEGA cloud drive.
TryExec=megasync
Exec=bash -c "sleep 20 ; megasync"
Icon=mega
Terminal=false
Categories=Network;System;
StartupNotify=false
X-GNOME-Autostart-Delay=60
This puts a 20 second delay on the launch of MEGA at boot or login.  I'm not sure if it will survive an update though  :-\.  That, you'll find out when a MEGA update becomes available.  You can always adjust the timing too  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline paulus

  • Member
  • ***
  • Posts: 194
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: MEGASync icon disappeared from the indicator apps in the panel
« Reply #17 on: October 11, 2015, 05:15:53 pm »
AndyInMokum,

I changed the file, logged out and re-logged in, and it worked: the MEGASync icon reappeared!

I will retry this several times, until I will draw the final conclusion: I have learnt from the former trial! ;)

But can you explain to me why this is necessary in my case, and isn't for anybody else? In other words: why do I have to add a delay of 20 seconds to the start of the Mega client, but in any other cases this is not necessary?

Anyway: thanks for now, as it seems to work!

paulus

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: MEGASync icon disappeared from the indicator apps in the panel
« Reply #18 on: October 11, 2015, 05:24:41 pm »
It appears the the megasync client was starting BEFORE the bottom panel and system tray .. adding the delay to its autostart file gave the panel/system tray time to come up FIRST

[EDIT]

If you notice the last line of the autostart file

X-GNOME-Autostart-Delay=60

it seems megasync tried to build in a 60 second delay .. but that line doesn't work in LXDE
« Last Edit: October 11, 2015, 05:27:59 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: MEGASync icon disappeared from the indicator apps in the panel
« Reply #19 on: October 11, 2015, 05:39:12 pm »
It's like PCNetSpec says, it all depends on what else is competing to launch; things get bottlenecked.  Manually setting the delay, eases the bottleneck.  I forgot to mention the last line in the file.  The default 60 second delay only works with GNOMEPeppermint  Six uses LXDE.  The line you customized does the same thing.  I dropped it to 20 seconds because the 60 seconds delay is a little generic.  I hope it survives an update  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline paulus

  • Member
  • ***
  • Posts: 194
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: MEGASync icon disappeared from the indicator apps in the panel
« Reply #20 on: October 12, 2015, 03:59:57 am »
Both PCNetSpec and AndyInMokum,

You convinced me of the permanency of this solution, so I will mark this thread (again) as solved.

Thanks for the clarifying description of the cause; that explains why it also gave troubles in LXLE, as this OS is also LXDE.

Still I wonder why none of all the Peppermint OS users ever came upon this problem before!

Next question is: why wasn't it possible to manual start MEGASync (from the menu), as I tried before? Or maybe I had to kill the process, still running, and then restart MEGASync from the menu? If I remember well I once tried it in the second way, but it still gave no icon in the panel.

So your answers would still be much appreciate, as I try to understand more of the backgrounds of this problem.

paulus

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: [SOLVED] MEGASync icon disappeared from the indicator apps in the panel
« Reply #21 on: October 12, 2015, 07:54:24 am »
I thought about that earlier .. and can only assume the megasync process didn't get fully killed for some reason .. maybe it spawns a sub-process.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline paulus

  • Member
  • ***
  • Posts: 194
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: [SOLVED] MEGASync icon disappeared from the indicator apps in the panel
« Reply #22 on: October 12, 2015, 10:52:07 am »
Hi PCNetSpec,

Thanks for sharing your thoughts.

I have copied this thread, i.c. the section of the changed autostart file of MEGASync, in order to know what to do if it might have been changed after a future update of the Mega client.

I am glad that there IS a solution anyway! ;D

Good luck with your further development of this great OS! 8)

paulus

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: [SOLVED] MEGASync icon disappeared from the indicator apps in the panel
« Reply #23 on: October 12, 2015, 11:45:20 am »
TVM :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline paulus

  • Member
  • ***
  • Posts: 194
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: [SOLVED] MEGASync icon disappeared from the indicator apps in the panel
« Reply #24 on: September 01, 2016, 07:12:01 am »
Hi all,

As OP I make use of P7 x64 right now, that uses the XFCE-panel in stead of the LXDE-panel (at the time I started this thread), so I guessed this kind of problem would not occur any longer, as it was related to the LXDE-panel. How surprised I was that again my MEGASync icon disappeared from my - now - XFCE-panel in P7!

So I thought it might not harm if I try to execute the same solution, although it should not be necessary anymore. Guess what: it worked! :o So despite of the now applied XFCE-panel the disappearing of the MEGASync icon is still an issue, but the good news is that the solution here described also works for the XFCE-panel!

This might help others, who make use of P7, too: for that reason I added this contribution.

paulus

Online VinDSL

  • Administrator
  • Hero
  • *****
  • Posts: 5722
  • Karma: 1077
  • Team Peppermint
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: [SOLVED] MEGASync icon disappeared from the indicator apps in the panel
« Reply #25 on: October 31, 2017, 02:53:31 pm »
Fast-forward to 31-OCT-2017...

I installed Linux 4.13 on all of my machines, last week.

I've been running a wait-state on the MEGAsync startup, ever since I can remember. Now invoking 'sleep' into the mix causes MEGAsync to hard-lock the app. The icon is present on the panel, but the MEGAsync app is DOA, so it doesn't do anything.

The fix was to remove the wait/sleep state, and let it autostart normally, at boot.

Here's my current, working .desktop file:

Code: [Select]
[Desktop Entry]
Type=Application
Version=1.0
GenericName=File Synchronizer
Name=MEGASync
Comment=Easy automated syncing between your computers and your MEGA cloud drive.
TryExec=megasync
Exec=megasync
Icon=mega
Terminal=false
Categories=Network;System;
StartupNotify=false

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: [SOLVED] MEGASync icon disappeared from the indicator apps in the panel
« Reply #26 on: October 31, 2017, 03:27:04 pm »
I'm getting a serious case of déjà vu here, I'd have sworn you said this a few days ago ??? :-\ ???
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Online VinDSL

  • Administrator
  • Hero
  • *****
  • Posts: 5722
  • Karma: 1077
  • Team Peppermint
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: [SOLVED] MEGASync icon disappeared from the indicator apps in the panel
« Reply #27 on: October 31, 2017, 03:40:48 pm »
LoL!  I did, in PM.

Wanted to make sure the fix held up, across multiple boots and machines, before I posted it in the threads.

Why do I have a feeling you're pulling my leg?  ;D

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: [SOLVED] MEGASync icon disappeared from the indicator apps in the panel
« Reply #28 on: October 31, 2017, 03:54:09 pm »
Nope, not pulling your leg .. in fact (like an idiot) I went scouring your previous posts and moderation log (never even considered PM's) ::)

Embarrassing brain hiccup is all :-[

[EDIT]

Let's just hope the next ISO isn't called 'Peppermint 18.04' with KDE :)
« Last Edit: October 31, 2017, 04:01:54 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Online VinDSL

  • Administrator
  • Hero
  • *****
  • Posts: 5722
  • Karma: 1077
  • Team Peppermint
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: [SOLVED] MEGASync icon disappeared from the indicator apps in the panel
« Reply #29 on: October 31, 2017, 04:02:00 pm »
Talking about idiots, I think I forgot to put a title on that PM, making it hard to find again.

I never could figure out why this CMS software allows an empty subject line in PM  :-\