Tiny Core Extensions > TCE Talk

Wayland

<< < (9/10) > >>

Juanito:

--- Quote from: GNUser on November 07, 2023, 01:10:27 PM ---P.S. On a totally unrelated note, it seems weston.tcz.dep is missing dbus.tcz (dbus is needed to start weston).

--- End quote ---

Are you saying that weston has a missing dependency on dbus or that the dbus daemon needs to be running?

GNUser:

--- Quote from: curaga on November 08, 2023, 02:55:45 AM ---xf86-video-intel only affects Xorg. Xwayland always uses glamor 3d acceleration.

--- End quote ---
Hi curaga. Thank you very much for educating me about this.

Hi Juanito. Weston has a missing dependency. dbus.tcz should be added to weston.tcz.dep.

(It is also true that dbus daemon needs to be running, but user should know that if they follow your instructions in weston.tcz.info :) )

Juanito:
I just checked on both x86_64 and aarch64 and weston starts without dbus being loaded - as mentioned in the info, dbus can optionally be used with gtk3/dconf.

GNUser:
Oops. You are correct, of course. Sorry for the noise. weston.tcz.dep is fine as-is.

P.S. On a few occasions I got an error about dbus not being available when I tried to start weston, but that's only because I go the gtk3/dconf route 100% of the time. If user doesn't need gtk3/dconf, then no need for dbus (weston.tcz.info does explain both ways of starting weston.)

GNUser:
To fellow users: Don't run GUI applications as root.

But if you must run GUI applications as root, here's how to do it in wayland ;)

For Xwayland applications, you need to run this once per boot:

--- Code: ---$ xhost +SI:localuser:root
--- End code ---
Then, for example:

--- Code: ---$ sudo gparted
--- End code ---
For wayland-native applications, create this wrapper script and give it a nice name. I went with gksudo:

--- Code: ---#!/bin/sh
exec sudo WAYLAND_DISPLAY="$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY" XDG_RUNTIME_DIR="/run/user/0" "$@"

--- End code ---
Then, for example:

--- Code: ---$ gksudo foot

--- End code ---
I noticed that /run/user/0 does not need to exist. Maybe setting XDG_RUNTIME_DIR in gksudo is not actually necessary. I'm still learning.

P.S. The above is probably terrible for security. Use at your own risk. I post it here because it was hard to figure out and I needed this for rare situations.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version