#Bottles can handle Office365 but have trouble with "double-click" / "open with" actions

51 messages · Page 1 of 1 (latest)

ruby fog
#

Description:
I installed Office365 in Bottles (Flatpak) and it works, activates, etc. But I can open files only by opening Word/Excel/PowerPoint and going to File->Open. Double click on a file in Nautilus opens matching app, but after, it throws error "file not found"

Steps to reproduce:

  1. Install Office365 in Bottles (extra steps required, but skipped for clarity)
  2. Set shortcuts
  3. Click on file to open and select matching program (Word/Excel/PowerPoint)

Expected behavior:
Open the file.

Actual behavior:
It starts matching program, opens it, but shows error "file not found", supposedly path is incorrect.

oak mantle
#

presumably because flatpak prevents contained apps from actually seeing the real filesystem

#

I think you can change said permissions with flatseal

ruby fog
#

But is it normal that it can see my flie system when app is already started, and gives error only when in open from Nautilus?

oak mantle
#

"No filesystem access"

ruby fog
#

I mounted my /home inside the bottle, I though it will be enough

#

is flatseal safe?

oak mantle
#

yes

#

kind of annoying that they make you use the flatpak

ruby fog
#

Yah, but AFAIK bottles are only in flatpak currently. Maybe older version, but I woul probably run in compatibility issiues

oak mantle
#

There is I think an unofficial appimage

#

but I suspect giving it access to the filesystem should be sufficient

#

however I would suggest trying flatseal first

#

unofficial builds might be discontinued in the future and I'm assuming you don't want to re-do the install of office

ruby fog
#

I installed flatseal. It shows several levels of file access. Is home enough, or should I link host?

oak mantle
#

home is fine I should think

ruby fog
#

And still the same :/. I'm not sure if it is file access issue. For example if there are spaces in the name, it throws a single error for every word, like it has trouble with transaltion linux path to flatpack "windows-like"

oak mantle
#

well its a windows app in one kind of sandbox in another kind of sandbox in another app

#

but that would be a separate issue from it not being able to see the files at all

#

did it help to give it system files?

#

did you look at what the desktop file on the linux side is doing?

#

it would probably be in ~/.local/share/applications

#

something like this ```#!/bin/bash
FILE=$(winepath -w "$1")
bottles-cli run --bottle office365 -- "C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE" "$FILE"

#

with a desktop file that execs said script ?

#

I've only done this with crossover office which worked correctly last I tried it

#

but on a much older version of office

ruby fog
#

It has:
Exec=flatpak run --command=bottles-cli com.usebottles.bottles run -p Word -b 'Office365' -- %u Office365 is the name of my bottle

oak mantle
#

seems like word isn't able to understand the path passed into it

ruby fog
#

Excatly. I tried to mimic CrosOver way, with executing C:/ProgramData/Microsoft/Windows/Start Menu/Programs/Word.lnk" but it is the same - opening file from the app works, from Nautilus throws error

ruby fog
#

I did bash script that translate linux path to windows and it works as a workaround. This proves indeed the problem is with system path. Nonetheless, I don't know how to fix it in more elegant way.

ruby fog
#

@woeful fog - issue is solved (maybe not the cleaned way, but still...) so I tag you 😉

oak mantle
#

alls well that ends well

ruby fog
#

@oak mantle maybe I was happy to early. Some functions show "There is not enough memory or disk space to complete the operation" error. Under Windows it means that temps folder in inaccessible. In crossover it works, in flatpak bottle not. Probably again some permission issue. Is there any chance, you have idea how to fix it?

oak mantle
#

have you considered just ditching bottles?

#

especially if crossover works

ruby fog
#

If crossover would be more fairly priced, maybe yes. But in this case I only have trial, so not a big choice

#

So far I think it is related to wine version. Rolling back to older version solved part of issues

ruby fog
#

I would say that under Wine 9.0 the only important thing is a glitch with unfolding font/highlight color from the main view in Word - it just blinks fast. So to edit font color you have to go to paragraph settings.

tight temple
#

check out its UI

#

it's quite compatible too

ruby fog
#

I tested different open alternatives. It's not matter of UI, it's matter of how MS don't respect standards, and when you work cross-platform with people that use word, sooner or later it brakes something

tight temple
#

aight

ruby fog
#

I used WPS on Android and the compatibility was very average

#

At this point Bottled o365 seems to work in like 90%. It works fine, opens file directly from Nautilus, most functions work. Just few graphical glitches like this dropdown lists on the ribbons (font color, background color, highlight color) that unfold for half of second and then close. So you need to go dipper in settings to change the parameters.

#

It would be nice to fix it, so if someone has any suggestion I can test 🙂

oak mantle
ruby fog
#

I think I've written this before I found out that after paying you get unlimitted lincence, not subscription. Juts update period is limited. That changes a lot

oak mantle
#

yes you can keep using a version forever but wont get a new version