canonical / ubuntu-frame

The foundation for many embedded graphical display implementations
GNU General Public License v3.0
156 stars 21 forks source link

snap: migrate to core24 #177

Closed Saviq closed 4 months ago

AlanGriffiths commented 4 months ago

There is a problem with the fonts:

Mir fatal error: Loading font from /usr/share/fonts/truetype/ubuntu/Ubuntu-R.ttf

Which is because, shelled into the core24 build of Frame:

$ realpath /usr/share/fonts/truetype/ubuntu/Ubuntu-R.ttf
/usr/share/fonts/truetype/ubuntu/Ubuntu[wdth,wght].ttf
$ ls -lh "/usr/share/fonts/truetype/ubuntu/Ubuntu[wdth,wght].ttf"
ls: cannot access '/usr/share/fonts/truetype/ubuntu/Ubuntu[wdth,wght].ttf': No such file or directory

(Not sure what should be going on there, but Frame fails to load a font from a broken link)

Saviq commented 4 months ago

(Not sure what should be going on there, but Frame fails to load a font from a broken link)

Fixed

Saviq commented 4 months ago
  1. Build the ubuntu-frame snap
  2. sudo snap install --dangerous ...

This is better:

snap install ubuntu-frame --channel 24/edge/pr177
  1. Run ubuntu-frame (hosted on X)
  2. Run diagonstic-frame and see the following:
$ sudo frame-diagnostic "Hello, world"
/snap/frame-diagnostic/10/write-diagnostic: 2: cannot create /var/snap/frame-diagnostic/common/diagnostic/diagnostic.txt: Directory nonexistent

Am I missing anything there?

Works for me, though you need to stick to the same user (if you used it as $USER, sudo won't work, and vice versa).

AlanGriffiths commented 4 months ago

Am I missing anything there?

snap connections frame-diagnostic?