-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correctly source paths #806
Conversation
@Baerbeisser could you test pls? |
Ah, sorry, yes. Mh, i get
still new pikaur.conf with wrong cachepath + datapath generated. (tf, Github doesn't support conf/cfg files??) |
are you using |
Oops. 😳 Works now. But still same with pikaur.conf To clarify: my problem is that initial pikaur.conf gets created with wrong cachepath + datapath values (and then used) even though XDG variables are set. I think i made that too less clear initiallly. |
Does this still happen if you delete the entries from your config? They should only be created if they don't exist yet. They will be overridden if you have the variables set, but not overwritten. |
No, they only get recreated exactly the same. I know that those are intended by XDG to be used if no variable is set, so i guess that check fails?
works for you? |
Is pikaur using the variables at all? |
Looks like it does get the variables but then
|
Thanks, and if you use |
Now it did. The debug-xdg one, that is.
|
The branches only differ by the amount of output they produce. This is now working as intended by finding the default paths if and only if they do not exist. |
My bad, i didn't update the changes of this branch. Though now i only get
while the xdg branch works. pikaur.conf exists, with cachepath and datapath removed. yay happily updates away, so i don't thinks there's anything borked. |
I don't know that message, but I don't think it's from pikaur.
If your config is not being updated, perhaps pikaur is using a different config? How are you changing branches? I wonder if it's a failed merge. |
It's literally
Sorry for the misunderstanding, what i meant is, the error isn't because of a missing pikaur.conf. And i removed those two lines, so pikaur should update them again. They do get re-created while pikaur throws the error. But again
I just use the "Download as zip" function, delete the content of the folder and extract there. |
That triggers it for you, but the error is not in pikaur.
If you follow that same procedure with the debug-xdg branch, what is the result? |
I use XFCE and i do have custom login scripts but But i do find
You searched borked instead of borking? 😉 debug-xdg replaces cachepath and datapath correctly with XDG_* vars content. edit: i updated both again and debug-xdg really does work while main prints that error and uses default ~/.cache and ~/.local/share. |
🤦 Well, that explains it! It came in on 0b94fd0, and I haven't pulled that one yet. It won't be on main until this gets merged. You can test with this branch: |
Yep, this branch works as it should. datapath and cachepath are correct. About the error, this part in main.py seems new, will that check for base-devel remain? |
I am not certain, as I did not author those changes. If you will kindly open a new issue we can get that resolved. |
any update on this one? i'm planning to make 1.22 release soon, and i need this feature either fixed or unmerged |
It has been fixed and is ready to merge |
thanks a lot! |
Though the check for base-devel with warning about borking your computer still remains if you used the workarounds to install doas. |
but it's not related to this issue, right? |
My bad, sorry. |
@Baerbeisser no worries, feel free to elaborate further on that in that ticket which you created 👍 |
Prefer environment variables over config; sync config based on first-run environment (Fixes #801).