Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-10-15 11:16:47

manujchandra
Member
Registered: 2022-10-15
Posts: 4

[SOLVED] Save session outside of cache

Hi,

When I save a session from "Sessions and Startup" it gets saved in .cache

When I delete the cache folder, the session is also gone, and I have to recreate and re-save it.

Please let me know if there is a way to save the session in a more permanent location. Thanks.

Last edited by manujchandra (2022-10-29 10:02:27)

Offline

#2 2022-10-15 14:54:19

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [SOLVED] Save session outside of cache

Hello and welcome.

~/.cache is part of the freedesktop base directory spec. Xfce puts its session data into XDG_CACHE_HOME. You can define another $XDG_CACHE_HOME, but all apps will then use that location instead.

Why are you deleting the .cache directory?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2022-10-16 05:10:51

manujchandra
Member
Registered: 2022-10-15
Posts: 4

Re: [SOLVED] Save session outside of cache

Hi ToZ,

Hope you are well. I am trying to create a distro spin that uses XFCE. I will be using QTile as the tiling window manager. QTile once setup needs a session to be saved. If this session gets deleted, QTile no longer loads, and it reverts to xfce desktop.

https://www.youtube.com/watch?v=zdESlgVl0IU

If the user accidentally deletes the cache, or uses a cleaner that deletes it, or manually deletes it to reclaim space, the OS experience breaks.

I want to remove this dependency so Qtile always loads correctly even if cache is deleted.

Last edited by manujchandra (2022-10-16 05:12:04)

Offline

#4 2022-10-16 10:08:00

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [SOLVED] Save session outside of cache

manujchandra wrote:

I want to remove this dependency so Qtile always loads correctly even if cache is deleted.

Have a read of this wiki document for an example of storing the new window manager entry in xfconf to avoid the sessions issue.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2022-10-29 10:01:32

manujchandra
Member
Registered: 2022-10-15
Posts: 4

Re: [SOLVED] Save session outside of cache

I was able to achieve what I wanted by editing xfce4-session.xml and removing 3 entries for desktop, window manager and panel. Thanks.

Last edited by manujchandra (2022-10-29 10:01:44)

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.013 seconds, 9 queries executed - Memory usage: 534.96 KiB (Peak: 535.8 KiB) ]