Bug 426838 - kate Snap package should be packaged as classic mode. Otherwise it cannot access dotfolders in home directory.
Summary: kate Snap package should be packaged as classic mode. Otherwise it cannot acc...
Status: RESOLVED FIXED
Alias: None
Product: neon
Classification: KDE Neon
Component: Snaps (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-21 21:15 UTC by silocoder
Modified: 2021-07-30 10:52 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description silocoder 2020-09-21 21:15:41 UTC
SUMMARY
Snap kate package should be packaged as classic mode. Otherwise it cannot access dot folders in home directory nor anywhere else for editing. 

STEPS TO REPRODUCE
1. Install kate with snap UI
2. Attempt to access .local or .config
3. 

OBSERVED RESULT
Will get message not permitted. 

EXPECTED RESULT
=================
Should allow opening and dot folder or dot file without restriction in home. Also should allow access to other parts as usual permissions (e.g. prompting for passwords where required)

SOFTWARE/OS VERSIONS
=====================
Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.4.0-48-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-4810MQ CPU @ 2.80GHz
Memory: 15.6 GiB of RAM

ADDITIONAL INFORMATION
=========================
Installed Kate via Snap UI app.

Kate snap prevents editing  files outside of /home/user/  as well as dot files in /home/user/
According to Snap support, the package should install as  --classic since this is an IDE. I am forced to install it from command line with the --devmode option so it works properly.

~$ snap list | grep -i kate
kate                             20.04.0                     64    latest/stable    kde*          

I get two Kate applications showing in the KDE Menu. Here are the executable properties of each one.

env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/kate_kate.desktop /snap/bin/kate -b %U
env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/kate_org.kde.kate.desktop /snap/bin/kate -b %U

The main difference in .desktop files is some languages and the Icon= attribute. But why 2 different ones?
Comment 1 Justin Zobel 2020-10-28 00:13:56 UTC
Confirmed, cannot access hidden files.