NicoVarg99 / MEGA-Instances

This script will help you running multiple MEGA (megasync) instances.
GNU General Public License v3.0
39 stars 11 forks source link

Script is not autostarting in Linux Mint #5

Closed emailforos closed 5 years ago

emailforos commented 5 years ago

Hi.

I tried your useful script but it only works when executed manually. It doesn't run when login in my PC.

I'm not an experienced user/programmer so I don't know how to solve it. Maybe you can guide me to the solution.

Thank you for your help and work

NicoVarg99 commented 5 years ago

Please post the output of the following commands: cat ~/.config/autostart/mega_instances.desktop ls -l ~/.config/autostart/mega_instances.desktop

emailforos commented 5 years ago
  1. result: [Desktop Entry] Type=Application Exec=/home/javier/MEGA/mega_instances.sh Name=megasync_instances Comment=Open all your MEGA instances

  2. result: -rwxrwxr-x 1 javier javier 135 nov 1 13:09 /home/javier/.config/autostart/mega_instances.desktop

Hope this help.

Thank you.

emailforos commented 5 years ago

Hi.

I finally found out what it was happening.

  1. mega_instances.sh was installed in /home/javier/ so I copied it to /home/javier/MEGA/
  2. mega_instances.sh hasn't permission for being executed so I change it.

It works.

NicoVarg99 commented 5 years ago

The script in the current version (1c77dfe) should automatically copy itself to /home/user/MEGA/ and set the execution permission. Do you confirm it didn't do it?

emailforos commented 5 years ago

Yes. I confirm it.

I followed your instructions in the readme (today), I opened a terminal I wrote: wget https://raw.githubusercontent.com/NicoVarg99/MEGA-Instances/master/mega_instances.sh && bash mega_instances.sh

And it started the installation.

So when I restarted the system I found out that it doesn't auto execute the script.

Maybe it was because my other problem (https://github.com/NicoVarg99/MEGA-Instances/issues/6) that I was not able to finish my two instances set up. So maybe it hasn't reached the end of the script file.

I'm not a programmer so... But maybe if you copy the file from the current directory to the MEGA directory at the first beginning of the script some other user (newbie like me), won't have this problem.

Thank you for your help and work.

NicoVarg99 commented 5 years ago

Please try the new version (note: new installation instructions) and see if it is still not working. The program gets now installed globally in /usr/bin. Don't mind the old autostart/config files. They will get overwritten by the new version.

emailforos commented 5 years ago

Great job!

It worked like a charm.

Thank you very much.