You are not logged in.

#1 2022-02-10 17:24:32

LithoUser
Member
Registered: 2016-11-17
Posts: 173

[SOLVED] Firefox profile on RAM

Hello !

I'm trying to follow the wiki page to place Firefox's profile to RAM. The "script" part works fine, but I'm not sure about the "automation" part.

I'm trying to create the systemd service as indicated in the wiki, but there's something I don't understand: when exactly will this service be run by systemd? On startup? On login? Each time I open or close Firefox? I think the wiki page lacks information about that... well, I should be able to tell by reading the script, but my skills aren't good enough.

Thanx in advance for any help!

Last edited by LithoUser (2022-02-11 06:40:52)

Offline

#2 2022-02-10 18:21:19

cameo
Member
Registered: 2012-08-18
Posts: 123

Re: [SOLVED] Firefox profile on RAM

If you enabled the service, it starts at every boot, and syncs with the firefox profile on the disc on poweroff.

Offline

#3 2022-02-10 18:28:59

LithoUser
Member
Registered: 2016-11-17
Posts: 173

Re: [SOLVED] Firefox profile on RAM

Thanks for your answer! Could you tell me which line causes this behavior? Is it the

WantedBy=default.target

instruction?

Last question: would there be a way to sync each time Firefox opens and close?

Last edited by LithoUser (2022-02-10 18:30:00)

Offline

#4 2022-02-10 18:29:25

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

Re: [SOLVED] Firefox profile on RAM

The wiki lacks explicit information on this because this is standard service behaviour knowledge: https://wiki.archlinux.org/title/Systemd#Targets https://wiki.archlinux.org/title/System … unit_files

Offline

#5 2022-02-10 18:31:51

LithoUser
Member
Registered: 2016-11-17
Posts: 173

Re: [SOLVED] Firefox profile on RAM

Ah! Great! I wanted to learn more, but didn't know which page of the wiki I should read... Thanx a lot for those links!

So, would there be a way to launch the script each time Firefox opens or closes?

Offline

#6 2022-02-10 20:27:14

LithoUser
Member
Registered: 2016-11-17
Posts: 173

Re: [SOLVED] Firefox profile on RAM

Thinking a little bit more about it, syncing the profile each time Firefox opens or closes isn't necessary. It would be much more useful to launch the script when a user logs in or out. Now, reading the wiki, I understand it might be the default, so I'm confused: is a standard systemd service launched at boot and poweroff (like cameo said), or when a user logs in and out? Thanx for any help!

Last edited by LithoUser (2022-02-10 20:27:38)

Offline

#7 2022-02-10 20:38:26

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Firefox profile on RAM

You have created a user service, not a system service...
https://wiki.archlinux.org/title/Systemd/User


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#8 2022-02-11 06:40:37

LithoUser
Member
Registered: 2016-11-17
Posts: 173

Re: [SOLVED] Firefox profile on RAM

That's right. Thank you!

Offline

Board footer

Powered by FluxBB