Skip to content
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

Keep a clean home #214

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Selebrator
Copy link

Hi Sejsel, thank you for creating the log manager and for distributing the self-contained Linux version.

I have noticed that the ~/.net/ArcdpsLogManager directory is re-created every time I launch your tool. This bothers me a little bit, since I like to keep my home directory clean. I've found that changing IncludeAllContentForSelfExtract from true to false for the build leads to this directory not being created and the application still working just fine.

I have no idea why you chose to enable that option. I also don't know much about what this does, but my understanding is that this option makes sure that everything the application might need is included. Therefore I checked if disabling it removes anything important from the binary. I found that it only flips 1 bit, presumably the bit responsible for the extraction.

$ diff <(xxd GW2Scratch.ArcdpsLogManager.Gtk.true) <(xxd GW2Scratch.ArcdpsLogManager.Gtk.false)                                                                                                          ~/tmp/test
4670433c4670433
< 04743e00: 0000 0100 0000 0000 0000 40b7 a400 0000  ..........@.....
---
> 04743e00: 0000 0000 0000 0000 0000 40b7 a400 0000  ..........@.....

So my guess is that this change has no negative consequences.

Prevents creation of the ~/.net/ArcdpsLogManager directory
@Sejsel
Copy link
Member

Sejsel commented Mar 9, 2024

Oh, I definitely agree that it should not be polluting the home directory like that.

I am going to look a bit deeper into what exactly it does these days (I believe the behavior has changed slightly over time) and see if it can be safely disabled. The thing is, it should be tested if it works without .NET being installed, and possibly even without Gtk being installed (although for that I am not sure it even can work).

@Selebrator
Copy link
Author

I checked that it still works without any .NET stuff installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants