You are not logged in.

#1 2018-09-06 03:10:47

Th3Cl3ric
Member
Registered: 2018-09-06
Posts: 7

[SOLVED] Install Only XFCE4-panel

Hi everyone!

I'm new using Arch Linux, I'm trying to get my ideal workspace but I have some troubles, I think I only reached 50%... I guess.

Let me explain what is my idea, I plan to have Arch + Bspwm + xfce4-panel + Vala Panel Application Menu, then theme it up.

I reach to this point: Installed Arch + xorg-server xorg-apps xorg-xinit xterm + LightDM (for login) + Bspwm + Sxhkd, everything works great at this point, Bspwm works in its basic setup.

I started to fail when I installed: xfce4-panel + xfce4-session +  vala-panel-appmenu, in my first try I was trapped in a login loop, then I reinstall everything from zero.

In my second try, Arch + Bspwm starts up, I login with LightDM, but bspwm works a little slow and the xfce4-panel doesn't start up with bspwm until I start it by the urxvt terminal like: "xfce4-panel &", but then I get this error messages:

xfce4-panel: Failed to connect to session manager. SESSION MANAGER enviroment variable not defined.
xfce4-panel: No window manager registered on screen 0. To start the panel without this check, run with --disable-wm-check

My actual .xinitrc ,because maybe someone will ask for it, is this:

#!/bin/bash

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

exec xk-launch-session startxfce4-panel

sxhkd &
exec bspwm

My plan is to get a build with this characteristics: Arch + Bspwm + xfce4-panel (just the panel I dont want the whole suite, I prefer to have only just the necessary packages) + Vala-appmenu, then theme it up.

Please if someone can help me or show me the right way and solve this problem.


Thanks in advance

Last edited by Th3Cl3ric (2018-09-06 15:52:11)

Offline

#2 2018-09-06 04:12:27

jonno2002
Member
Registered: 2016-11-21
Posts: 922

Re: [SOLVED] Install Only XFCE4-panel

the answer is right there:

xfce4-panel: No window manager registered on screen 0. To start the panel without this check, run with --disable-wm-check

just add "--disable-wm-check" when you launch xfce4-panel

Offline

#3 2018-09-06 12:46:42

Th3Cl3ric
Member
Registered: 2018-09-06
Posts: 7

Re: [SOLVED] Install Only XFCE4-panel

hi, thanks for answer, yup, ok, the answer is there but when I start it with the terminal, when I close the terminal, everything closes too.
So, how I can add it to the start up after booting as bspwm and why the vala-appmenu doesnt' appear or give any signals of working.

Offline

#4 2018-09-06 13:25:57

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: [SOLVED] Install Only XFCE4-panel

What are you actually starting? By default LightDM will not use your .xinitrc, from what I gather you would want to edit your .bspwmrc. your .xinitrc  is incorrect in any case, get rid of the exec xk-launch-session (what is that even?) and just keep xcfe4-panel &

Last edited by V1del (2018-09-06 13:26:22)

Offline

#5 2018-09-06 13:29:48

topernic
Member
Registered: 2014-12-16
Posts: 8

Re: [SOLVED] Install Only XFCE4-panel

From https://wiki.archlinux.org/index.php/Xinit#xinitrc

" Remember that lines following a command using exec would be ignored".

You have two 'exec'.

Offline

#6 2018-09-06 13:35:20

Th3Cl3ric
Member
Registered: 2018-09-06
Posts: 7

Re: [SOLVED] Install Only XFCE4-panel

I take that commands from a tutorial... well, this is my new .xinitrc:

#!/bin/bash

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

xfce4-panel &
sxhkd &
exec bspwm

Ok, I done that, still not working, I just get the black screen of bspwm, the xfce4-panel doesn't appear or even load.

Last edited by Th3Cl3ric (2018-09-06 13:36:56)

Offline

#7 2018-09-06 13:36:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: [SOLVED] Install Only XFCE4-panel

V1del wrote:

What are you actually starting? By default LightDM will not use your .xinitrc, from what I gather you would want to edit your .bspwmrc.

Offline

#8 2018-09-06 13:39:59

Th3Cl3ric
Member
Registered: 2018-09-06
Posts: 7

Re: [SOLVED] Install Only XFCE4-panel

mmm, Im totally noob, but, I installed first LightDM and all its greeter and enable its service, so I tink it is by default, I installed before bspwm like this:

sudo pacman -S lightdm

sudo pacman -S lightdm-gtk-greeter lightdm-gtk-greeter-settings

