ubports / ubports-pdk

Platform Development Kit for Ubuntu Touch
GNU General Public License v3.0
39 stars 8 forks source link

ubuntu-touch-pdk not in PATH after snap install #7

Closed jonnius closed 3 years ago

jonnius commented 3 years ago

I installed the PDK via sudo snap install --edge ubports-pdk. ubuntu-touch-pdk is not in PATH though. Interestingly there is ubuntu-touch-pdk in PATH (from /snap/bin/ubports-pdk.pdk). Running that seems to do the same as running the tool with from its absolute path /snap/ubports-pdk/126/bin/ubuntu-touch-pdk.

OS: Ubuntu 20.04

fredldotme commented 3 years ago

It's called ubports-pdk.pdk because we cannot ship a command with ubuntu- as a prefix, those are reserved for Canonical. Use the ubports-pdk.pdk wrapper, it sets up the environment properly for the Snap variant.