Comment 2 for bug 1578453

Revision history for this message
niknah (hankin0) wrote :

I have a similar problem.

In pcmanfm when I browse to smb://xxx/yyy/zzz
The address bar will show smb://xxx/zzz

The address bar location is from _fm_path_display_name.
_fm_path_display_name will call fm_path_display_basename and then put the basename and path together.
But fm_path_display_basename will get the basename from disp_name which is set to "/" some times, which turns smb://xxx/yyy to smb://xxx

A quick fix is to disable the feature, if I change src/base/fm-path.c:1024...

else
 disp_base = fm_path_display_basename(path);

To...

else {
 disp = fm_path_to_str(path);
 return;
}

Maybe that disables something else that's useful, I don't know.

Personally, I'd rather see the full path than a pretty display path. Something that I can copy and paste to use in other apps.

Attached is a compiled libfm with the change.
Unzip it somewhere and run...
LD_LIBRARY_PATH=/tmp/WhereYouUnzippedIt pcmanfm