Hi, I’m used to attach pictures to invoices and quotes. It works on both the mobile app and online in a web browser, but does not work in the desktop app (v5.5.36-L97 on a linux install) :
edit an invoice
go to documents tab below the line editor
clic on the button to add a file, the button “blinks” once, but no window open
I there a debug mode on the desktop app, or a console I can check to understand what happens ?
Hi,
I just discovered that this bug prevents me to upload any JSON or CSV file too. So I think the bug can be triaged as very annoying, instead of annoying. The workaround is to use the webapp for these tasks where it works flawlessly.
@hillel I checked Invoiceninja’s snap permissions and it does have access to home directory. Is there any debug mode of desktop journal I can run to give you more info about that bug ?
Thank you for the update, I’ll check for it. In the meantime, at my surprise, I succeeded to start the linux app using the code and flutter, and attaching documents works perfectly on v5.5.71-L109.
Here are the errors that were raised during the test :
** (invoiceninja:33429): CRITICAL **: 09:04:32.943: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
The following assertion was thrown building Container(constraints:
BoxConstraints(w=-41.0,
0.0<=h<=Infinity; NOT NORMALIZED)):
BoxConstraints has a negative minimum width.
The offending constraints were:
BoxConstraints(w=-41.0, 0.0<=h<=Infinity; NOT NORMALIZED)
The relevant error-causing widget was:
Container
Container:file:///home/xxxxxx/admin-portal-master/lib/ui/app/forms/app_toggl
e_buttons.dart:49:27
When the exception was thrown, this was the stack: #0 BoxConstraints.debugAssertIsValid..throwError
(package:flutter/src/rendering/box.dart:525:9) AND 263 more lines alike
Another exception was thrown: BoxConstraints has a negative minimum width.
I’m now on v5.5.95-L110, and still unable to attach documents. It’s strange because on v5.5.71-L109 built from source code it works. Could it be that the snap encapsulation or sand-boxing is the culprit ? (I checked the permission to access the home folder is granted)
If I use on a regular basis the “built from code” version, will it auto-upgrade ? For that may be a solution for this annoyance.