[snap] Shortcuts to XDG folders are not localized and point to non-existing folders under $SNAP_USER_DATA/

Bug #1748273 reported by almejo
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)

Bug Description

I am using:

libreoffice (candidate) from 'canonical' installed

The first thing I try is to open a file, but the filepicker is freezed and can't change the folder. Looking in the terminal I have this message:

snow /snap/bin/libreoffice
(soffice:19124): GLib-GIO-WARNING **: Error creating IO channel for /proc/self/mountinfo: Permission denied (g-file-error-quark, 2)

I only can try creating new files

Tags: snap
Revision history for this message
Olivier Tilloy (osomon) wrote : Re: [snap] Can not select file in file picker

Can you please share the output of the following commands?

    lsb_release -a

    snap info core libreoffice

I am on 18.04, and seeing the same warning in the terminal, but the filepicker works for me (doesn't freeze and allows me to open files as expected).

summary: - Can not select file in file picker
+ [snap] Can not select file in file picker
Revision history for this message
almejo (alejandro-vera) wrote :

I tryed again. The dialog is not freezed but the problem is that the folders in top left are not working (for exampled, downloads) but the ones in the bottom left are working (like the other Downloads link)

Here are the output of the commands

alejo@steven:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 17.10
Release: 17.10
Codename: artful

alejo@steven:~$ snap info core libreoffice
name: core
summary: snapd runtime environment
publisher: canonical
contact: <email address hidden>
description: |
  The core runtime environment for snapd
type: core
snap-id: 99T7MUlRhtI3U0QFgl5mXXESAiSwt776
tracking: stable
installed: 16-2.30 (3887) 85MB core
refreshed: 2018-01-22 04:47:13 -0300 -03
  stable: 16-2.30 (3887) 85MB -
  candidate: 16-2.31 (4017) 85MB -
  beta: 16-2.31 (4017) 85MB -
  edge: 16-2.31+git552.3c927a0 (4030) 85MB -
name: libreoffice
summary: LibreOffice is a powerful office suite including word processing and creation of spreadsheets,
  slideshows and databases
publisher: canonical
contact: http://www.libreoffice.org/get-help/community-support/
description: |
  LibreOffice is a powerful office suite – its clean interface and
  feature-rich tools help you unleash your creativity and enhance your
  productivity. LibreOffice includes several applications that make it the most
  powerful Free and Open Source office suite on the market: Writer (word
  processing), Calc (spreadsheets), Impress (presentations), Draw (vector
  graphics and flowcharts), Base (databases), and Math (formula editing).
snap-id: CpUkI0qPIIBVRsjy49adNq4D6Ra72y4v
  - libreoffice.base
  - libreoffice.calc
  - libreoffice.draw
  - libreoffice.impress
  - libreoffice
  - libreoffice.math
  - libreoffice.writer
tracking: candidate
installed: (47) 408MB -
refreshed: 2018-02-08 10:25:49 -0300 -03
  stable: (46) 415MB -
  candidate: (47) 408MB -
  beta: ↑
  edge: ↑

Revision history for this message
Olivier Tilloy (osomon) wrote :

Right, I'm seeing the problem too.

The shortcuts at the top of the list point to e.g. $HOME/snap/libreoffice/47/Documents, and that folder doesn't exist. They are the confined, unlocalized version of the XDG folders. They are not very useful, to say the least…

The shortcuts at the bottom of the list are those from the host machine, e.g. $HOME/Documents.

This problem is not specific to libreoffice, other snaps that use the gtk open-file dialog have the same issue (e.g. eog).

summary: - [snap] Can not select file in file picker
+ [snap] Shortcuts to XDG folders are not localized and point to non-
+ existing folders under $SNAP_USER_DATA/
Changed in libreoffice (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Olivier Tilloy (osomon) wrote :

Bug report against the snapcraft-desktop-helpers: https://github.com/Ubuntu/snapcraft-desktop-helpers/issues/23

Revision history for this message
Mikhail Novosyolov (mikhailnov) wrote :

+1, the same issue

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.