sudo systemctl enable lightdm.service -f

sudo systemctl set-default graphical.target

After that came the bspwm installation

Offline

#9 2018-09-06 13:49:35

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,541
Website

Re: [SOLVED] Install Only XFCE4-panel

Th3Cl3ric wrote:

I take that commands from a tutorial.

What tutorial?

Please read the responses you have been given carefully.  If lightdm is not using your xinitrc, nothing about xinitrc is relevant.  If it is using your xinitrc, you have ignored the comments about disabling the wm check.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2018-09-06 13:52:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: [SOLVED] Install Only XFCE4-panel

I know, which session are you starting in lightdm? If you choose a bspwm session, you will want to add additional programs to start to the .bspwmrc, if you want LightDM to honor your .xinitrc see: https://wiki.archlinux.org/index.php/Di … _a_session

Offline

#11 2018-09-06 15:08:52

Th3Cl3ric
Member
Registered: 2018-09-06
Posts: 7

Re: [SOLVED] Install Only XFCE4-panel

Thanks for answer me.

I understand that xinitrc is totally ignored at the login, I just checked, I commeting all the lines on xinitrc and reboot, the bspwm starts as always.

So then I go to /usr/share/xsessions/ and modify the xfce.desktop adding this lines:

[Desktop Entry]

Version=1.0
Name=Xfce session
Comment=
Exec=xfce4-panel --auto-launch-at-startup --disable-wm-check
Icon=
Type=Application
DesktopNames=XFCE

And still doesn't work.

@V1del what you mean with: "which session are you starting in lightdm?" I only installed LightDM (for login, only root and me as users) and Bspwm and I want to keep that way, because if some else wants to use my laptop will see just a blank screen with a bar showing the date and status icons, and nothing like windows start button big_smile

Offline

#12 2018-09-06 15:15:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: [SOLVED] Install Only XFCE4-panel

Which of the /use/share/xsession files have you chosen to execute (somewhere in lightdm's GUI you will have selected bspwm or similar)? If it's the bspwm one you will want to add further programs to start somewhere that the bspwm session executes on startup, which from what I've read should be a ~/.config/bspwmrc : read https://wiki.archlinux.org/index.php/Bspwm

Which tutorial did you follow to set this up?

Last edited by V1del (2018-09-06 15:22:41)

Offline

#13 2018-09-06 15:16:39

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [SOLVED] Install Only XFCE4-panel

Th3Cl3ric wrote:

And still doesn't work.

What does logging in to lightdm with the modified Xfce session selected do?

Exec=xfce4-panel --auto-launch-at-startup --disable-wm-check

You want the session to consist of xfce4-panel and nothing else?

Offline

#14 2018-09-06 15:36:26

Th3Cl3ric
Member
Registered: 2018-09-06
Posts: 7

Re: [SOLVED] Install Only XFCE4-panel

Thanks for your patient

It works! adding "xfce4-panel &" to the bspwmrc file in /.config/bspwm/bspwmrc just over sxhkd &

It loads up, a lil laggy but it seems ok, now I have to know how to make all xfce4 options to work and what to install.
For example I can't close the user session, it shows up an alert window message: the name org.xfce.SessionManager was not provided by any .services files.
Can't get to the settings for GTK+LightDM option
The SSH and VNC servers of avahi can't connect, says the Daemon is not running

I read plenty of tutorials before trying, and everything copy paste to a notepad to follow the steps, so the source tutorial is loss in browser history. But there is no tutorial of how to do what I want (arch+bspwm+xfce4-panel+vala-appmenu) I only found lemonbar, polybar, other bars that not support the appmenu feature.

Last edited by Th3Cl3ric (2018-09-06 15:48:49)

Offline

#15 2018-09-06 15:45:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: [SOLVED] Install Only XFCE4-panel

Your first stop should always be the Arch Wiki if know what you want to do and just follow the respective Arch Wiki pages you would've landed at that conclusion without any custom tailored tutorial.

However any other issues that don't have anything to do anymore with starting the panel are better placed in their own threads should you need further assistance. If this is [SOLVED] please mark it as such by editing the title in your initial post: https://wiki.archlinux.org/index.php/Co … ow_to_post

Offline

#16 2018-09-06 15:49:40

Th3Cl3ric
Member
Registered: 2018-09-06
Posts: 7

Re: [SOLVED] Install Only XFCE4-panel

Thanks so much!

Offline

Board footer

Powered by FluxBB