Snap creates redundant duplicate directories in home folder

Bug #1746710 reported by Michal Kukuča on 2018-02-01
146
This bug affects 31 people
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
High
Unassigned

Bug Description

On first launch of certain applications installed via snap install, or from snap via Software center, redundant directories get created in the home folder, if the system uses a different locale then English.

I'm using Ubuntu 17.10 with Slovak locale.

My home folder:
backup.sh Hudba Plocha Stiahnuté Video
core Obrázky snap Šablóny winbox.desktop
Dokumenty PlayOnLinux's virtual drives Steam Verejné

> snap install mailspring
> mailspring 1.1.2 from 'foundry376' installed

Home folder still the same:
backup.sh Hudba Plocha Stiahnuté Video
core Obrázky snap Šablóny winbox.desktop
Dokumenty PlayOnLinux's virtual drives Steam Verejné

But after the app gets launched:
backup.sh Downloads PlayOnLinux's virtual drives Stiahnuté Videos
core Hudba Plocha Šablóny winbox.desktop
Desktop Music Public Templates
Documents Obrázky snap Verejné
Dokumenty Pictures Steam Video

The newly created english directories are all empty.

The same thing happens with other GUI software, like Brave, Spotify...

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: snapd 2.29.4.2+17.10
ProcVersionSignature: Ubuntu 4.13.0-32.35-generic 4.13.13
Uname: Linux 4.13.0-32-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
CurrentDesktop: GNOME
Date: Thu Feb 1 11:57:14 2018
InstallationDate: Installed on 2017-10-20 (104 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=sk_SK.UTF-8
 SHELL=/bin/bash
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)

Michal Kukuča (michalmaria) wrote :
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in snapd (Ubuntu):
status: New → Confirmed
Nicolás Martín (nikomartn2) wrote :

Same bug on Spanish language, 16.04, 4.13.0-32-generic, unity.

Also, someone asked on Spotify Community about the same issue:
https://community.spotify.com/t5/Desktop-Linux/Spotify-client-is-creating-folders-in-my-Home/td-p/4365895

Daniele Faugiana (auserdude) wrote :

Same here on Ubuntu 17.10 (Gnome) with snap package of Spotify. Once I start Spotify I have all default home folders duplicated (one directory named in English, one named in Italian).

Also confirmed in Ubuntu 16.04.3 LTS 4.13.0-32-generic #35~16.04.1-Ubuntu SMP, (it-IT language).

Sebastien Bacher (seb128) wrote :

Could somebody post about that on https://forum.snapcraft.io ?

Timo Aaltonen (tjaalton) wrote :

this bug makes using snaps "ugly" on non-default locales, bumping the severity due to that

Changed in snapd (Ubuntu):
importance: Undecided → High
Timo Aaltonen (tjaalton) wrote :

fwiw, flatpak doesn't suffer from this

I can confirm this on

Distributor ID: Ubuntu
Description: Ubuntu Bionic Beaver (development branch)
Release: 18.04
Codename: bionic

For example using the VLC snap.

Sergei (markovs-i-mail) wrote :

Stil no resolution? It's annoying!

Kirill Romanov (djaler1) wrote :

I can confirm this on elementary OS 0.4 Loki (based on Ubuntu 16.04)

tags: added: bionic
Willem Hobers (whobers) wrote :

Testing Xubuntu 18.04, this happens as well.
Linux Xubuntu-18-04 4.15.0-12-generic #13-Ubuntu SMP Thu Mar 8 06:24:47 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

vervelover (alessiopangos) wrote :

Still there on a fully updated Ubuntu 18.04 install (italian language), definitely a very annoying bug.

John Lenton (chipaca) on 2018-04-02
no longer affects: snappy
Zygmunt Krynicki (zyga) wrote :

Can someone affected list the set of snaps that they have that may be causing this? We can track this down to the specific snap and then figure out what is causing the issue.

Zygmunt Krynicki (zyga) wrote :

Ah, I see mailspring is enough to reproduce this.

ValiDOM (validom) wrote :

Also affects Ubuntu 18.04 beta.

Sebastien Bacher (seb128) wrote :

That's a problem in the desktop launcher and https://github.com/ubuntu/snapcraft-desktop-helpers/pull/103 should resolve the issue

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

Duplicates of this bug

Other bug subscribers