You are not logged in.
So i was trying to make wallpaper persist after reboot. I use (nitrogen) to set wallpaper. I searched around and found out i have to add this command to the file which executes at login:
nitrogen --restoreThe candidates were (~/.bash_profile and ~/.profile). Since i didn't had (~/.profile) i used (~/.bash_profile) but it didn't work, later i found out that (~/.bash_profile) is executed when you login through console. But since i login graphically (lightdm), it was not getting executed. So i created the (~/.profile) file and added the command there and it worked.
My question is, is this the right way to do it ? I am worried that this approach could have downsides in the future and if there is a better one please tell me. I searched about it but couldn't find a clear answer. I don't know if i should be posting this kind of question here, so forgive me. I am very new to linux and forums.
Last edited by beast41514 (2024-02-12 16:36:42)
Offline
https://wiki.archlinux.org/title/LightD … on_wrapper
In this case, you want ~/.xprofile, you don't want it running on a normal TTY login.
Online
I don't have a (bash) folder in my home directory's config like in this example (~/.config/zsh/.zshenv) provided in the link above. Also what's TTY ? I am bad at abbreviations.
Last edited by beast41514 (2024-01-13 15:24:22)
Offline
you don't want it running on a normal TTY login
~/.profile won't be read for a TTY login if the OP is using bash because Arch's bash package supplies /etc/skel/.bash_profile (which is a mistake IMO).
what's TTY ? I am bad at abbreviations
Ask a search engine, "tty linux" gives good results for me over at startpage.com. Just don't ask ChatGPT, it's full of shit ![]()
Jin, Jîyan, Azadî
Offline
In the link they are providing the path to the shell (in their case zsh) but in my home directory there is no shell folder (bash). What should i do ?
Last edited by beast41514 (2024-01-14 04:50:35)
Offline
There's no "shell folder" in anybodies $HOME, the example lists ~/.config and is irrelevant here.
The suggestion is to run "nitrogen --restore" in something that's [edit, you're using lightdm: most lilkely] sourced by your GUI session scripts (and only them) and that'd be ~/.xprofile - you can completely ignore the illustrative example in the wiki. It's "how", not "what".
Last edited by seth (2024-01-14 08:26:27)
Offline