meganz / MEGAsync

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

nautilus-megasync-3.6.6-2 not working with gnome 43 #756

Open mabod opened 1 year ago

mabod commented 1 year ago

I just realized that the nautilus extension is no longer working with gnome 43. This is on an up-to-date endeavouros installation.

The package pulls the binary from https://mega.nz/linux/MEGAsync/Arch_Extra/x86_64 and this has only nautilus-megasync-3.6.6-2-x86_64.pkg.tar.xz from March 2020.

Will this extension be updated?

vuongtuha commented 1 year ago

Helppppppppppp

mabod commented 1 year ago

In the meantime I have learned how to build the nautilus extension by myself. it is very simple and fast:

mkdir /tmp/mega
cd /tmp/mega
git clone --recursive https://github.com/meganz/MEGAsync.git desktop
cd desktop/src/MEGAShellExtNautilus/
qmake MEGAShellExtNautilus.pro
lrelease MEGAShellExtNautilus.pro
make

now you can see the lib and the links in the build directory /tmp/mega/desktop/src/MEGAShellExtNautilus:

ls -l libMEGAShellExtNautilus.so*
lrwxrwxrwx user user  32 B  2022-11-16@08:11 libMEGAShellExtNautilus.so ⇒ libMEGAShellExtNautilus.so.1.0.0
lrwxrwxrwx user user  32 B  2022-11-16@08:11 libMEGAShellExtNautilus.so.1 ⇒ libMEGAShellExtNautilus.so.1.0.0
lrwxrwxrwx user user  32 B  2022-11-16@08:11 libMEGAShellExtNautilus.so.1.0 ⇒ libMEGAShellExtNautilus.so.1.0.0
.rwxr-xr-x user user  34 KB 2022-11-16@08:11 libMEGAShellExtNautilus.so.1.0.0

Just copy all of it to /usr/lib/nautilus/extensions-4/

Thats it. Works for me.

josedr120 commented 1 year ago

lrelease MEGAShellExtNautilus.pro

What are de dev dependencies to make? what is "lrelease"?

mabod commented 1 year ago

I don't know all the details. This is just the commands that worked for me. Taken from the compilation instructions of megasync

vuongtuha commented 1 year ago

I think my way is not really an option in the upstream app. But you can hijack it by using Flatpak with Flatseal. And you can modify directory permission inside the sandbox app, then it will work with whatever file manager.

voedev commented 1 year ago

For me the problem is still relevant :(

Zeit08 commented 1 year ago

In the meantime I have learned how to build the nautilus extension by myself. it is very simple and fast:

mkdir /tmp/mega
cd /tmp/mega
git clone --recursive https://github.com/meganz/MEGAsync.git desktop
cd desktop/src/MEGAShellExtNautilus/
qmake MEGAShellExtNautilus.pro
lrelease MEGAShellExtNautilus.pro
make

now you can see the lib and the links in the build directory /tmp/mega/desktop/src/MEGAShellExtNautilus:

ls -l libMEGAShellExtNautilus.so*
lrwxrwxrwx user user  32 B  2022-11-16@08:11 libMEGAShellExtNautilus.so ⇒ libMEGAShellExtNautilus.so.1.0.0
lrwxrwxrwx user user  32 B  2022-11-16@08:11 libMEGAShellExtNautilus.so.1 ⇒ libMEGAShellExtNautilus.so.1.0.0
lrwxrwxrwx user user  32 B  2022-11-16@08:11 libMEGAShellExtNautilus.so.1.0 ⇒ libMEGAShellExtNautilus.so.1.0.0
.rwxr-xr-x user user  34 KB 2022-11-16@08:11 libMEGAShellExtNautilus.so.1.0.0

Just copy all of it to /usr/lib/nautilus/extensions-4/

Thats it. Works for me.

Didn't work for me, I still see no mega related icons in Nautilus on Fedora 37 (did a reboot)

mabod commented 1 year ago

I just tried it for Fedora 37 and it work too. But on Fedora 37 the path for the extensions is /usr/lib64/nautilus/extensions-4/

Zeit08 commented 1 year ago

I just tried it for Fedora 37 and it work too. But on Fedora 37 the path for the extensions is /usr/lib64/nautilus/extensions-4/

ok thanks, something happened, but not what I expected: Screenshot from 2022-11-21 11-44-36

these icons with explamation mark appear nearby the folders

josedr120 commented 1 year ago

can someone just share the compile *.so files for the people that cant compile?

mabod commented 1 year ago

these icons with explamation mark appear nearby the folders

This is also true for me. But at least the file sync works.

mabod commented 1 year ago

can someone just share the compile *.so files for the people that cant compile?

https://magentacloud.de/s/PRYpQMm3iLKqBbZ

These are my *.so files resp. links. Just unpack in /usr/lib64/nautilus/extensions-4/

But I do not guarantee that this link will work for a long time. The archive should better be placed somewhere else where it will be more persistent.

josedr120 commented 1 year ago

Thanks!!

ruben69695 commented 1 year ago

This workaround didn't work for me, I hope it gets an official solution soon. 🤞🏻

divsmart commented 1 year ago

Thanks @mabod for your help. I followed your instructions, but I do not have qmake installed and cannot compile it. Silverblue 37.1 on Gnome 43.2 has the same issue.