Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What's the right way to launch wayfire/wayfire-session?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
aion1223
n00b
n00b


Joined: 05 Oct 2018
Posts: 11

PostPosted: Sun Sep 17, 2023 4:57 pm    Post subject: What's the right way to launch wayfire/wayfire-session? Reply with quote

First of all, I am sorry that the question won't be that clear/sufficiently specific.

I am using a working Gentoo system with systemd + gnome3 for now. I would like to transition to wayfire. This is the documentation I mechanically followed:
https://wiki.gentoo.org/wiki/Wayfire

I think the way I start wayfire might be wrong.

What desktop environment should I use? At least, it doesn't look like gnome3. However, it looked like I might need something beyond the compositor, wayfire.
In general, I am not self-confident that I know how to launch wayfire: e.g. is it running wayfire-session from the non-GUI terminal that I get after disabling gdm
and reboot? Where should I start?

Here is what I got:

I tried to run wayfire from the non-GUI terminal that I got after disabling gdm and rebooting:


  • Disable gdm with systemd and reboot
  • Log in through the terminal
  • Run wayfire and/or wayfire-session


For a while, I see the mouse cursor moving on the black background. Then, I see some background features, some status bars with ethernet icon, etc, on the top.
However, I do not see the mouth pointer any more. Among all the shortcuts, the shortcut that opens Google Chrome works; and none of others appears to work.
At the moment, I am not sure which log files I should look into.

It looks to me that there are some necessary components that are missing at runtime. I've seen that the Gentoo Wiki page seems to say:

Quote:

Wayfire is only a wayland compositor and does not provide the full capabilities expected from a desktop environment.
It is best used alongside gui-apps/wf-shell, which adds among other features a GTK3-based status bar and wallpaper support.


Just like `compiz` was running on `gnome2`, I guessed, `wayfire` may run on some desktop environment that is not `gnome3`. `wf-shell` doesn't sound like a desktop environment like `KDE` or `Gnome`. I did `equery belongs wf-shell`.

Here are the list of executable files:

Code:

# equery files wf-shell
 * Searching for wf-shell ...
 * Contents of gui-apps/wf-shell-0.7.0-r1:
/usr
/usr/bin
/usr/bin/wf-background
/usr/bin/wf-dock
/usr/bin/wf-panel


It did not look like a replacement of gnome or KDE. I did the following to directly run wayfire:

