PCManFM: Open and save files with Onlyoffice?

Wow, thanks!

got a solution is a bit workaround but it is different got from lxqt telegram channel

make sure you have ~/.local/share/applications

cp /usr/share/applications/onlyoffice-desktopeditors.desktop $HOME/.local/share/applications
sed -i “s/%U/%F/” $HOME/.local/share/applications/onlyoffice-desktopeditors.desktop

also works with excel…

not tested in pcmanfm-gtk3 i suppose, but in the source probably identical i think

Great!

From what I can tell, sed is used in this case to edit files.

I did
sudo pacman -S sed

and then copied the file
cp /usr/share/applications/onlyoffice-desktopeditors.desktop $HOME/.local/share/applications

and then

sed -i “s/%U/%F/” $HOME/.local/share/applications/onlyoffice-desktopeditors.desktop

this last command gives me the error
sed: -e expression #1, char 1: unknown command: �`

also after a reboot.

idk probably bad charachter because it change this

Exec=/usr/bin/onlyoffice-desktopeditors %F

normal it is %U :slight_smile:

cant tell why your sed is off … you can nano it too

dont need a reboot, just restart mayby

1 Like

This happened because @ringo did not use code formatting for the proposed command, and then you copied that command from the browser to the terminal.
When you don’t use code format, the forum software converts quotes to smart quotes to make it pretty.
When you post actual terminal commands, you should use proper code formatting, to avoid such issues. Also, when you copy terminal commands from the web, always check there is no such smartifying in the copied content
:wink:

1 Like

OK. when I do
sudo nano $HOME/.local/share/applications/onlyoffice-desktopeditors.desktop

I get

[Desktop Entry]
Version=1.0
Name=ONLYOFFICE Desktop Editors
GenericName=Document Editor
GenericName[ru]=Редактор документов
Comment=Edit office documents
Comment[ru]=Редактировать офисные документы
Type=Application
Exec=/usr/bin/onlyoffice-desktopeditors %U
Terminal=false
Icon=onlyoffice-desktopeditors
Keywords=Text;Document;OpenDocument Text;Microsoft Word;Microsoft Works;odt;doc;docx;rtf;
Categories=Office;WordProcessor;Spreadsheet;Presentation;
MimeType=application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/>
Actions=NewDocument;NewSpreadsheet;NewPresentation;

[Desktop Action NewDocument]
Name=New Document
Name[de]=Neues Dokument
Name[fr]=Nouveau document
Name[es]=Documento nuevo
Name[ru]=Создать документ
Exec=/usr/bin/onlyoffice-desktopeditors --new:word

[Desktop Action NewSpreadsheet]
Name=New Spreadsheet
Name[de]=Neues Tabellendokument
Name[fr]=Nouveau classeur
Name[es]=Hoja de cálculo nueva
Name[ru]=Создать эл.таблицу
Exec=/usr/bin/onlyoffice-desktopeditors --new:cell

[Desktop Action NewPresentation]
Name=New Presentation
Name[de]=Neue Präsentation

What do I edit?

just change %U to %F , if you have a format like docx to use onlyoffice (rightclick preference) you can click and it opens as it should

i think the QT version should be working as GTK , no need to reboot its direct effective

I confess to have consumed a couple beers.

Took me quite a little while to figure it was the %U in the onlyoffice-desktopeditors.desktop!

But it friggin’ works!!

1 Like

Way cool, many thanks!

I have an obsessive-compulsive streak, and demand order on my computer.

This thing couldn’t pass, and you’ve made my day!!!

I even seem to understand the gist of it, that’s equally important

Thanks again!

Bring my thanks to the person who came up with the solution!!

yeah someone had this issue too had to ask to, my gut was in the same range but couldnt know really it was %F didnt look at it also tried to change something but this is smaller change atleast :slight_smile:

1 Like

Gotta love Linux!

There is always a solution if you look hard enough, or ask for help!!

In no other OS can you spend a week trying to get a word document to open in a sensible manner, haha!

But seriously, I love the lack of universal standards, it is what makes it possible to make your Linux computer whatever you want it to be.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.