Mabox uses PCManFM by default. I figured they, as distro makers, should know how to configure this correctly.
I installed Mabox in a vm, and installed Onlyoffice. Result: same pcmanfm + onlyoffice problem as on my home-made Arch Fluxbox.
Preliminary conclusion, based on very little knowledge on the matter:
there is some weird mime -type thing going on with PCmanFM, that happens even on official distros. Or that Onlyoffice and PCManFM just aren’t and cannot be friends.
Onlyoffice opens the file exactly as it should. The text is showing, it is not an empty document. The same goes for excel files and powerpoint files.
So Onlyoffice needs the full and explicit path, to open files correctly in PCManFM, but not in Thunar.
This guy “fixed” it with a script, as a workaround:
#!/bin/sh
for argv; do
if [ -f "$argv" ]; then
argv="$(realpath "$argv")"
fi
set -- "$@" "$argv"
shift
done
exec /opt/onlyoffice/desktopeditors/DesktopEditors "$@"
# or
# exec flatpak run org.onlyofficedesktopeditors "$@"
So my question is:
How can I reproduce this on my computer, and use this script this person made?
I’ve been playing around with some simple ready-made scripts, with some success. But I dont know how to set this up with PCManFM, so that it will always open office files with the full path.
Thanks. I’ve tested all the variations of PCManfm, gtk and qt, they all act the same.
From what I can tell, this is more of an Onlyoffice issue than a PCManfm issue. But then, I’m basically a noob as well.
Perhaps one aspect of the problem is that Onlyoffice seems to only have one executable, and then it decides internally how to open the file? I dunno. Somehow it works with Thunar but not PCManFm, not even on distros who use it by default.
But at least there seems to be a real and actual problem with Onlyoffice itself. From the terminal, it needs the exact and explicit path to open files correctly.
Yes, I have. For the problem, see the posts above.
Onlyoffice installs and integrates with PCManFM. But when opening files, any office file, from within PCManFM, it just diplays an empty Onlyoffice word document.
When opening files from within Onlyoffice, with the file picker, it works as expected.
This also happens on the official EOS live iso, when I install PCmanFM and Onlyoffice on it. And on any distro I’ve tried (Garuda LxQt and Mabox) that has PCmanFM as the default file manager.
The beahvior is the same across PCManM versions. I’m very interested in knowing how you got it to work with PCManFM-QT.
not really … is general issue pcmanfm-XXX vs onlyoffice… in pcmanfm it want to start a new document even you called document1.docx it doesnt load… even an aliend .odt it creates a document1.docx … somehow not compatible
Yes, see posts above. I’ve tried it in a whole bunch of disros that use PCManFM, figuring they would know how to set up things properly, so I could rule out mis-configuring on my part as a cause.
OK, my script knowledge is rather poor, haha. If I understand it correctly, the script isn’t for opening anything, but more like setting a rule. But I don’t know how that guy used it, and it is beyond me to use it myself.
It is a mystery to me why this hasn’t been mentioned by CNN and BBC, not even during slow parts of the day.
One has to trawl the net for hours and hours, only to find a couple few forgotten forum posts here and there with no solutions. I can’t be the only one to use this combination?