-
-
Notifications
You must be signed in to change notification settings - Fork 579
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Customize the report file location #291
Comments
Your request is actually meaningful in case of SSDs... |
It's OK, but there's all that empty space in the main view (I can't even make the window smaller than the size of the screenshot): You can place an input selection of the file location above the start button. If you struggle to show a file dialog for the different OS, just a string input could be good (maybe with a button to reset to default path). |
I will soon introduce an option to set a port filter in that space. |
It's not the best, but okay. Can I know why the file has to be updated constantly? Shouldn't it be better to save it once when the app is closed? Or when the report is opened (since I can't see the updates after I loaded it in the text editor)... |
The report is currently updated once per second, for two reasons:
|
Updating only when the report is opened or when the app is closed is the best solution and I think it won't even need to change the location (the need to change the location is to use the RAM). I don't know how it works on Rust, but GTK has a close event where you can perform some operations before the UI is shut down. I suppose there should be something similar on Rust to perform the saving to the disk and wait for its completion, then shut down the whole process. |
You may be right. |
Yesterday I've tried the CloseRequested Event but it triggers only when the app is closed through the 'x' button of the window system. |
It seems a limitation of the iced. I tested an app which I contribute written in GTK and It remains the command line option, but I don't think it's the best solution. Running from the command line only to avoid the app to write constantly on the disk is not very good. Whichever solution you come up, thanks for the app anyway, it's useful. |
Yeah... it's not the best solution, I'll try to figure something out. |
If it's a iced limitation, you could open an issue on their Github repo, asking for a workaround or extending the close event also to If you want, I can open it. |
Check iced-rs/iced#195 before. |
@GyulyVGC Did it. See above. |
I'm afraid this iced limitation on the closing event won't ever be solved. While I still think that constantly writing stats on the disk is a bad design choice, could you please add a command line option like suggested in the first reply? At least we have a workaround to write on the |
Yeah... I also think that waiting for iced is not the best thing to do here. I didn't include such a option in the new release because the next version will pretty much change everything about output report management: I'd like to introduce support for read/write of PCAP files and remove the current report (but it will take time). Do you need such a feature in the short term? |
No, I'm not in a hurry. But if you will release the Then you can release the new system when it will be ready in a new major release, maybe |
A version 1.2.3 is not planned, but what I can do is the following: I will share with you a modified .deb (is it the format you need, right?). For v1.3.0, I had in mind to create an advanced settings page to set the path of the new pcap format report. |
No need to do this. If a new version is not planned, just ignore it. |
I will take care of informing you and closing this issue once v1.3 is published. |
Many progresses have been made. In #420 I'm also adding support for process interrupts handling, so at this point the only missing graceful shutdown to handle is when |
Thanks @GyulyVGC. I'll wait the next stable release. |
Is there an existing issue for this?
Describe the solution you'd like
Please let the report file location to be modified by the user choosing a different path.
Is your feature request related to a problem?
The file is constantly updated and people with SSD may want to reduce disk writes. I'd like to change the location to
/tmp
on Linux (the RAM).The text was updated successfully, but these errors were encountered: