ubports / ubports-pdk

Platform Development Kit for Ubuntu Touch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ubuntu-touch-pdk not in PATH after snap install

jonnius opened this issue · comments

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

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.