Xfce Forum

Sub domains
 

You are not logged in.

#1 2025-01-12 17:39:57

carloratm
Member
Registered: 2023-12-11
Posts: 19
LinuxChrome 122.0

Set the session with xfconf-query, is it possible?

Hi all,

I changed the config file xfce4-session this way:
https://raw.githubusercontent.com/carlo … ession.xml
(In the session named "Default" I don't run xfwm4 and I run awesome instead)

Is there a command to let Xfce use that session at the next boot?

Cheers!

Offline

#2 2025-01-12 20:01:31

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,678
LinuxFirefox 134.0

Re: Set the session with xfconf-query, is it possible?

Replace the existing xfce4-session.xml file with this one before you log in.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2025-01-13 10:07:56

carloratm
Member
Registered: 2023-12-11
Posts: 19
LinuxChrome 118.0

Re: Set the session with xfconf-query, is it possible?

ToZ wrote:

Replace the existing xfce4-session.xml file with this one before you log in.

You mean

/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml

?

Last edited by carloratm (2025-01-13 10:08:22)

Offline

#4 2025-01-13 12:16:53

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,678
LinuxFirefox 134.0

Re: Set the session with xfconf-query, is it possible?

No, the current user-specific copy in ~/.config/xfce4/xfconf/xfce-perchannel-xml.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2025-01-13 13:32:21

carloratm
Member
Registered: 2023-12-11
Posts: 19
LinuxChrome 118.0

Re: Set the session with xfconf-query, is it possible?

ToZ wrote:

No, the current user-specific copy in ~/.config/xfce4/xfconf/xfce-perchannel-xml.

I put the session config file in the user ...xfce-perchannel-xml/, removed the ~/.cache/xfce4 folder and rebooted.

Still xfwm4 starts instead of awesome.

Offline

#6 2025-01-13 17:14:33

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,678
LinuxFirefox 134.0

Re: Set the session with xfconf-query, is it possible?

So it's something else. You had initially asked about different sessions, but it appears that you are looking for a way to start awesome instead of xfwm4. Is this correct?

If you're looking for a way to switch between xfwm4 and awesome, then you kill one process and start the other manually.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2025-01-13 17:32:16

carloratm
Member
Registered: 2023-12-11
Posts: 19
LinuxChrome 122.0

Re: Set the session with xfconf-query, is it possible?

Sorry for not being clear.

What I would like to achieve is just use awesome instead of xfwm4. No need to be able to switch wm at runtime.

The only requirement I have is to be able to set awesome without having to click on the UI, I want to set it using a file or an xfconf command.

Thank you

Offline

#8 2025-01-13 18:58:10

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,678
LinuxFirefox 133.0

Re: Set the session with xfconf-query, is it possible?

Does this help?


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#9 2025-01-13 19:07:30

carloratm
Member
Registered: 2023-12-11
Posts: 19
LinuxChrome 122.0

Re: Set the session with xfconf-query, is it possible?

ToZ wrote:

Does this help?

The second answer is what I tried (changing xfwm4 to awesome in /etc/xdg/...xfce4-session.xml) without success.

I'll make other tests tomorrow.

PS: The reason I would like to avoid clicking the UI is because I manage xfce with ansible, and I need to replicate the exact same set up on 2 different machines.

Offline

#10 2025-01-13 20:43:24

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,678
LinuxFirefox 134.0

Re: Set the session with xfconf-query, is it possible?

The second answer will only work for new user logins. Try the first answer.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.015 seconds, 7 queries executed - Memory usage: 563.98 KiB (Peak: 580.82 KiB) ]