Bug 419479

Summary: snap sdk: paths in qt.conf are wrong
Product: [KDE Neon] neon Reporter: Maximilian Federle <max.federle>
Component: SnapsAssignee: Scarlett Moore <sgmoore>
Status: REPORTED ---    
Severity: normal CC: neon-bugs-null, sgmoore
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Snap   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Maximilian Federle 2020-04-01 09:23:19 UTC
# Applies to

kde-frameworks-5-core18-sdk
kde-frameworks-5-qt-5-14-core18-sdk

# Summary

qt.conf in the snap has absolute paths set that do not point into the snap's fs tree.

Specifically
```
[Paths]
Prefix = /usr
Settings=/etc/xdg
```

To be useful as a build-snap, the paths should look like this:

```
[Paths]
Prefix = /snap/kde-frameworks-5-core18-sdk/current/usr
Settings=/snap/kde-frameworks-5-core18-sdk/current/etc/xdg
```

# Problem

The sdks are not mounted at /, but at /snap/${SNAP_NAME} and thus those absolute paths are invalid when using qmake.