right click 'open current folder in file manager' not working - Ubuntu/Linux

Hi, when I right click in the 'Current Folder' view on the LHS of Matlab its supposed to open the file manager if I select 'open current folder in file manager' but it just does nothing.
Any ideas?

9 Comments

Hi Mark,
Can you check if the following link is relevant? In particular, do you get errors while executing the "system" command described in the article?
Hi Prashant,
The command works fine and returns
ans = 0
I have no idea, it just won't open Nautilus file manager.
Does a window open when you use the following command in a terminal?
xdg-open directoryName
I did `ls` and saw I had a folder called Desktop. So I did
xdg-open Desktop/
And nothing happened. But
cd Desktop/
Works fine.
The error that I got though when doing the first command was
xdg-open Desktop/
Error: Unexpected MATLAB expression.
Sorry if I was not clear. I meant to execute this command (xdg-open directoryName) in a Linux terminal, not from MATLAB command window.
The xdg-open Desktop/ is intended to be run at a terminal Window. Inside MATLAB you could try
!xdg-open Desktop/
In a terminal it works fine and opens Nautilus. In matlab though @Walter it doesnt work.
Does !xdg-open Desktop/ give an error, such as not being able to find xdg-open ? Or does it just silently not open the directory?
nautilus: /usr/local/MATLAB/R2017b/sys/os/glnxa64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/x86_64-linux-gnu/libmirclient.so.9)
nautilus: /usr/local/MATLAB/R2017b/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/libmirclient.so.9)
nautilus: /usr/local/MATLAB/R2017b/sys/os/glnxa64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/x86_64-linux-gnu/libmircommon.so.7)
nautilus: /usr/local/MATLAB/R2017b/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/libmircommon.so.7)
nautilus: /usr/local/MATLAB/R2017b/sys/os/glnxa64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/x86_64-linux-gnu/libmirprotobuf.so.3)
nautilus: /usr/local/MATLAB/R2017b/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/libmirprotobuf.so.3)
nautilus: /usr/local/MATLAB/R2017b/sys/os/glnxa64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/x86_64-linux-gnu/libmircore.so.1)
nautilus: /usr/local/MATLAB/R2017b/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/libmircore.so.1)
nautilus: /usr/local/MATLAB/R2017b/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0)
nautilus: /usr/local/MATLAB/R2017b/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/libprotobuf-lite.so.9)
nautilus: /usr/local/MATLAB/R2017b/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0)
>>

Sign in to comment.

Answers (1)

Hi Mark,
This issue is possibly caused due to dependency of MATLAB shipped "libstdc++.so.6" on GLIBCXX and CXXABI libraries, which are missing on your system. In general libstdc++.so.6 does not require these files and you should be able to workaround this issue by forcing MATLAB to use the shared library from your system, instead of the one shipped with MATLAB. To do this, use the following method:
1. Navigate to the following folder:
matlabroot/sys/os/glnxa64
which I believe is
/usr/local/MATLAB/R2017b/sys/os/glnxa64/
in your case.
2. Rename the file libstdc++.so.6 to libstdc++.so.6.old
This should resolve the issue that you are facing.
Hope this helps!
Prashant

7 Comments

Hi Prashant, we went one step forwards and one step back.
So
system (['xdg-open ' pwd])
Now opens a directory. However when I write click on a folder the 'Open Current Folder in File Manager' option does not appear in the right click pop-up menu of Current Folder (the same link you posted above).
I believe on that thread also Mikhail is having the same issue.
(PS - was it only libstdc++.so.6 to change to end in .old or should libstdc++.so.6.0.20 also end in old?)
Hi Mark, Perhaps you should try to rename libxml2.so.2 to .old as well?
I don't think you'll need to rename the .6.0.20 file.
Hi Prashant, I don't have libxml2.so.2 in the directory you mentioned.
It should be in the following folder:
matlabroot/bin/glnxa64
Ok so I found the file and changed it to .old but open in file manager still isn't appearing.
Hi Mark, Do you know the exact name of the file (libxml2.so.version) in your system? I think it should be present in the /usr/lib64/ directory. Using this exact file name, you should create a symbolic link as described in the article referenced above. You should also change the name back to libxml.so.2 and remove the "old" suffix before proceeding with symbolic link creation.
Hi Prashant, (I'm somewhat new to the structure of linux file system so bare with me please). I don't have /usr/lib64 only /usr/lib and in /usr/lib there is no libxml file.

Sign in to comment.

Categories

Asked:

on 15 Oct 2017

Commented:

on 19 Oct 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!