Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrappers: do not glob when removing desktop files #5599

Conversation

bboozzoo
Copy link
Collaborator

@bboozzoo bboozzoo commented Aug 3, 2018

Do not use snap_*.desktop globbing when removing desktop files. This would
accidentally remove desktop files of other snap instances of the same snap.

Do not use 'snap_*.desktop' globbing when removing desktop files. This would
accidentally remove desktop files of other snap instances of the same snap.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
@bboozzoo bboozzoo added Simple 😃 A small PR which can be reviewed quickly Parallel installs labels Aug 3, 2018
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
@codecov-io
Copy link

codecov-io commented Aug 6, 2018

Codecov Report

Merging #5599 into master will increase coverage by <.01%.
The diff coverage is 62.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5599      +/-   ##
==========================================
+ Coverage   78.94%   78.94%   +<.01%     
==========================================
  Files         518      518              
  Lines       39439    39441       +2     
==========================================
+ Hits        31134    31136       +2     
- Misses       5773     5774       +1     
+ Partials     2532     2531       -1
Impacted Files Coverage Δ
wrappers/desktop.go 80.23% <62.5%> (-0.72%) ⬇️
cmd/snap/cmd_aliases.go 91.37% <0%> (-1.73%) ⬇️
overlord/hookstate/hookmgr.go 74.51% <0%> (+0.96%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0e0f7d5...dcaeb5b. Read the comment docs.

Copy link
Contributor

@chipaca chipaca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with a nit, of course

return err
}
} else {
activeDesktopFiles = append(activeDesktopFiles, app.DesktopFile())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's df

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
@mvo5 mvo5 merged commit 60e22b1 into snapcore:master Aug 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Simple 😃 A small PR which can be reviewed quickly
Projects
None yet
4 participants