Here's my emerge --info:
Code:

Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/17.1/desktop/systemd, gcc-12, glibc-2.38-r1, 5.10.0-22-amd64 x86_64)
=================================================================
System uname: Linux-5.10.0-22-amd64-x86_64-AMD_Ryzen_7_3700X_8-Core_Processor-with-glibc2.38
KiB Mem:    65856752 total,  53646128 free
KiB Swap:   31249404 total,  31249404 free
Timestamp of repository gentoo: Wed, 13 Sep 2023 03:30:01 +0000
Head commit of repository gentoo: c259222bef572fd4f1108ee060e50df439bb7683
sh bash 5.2_p15-r6
ld GNU ld (Gentoo 2.41 p2) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.5::gentoo, 3.12.0_rc2_p1-r1::gentoo
dev-lang/rust-bin:         1.72.0::gentoo
dev-util/cmake:            3.27.4-r1::gentoo
dev-util/meson:            1.2.1-r1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          254.3::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo
sys-devel/gcc:             12.3.1_p20230825::gentoo, 13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.6::gentoo
sys-devel/llvm:            16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.5::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native -mtune=native"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en en_US ko"
MAKEOPTS="-j30"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="R X a52 aac acc accountsservice acl acpi alsa amd64 anthy apache apache2 apng apparmor avx avx2 bluetooth bluetooth-sound branding btpclient bzip2 c++ cairo caja cdda cdpau cdr cjk clang cleartype cli corefonts crypt cuda cups cxx dbus detex device-mapper dhcp dirac divx dri drm dts dvd dvdr dvdread dvi2tty egl emacs encode epspdf exif extras ffmpeg flac fortran fuse gallium gdbm gdu gif gimp gles gles1 gles2 glitz gnome gnome-keyring gnome-online-accounts gold gpm gtk gtk3 gui hal hwaccel iconv icu imap introspection ipod iptables ipv6 irc java jingle jpeg jpeg2k lame latex lcms libffi libnotify libtirpc libwww linguas_en linguas_ja linguas_ko linlinguas_en_US lto m17n-lib mad maildir mate mikmod mmx mng mp2 mp3 mp3g2 mp4 mp4live mpeg mpi mplayer multilib multitarget ncurses networkmanager nls nptl nsplugin nvenc ogg ogm opengl openmp pam pango pcre pdf pdfannotextractor pluginwrapper png podcast policykit postscript ppds pstricks publishers pulseaudio python qt3 qt4 qt5 readline real samba sasl science scim sdl seccomp sftp sid snmp sound spell split-usr sqlite sse sse2 sse3 sse4 sse4_1 sse4_2 ssh ssl ssse3 startup-notification static-libs static-pie subversion svg systemd systemtap test-rust tex4ht texi2html theora threads tiff tracker truetype type1 udev udisks unicode upower usb vaapi vala vcd vdpau vnc vorbis vulkan wayland win32codecs wma wmf wmp wxwidgets x264 x265 xa xattr xcb xetex xft xine xinerama xml xv xvid xwayland youtube zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="actions alias auth_basic auth_digest authn_alias authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias http2 slotmem_shm xml2enc proxy proxy_balancer proxy_connect proxy_fcgi proxy_ftp proxy_html proxy_http" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 multiboot" INPUT_DEVICES="mouse keyboard evdev synaptics virtualbox" KERNEL="linux" L10N="ja ko en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF NVPTX X86 AArch64 ARM Hexagon MSP430 Mips PowerPC Sparc SystemZ XCore" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="i386 x86_64 aarch64 arm" QEMU_USER_TARGETS="i386 aarch64 arm armeb x86_64" RUBY_TARGETS="ruby31" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


I have nvidia-drivers:
Code:

# emerge -vp nvidia-drivers

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 2.03 s.

[ebuild   R    ] x11-drivers/nvidia-drivers-535.104.05:0/535::gentoo  USE="X modules static-libs strip tools wayland -dist-kernel -kernel-open -modules-sign -persistenced" ABI_X86="(64) -32" 0 KiB


This is the kernel:
Code:

 # eselect kernel list
Available kernel symlink targets:
  [1]   linux-6.5.2-gentoo *
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3882

PostPosted: Thu Sep 21, 2023 12:14 pm    Post subject: Reply with quote

Recently lightdm fails to initialize wayfire.
So I use
Code:

wayfire

from user terminal.
Yes you need to install some stuff for it to work.
In my case packages like
Code:

wayfire  wcm gui-apps/wf-shell wayland-logout kitty gui-apps/mako waybar alacritty swayidle swaylock kanshi wl-clipboard xfce4-clipman-plugin media-fonts/fontawesome xsensors  sway wayland xwayland

This is my list of what I installed when playing around with wayfire.
I followed this
https://wiki.gentoo.org/wiki/List_of_software_for_Wayland
You need some or more of the above packages.
In my wayfire.ini i have(among other things)
Code:

[autostart]
a0 = dbus-daemon --session --address=unix:path=$XDG_RUNTIME_DIR/bus
autostart_wf_shell = true
bar = waybar
gamma = gammastep -c ~/.config/gammastep/gammastep.conf
notifications = mako
reset_pipewire = /usr/bin/killall pipewire
start_pipewire = /usr/bin/gentoo-pipewire-launcher


Plus universal USE="wayland xwayland" in make.conf.
In my case it is pretty usable but you might have some problems with vlc etc.
Firefox(-bin) needed to fallback to X so in my .bashrc I have
Code:

if [ "$WAYLAND_DISPLAY" == "wayland-0" ];then
alias firefox-bin="GDK_BACKEND=x11 firefox-bin"
fi


My main DE is XFCE.
_________________
:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum