it was obvious. i do not know why there is a need to produce replies out of it.
Can you elaborate more ? I dont understand what you mean.
it was obvious. i do not know why there is a need to produce replies out of it.
#!/usr/local/bin/zsh
env WLR_NO_HARDWARE_CURSORS=1 LIBSEAT_BACKEND=consolekit2 ck-launch-session dbus-run-session wayfire
nano /home/marietto/.config/wayfire.ini
[input]
xkb_layout = it
xkb_variant = dvorak,bepo
export XKB_DEFAULT_LAYOUT=it,us
export XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle
source .zshrc
( or source .zprofile
)in your shell configuration ( maybe it is .zshrc or .zprofile, i never used zsh, so i can't tell where it is ) put following:
export XKB_DEFAULT_LAYOUT=it,us export XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle
then,source .zshrc
( orsource .zprofile
)
this will use Alt + Shift to change it to us, that is you hit both Alt and Shift at the same time.
export XKB_DEFAULT_LAYOUT=it,us
export XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle
xkb_layout = it,us
xkb_options = grp:alt_shift_toggle
wayfire.ini
Code:xkb_layout = it,us xkb_options = grp:alt_shift_toggle
Another solution would be starting Wayfire via shell script using /bin/sh, having the first lineand executable flag set.sh:#!/bin/sh
#!/bin/sh (and csh)
setenv WLR_NO_HARDWARE_CURSORS 1 LIBSEAT_BACKEND consolekit2
ck-launch-session dbus-run-session wayfire
and
set WLR_NO_HARDWARE_CURSORS=1 LIBSEAT_BACKEND=consolekit2 ck-launch-session dbus-run-session wayfire
and
env WLR_NO_HARDWARE_CURSORS=1 LIBSEAT_BACKEND=consolekit2 ck-launch-session dbus-run-session wayfire
This is the syntax for csh.setenv WLR_NO_HARDWARE_CURSORS 1 LIBSEAT_BACKEND consolekit2 ck-launch-session dbus-run-session wayfire
set WLR_NO_HARDWARE_CURSORS=1
export WLR_NO_HARDWARE_CURSORS
set LIBSEAT_BACKEND=consolekit2
export LIBSEAT_BACKEND
ck-launch-session dbus-run-session wayfire
export WLR_NO_HARDWARE_CURSORS=1
export LIBSEAT_BACKEND=consolekit2
ck-launch-session dbus-run-session wayfire
Attached is the file merging startup script (stripping commented out remnants for tests), command line, outputs shown on stderr (not redirected, so copy-pasted from vty) and redirected stdout. The error appears at last line.EE 06-03-24 01:01:53.655 - [src/main.cpp:62] Unable to drop root (we shouldn't be able to restore it after setuid), refusing to start
dbus-launch --exit-with-session wayfire -c ~/.config/wayfire/wayfire.ini
instead of wayfire -c ~/.config/wayfire/wayfire.ini
didn't help, too.env WLR_NO_HARDWARE_CURSORS=1
didn't help here.But I saw this error starting the script as regular user (belongs to wheel as primary group and also video and some others as additional group). Never ran it as root. Strange.yes,I saw that error. It happens when I run the startup script as root. Developers say that it should run as a normal user or it should be patched if you want to run it as root.
#!/usr/local/bin/zsh
# env WLR_DRM_NO_MODIFIERS=1
env WLR_NO_HARDWARE_CURSORS=1 LIBSEAT_BACKEND=consolekit2 ck-launch-session dbus-run-session wayfire
[src/main.cpp:334] Starting wayfire version v0.8.0
[libseat] [libseat/libseat.c:66] Seat opened with backend 'consolekit2'
[libseat] [libseat/backend/consolekit2.c:92] Ping failed: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.9" (uid=1001 pid=25032 comm="") interface="org.freedesktop.DBus.Peer" member="Ping" error name="(unset)" requested_reply="0" destination="org.freedesktop.ConsoleKit" (uid=0 pid=90025 comm="")
[backend/session/session.c:109] Successfully loaded libseat session
[backend/backend.c:220] Found 1 GPUs
[backend/drm/backend.c:200] Initializing DRM backend for /dev/dri/card0 (nvidia-drm)
[backend/drm/drm.c:253] Found 4 DRM CRTCs
[backend/drm/drm.c:180] Found 12 DRM planes
[render/egl.c:201] Supported EGL client extensions: EGL_EXT_platform_base EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions EGL_KHR_debug EGL_KHR_platform_x11 EGL_EXT_platform_x11 EGL_EXT_platform_device EGL_MESA_platform_surfaceless EGL_EXT_explicit_device EGL_KHR_platform_wayland EGL_EXT_platform_wayland EGL_KHR_platform_gbm EGL_MESA_platform_gbm EGL_EXT_platform_xcb
EE 06-03-24 10:23:41.031 - [EGL] command: eglQueryDeviceStringEXT, error: EGL_BAD_PARAMETER (0x300c), message: "EGL_BAD_PARAMETER error: In internal function: Additional INFO may be available"
[EGL] command: eglQueryDeviceStringEXT, error: EGL_BAD_PARAMETER (0x300c), message: "EGL_BAD_PARAMETER error: In function eglQueryDeviceStringEXT(), string query failed at backend"
[EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: "DRI2: failed to load driver"
[EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: "DRI2: failed to load driver"
[EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: "DRI2: failed to load driver"
[EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: "eglInitialize"
[render/egl.c:264] Failed to initialize EGL
[render/egl.c:554] Failed to initialize EGL context
[render/gles2/renderer.c:679] Could not initialize EGL
[src/main.cpp:134] Fatal error: Segmentation fault
#1 0x363b40 <main+0x1580> at /usr/local/bin/wayfire
#2 0x82bdcb53f <pthread_sigmask+0x53f> at /lib/libthr.so.3
#3 0x82bdcaafb <pthread_setschedparam+0x83b> at /lib/libthr.so.3
#4 0x8215222d3 <???> at ???
#5 0x8223fb9c4 <wlr_renderer_get_render_formats+0x24> at /usr/local/wlroots016/lib/libwlroots.so.11
#6 0x82240af23 <wlr_allocator_init+0x83> at /usr/local/wlroots016/lib/libwlroots.so.11
#7 0x362a59 <main+0x499> at /usr/local/bin/wayfire
#8 0x82ae5dafa <__libc_start1+0x12a> at /lib/libc.so.7
But I saw this error starting the script as regular user (belongs to wheel as primary group and also video and some others as additional group). Never ran it as root. Strange.![]()
This seems to be what I struggled with before.Today,when I started again Wayland / wayfire it didn't work. I don't remember that yesterday I've applied hard changes,so I'm not able to understand if and what changes can I revert to make it work again. The startup script that I use :
Code:#!/usr/local/bin/zsh # env WLR_DRM_NO_MODIFIERS=1 env WLR_NO_HARDWARE_CURSORS=1 LIBSEAT_BACKEND=consolekit2 ck-launch-session dbus-run-session wayfire
Code:[src/main.cpp:334] Starting wayfire version v0.8.0 [libseat] [libseat/libseat.c:66] Seat opened with backend 'consolekit2' [libseat] [libseat/backend/consolekit2.c:92] Ping failed: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.9" (uid=1001 pid=25032 comm="") interface="org.freedesktop.DBus.Peer" member="Ping" error name="(unset)" requested_reply="0" destination="org.freedesktop.ConsoleKit" (uid=0 pid=90025 comm="") [backend/session/session.c:109] Successfully loaded libseat session [backend/backend.c:220] Found 1 GPUs [backend/drm/backend.c:200] Initializing DRM backend for /dev/dri/card0 (nvidia-drm) [backend/drm/drm.c:253] Found 4 DRM CRTCs [backend/drm/drm.c:180] Found 12 DRM planes [render/egl.c:201] Supported EGL client extensions: EGL_EXT_platform_base EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions EGL_KHR_debug EGL_KHR_platform_x11 EGL_EXT_platform_x11 EGL_EXT_platform_device EGL_MESA_platform_surfaceless EGL_EXT_explicit_device EGL_KHR_platform_wayland EGL_EXT_platform_wayland EGL_KHR_platform_gbm EGL_MESA_platform_gbm EGL_EXT_platform_xcb EE 06-03-24 10:23:41.031 - [EGL] command: eglQueryDeviceStringEXT, error: EGL_BAD_PARAMETER (0x300c), message: "EGL_BAD_PARAMETER error: In internal function: Additional INFO may be available" [EGL] command: eglQueryDeviceStringEXT, error: EGL_BAD_PARAMETER (0x300c), message: "EGL_BAD_PARAMETER error: In function eglQueryDeviceStringEXT(), string query failed at backend" [EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: "DRI2: failed to load driver" [EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: "DRI2: failed to load driver" [EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: "DRI2: failed to load driver" [EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: "eglInitialize" [render/egl.c:264] Failed to initialize EGL [render/egl.c:554] Failed to initialize EGL context [render/gles2/renderer.c:679] Could not initialize EGL [src/main.cpp:134] Fatal error: Segmentation fault #1 0x363b40 <main+0x1580> at /usr/local/bin/wayfire #2 0x82bdcb53f <pthread_sigmask+0x53f> at /lib/libthr.so.3 #3 0x82bdcaafb <pthread_setschedparam+0x83b> at /lib/libthr.so.3 #4 0x8215222d3 <???> at ??? #5 0x8223fb9c4 <wlr_renderer_get_render_formats+0x24> at /usr/local/wlroots016/lib/libwlroots.so.11 #6 0x82240af23 <wlr_allocator_init+0x83> at /usr/local/wlroots016/lib/libwlroots.so.11 #7 0x362a59 <main+0x499> at /usr/local/bin/wayfire #8 0x82ae5dafa <__libc_start1+0x12a> at /lib/libc.so.7
kld_list="${kld_list} i915kms.ko nvidia-modeset.ko nvidia-drm.ko linux.ko linux64.ko"
If it is needed, the option for me would be to stick with xorg.try to run it without the user being in the wheel group
Unfortunately, I haven't registered to github before MS purchased it, and I want no more tied-to-MS accounts. If it is possible to ask something there without registering, of course I'm happy to ask for help there, though.I've asked a lot of questions here : https://github.com/WayfireWM/wayfire/ ; they are soo kind to help.
kld_list="${kld_list} i915kms.ko nvidia-modeset.ko nvidia-drm.ko linux.ko linux64.ko"
kld_list="nvidia-modeset nvidia-drm linux linux64 i915kms ext2fs"
kld_list
.So I'm not aloneI had the same issue with tmpfs on /var/run/user
XDG_RUNTIME_DIR=/tmp/`id -u`-xdg-runtime
XDG_RUNTIME_DIR
points to somewhere under /tmp/, which Linux guys notes here and there.error, unfortunately.EE 06-03-24 01:01:53.655 - [src/main.cpp:62] Unable to drop root (we shouldn't be able to restore it after setuid), refusing to start
export XDG_RUNTIME_DIR="/var/run/user/`id -u`"
sudo mkdir -p /var/run/user/"$(id -u)"
sudo chown -R "${USER}":"$(id -u)" /var/run/user/"$(id -u)"
sudo chmod 700 /var/run/user/"$(id -u)"
Does it really work? It should be expanded, if UID is 1234, at runtime, intosudo chown -R "${USER}":"$(id -u)" /var/run/user/"$(id -u)"
sudo chown -R 1234:1234 /var/run/user/1234
sudo chown -R "${USER}":"$(id -g)" /var/run/user/"$(id -u)"
I'm a bit confused.# DO NOT USE: 1000-65532
ls -l /var/run/user/
drwx------ 11 djwilcox wheel 15 6 Mar 17:24 1001