Utilisation de weston et wayland

Salut
j’ai ouvert la session wayland/weston depuis mon écran de connexion sddm et c’est brut de fonderie: une icone pour ouvrir un weston-terminal et un fond d’écran gris :thinking:

Une recherche m’indique que tout est basé sur un fichier de configuration weston.ini à poser dans son home: ~/.config/weston.ini.
Mais c’est un peu rébarbatif
https://www.mankier.com/5/weston.ini

Alors mon besoin est simple: quelqu’un aurait-il un fichier conçu pour Debian pour un bureau standard ( firefox, vlc, thunderbird, les icones habituelles ( network-manager, son, énergie, fermeture de session, etc) , météo, etc) et voudrait bien le partager ici.

J’ai pas, mais ça n’a pas l’air si terrible.
https://www.qwant.com/?q=sample%20weston.ini&t=all

Voila un fichier basique qui fonctionne.
Je n’ai mis que des paramètres que je maitrise, les autres gardant la valeur par defaut qui fonctionne.

~/.config$ cat weston.ini

[launcher]
icon=/opt/firefox/browser/chrome/icons/default/default32.png
path=/opt/firefox/firefox -private-window -p beta

[launcher]
icon=/usr/share/icons/Adwaita/24x24/status/folder-open.png
path=/usr/bin/thunar

[launcher]
icon=/usr/share/icons/Adwaita/24x24/apps/utilities-terminal.png
path=/usr/bin/xfce4-terminal

[shell]
background-image=/home/guy/Images/Backgrounds/Giverny.jpg
background-type=scale-crop

[keyboard]
keymap_layout=fr
numlock-on=true

Pour tester avant d’ouvrir une session weston, utiliser une fenêtre terminal dans votre session habituelle et lancer la commande

weston

Voici ce qui corresponds à mon fichier

Mais quand j’ouvre la session weston, firefox ne s’ouvre pas j’ai cette erreur

Error: no DISPLAY environment variable specified
child 13709 exited

Résolu en ajoutant

[core]
shell=desktop-shell.so
modules=xwayland.so
xwayland=true

ça fonctionne


env | grep -i session
XDG_SESSION_ID=23
DESKTOP_SESSION=/usr/share/wayland-sessions/weston
XDG_SESSION_TYPE=wayland
XDG_SESSION_DESKTOP=
XDG_SESSION_CLASS=user
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session11
env | grep -i display
DISPLAY=:1
WAYLAND_DISPLAY=wayland-0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session11

Le fichier weston.ini minimal


[core]
shell=desktop-shell.so
modules=xwayland.so
xwayland=true

[launcher]
icon=/opt/firefox/browser/chrome/icons/default/default32.png
path=/opt/firefox/firefox -private-window -p beta

[launcher]
icon=/usr/share/icons/Adwaita/24x24/status/folder-open.png
path=/usr/bin/thunar

[launcher]
icon=/usr/share/icons/Adwaita/24x24/apps/utilities-terminal.png
path=/usr/bin/xfce4-terminal

[shell]
background-image=/home/guy/Images/Backgrounds/Giverny.jpg
background-type=scale-crop

[keyboard]
keymap_layout=fr
numlock-on=true

Faut-il comprendre qu’une compatibilité X est nécessaire via xwayland pour le bon fonctionnement de certains programmes (firefox dans ce cas) mais pas forcément pour les autres ?