-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
[Sandbox] Handling of done.txt file #564
Comments
@TriggerDingus The title of this bug reports implies, sleek did prompt for the storage location of the done file in the past. That has never been the case. Prior to 2.x sleek simply archived the done file into the same location as the todo.txt file. Let me try to explain what is happening here: Prior to the rewrite sleek was simply accessing large parts of the file system. Like that sleek could just add However, as for the done file sleek simply chooses the same location of the todo.txt file and just replaces the todo.txt with done.txt. Both is now located in the sandbox. But the todo.txt file is connected, with that alias, with the original file. The done file of course is not. It just lives in the sandbox. I have to admit, that the current configuration of the Flatpak gives good reason to ask these questions and as soon as I find the time, I will look into how we can improve the user experience here. As for a quick workaround: To change the location of the done.txt file, you can right click on the file tab, use the file chooser and select the desired done.txt file. Let me know if this already solves the issue at hand. |
Thanks for the thoughtful response. To be honest, it was a year or two ago that I did my archive in the older versions so I didn't recall how it found the right folder, so it makes sense it put it in the same location as my ToDo.txt file. |
With the Maybe another thing, that needs to be improved from a UX perspective. |
Worked. Got my archive set to the existing archive filename/location. |
Out of curiosity; If you do the right click on the tab and then hover over the Change path to done file button, does the tool tip, which then opens, tell you the absolute path to the file, or the path to the sandbox alias? And does archiving then move the todos to the actual done.txt file as expected? |
You're welcome. I morphed this bug report into an enhancement issue. Aim is to find a proper way to get the done.txt file part of the sandboxed environments. This goes at least for Flatpak and Mac App Store apps. I was thinking of not defining a default path to the done file, but on first archiving, to let the user choose the location of the done.txt file. Like that it would be properly handled in a sandboxed environment. |
Just upgraded to v2.0.2 from 1.x and got bitten by this. Archived TODOs ended up in a generic
This sounds like a great idea, IMO! |
@andrei-a-papou @TriggerDingus this has now been implemented and is available for testing via Flathub. Install it with: The behavior is now:
Since both files (todo.txt and done.txt) have been added to the app with the file chooser, the Flatpak sandbox now knows these files and will have access to them. There is one aesthetic drawback. Although you will be working in the desired files, sleek will present you with the sandbox link of the file, which is some kind of alias. So if archiving was successful, sleek will show a cryptic path to which has been archived. Can you please play around with this feature and let me know if it works on your side as well? |
@ransome1 I do not use Flatpak so can't test it, but I just played with the enhanced archiving feature using the latest AppImage and here are some thoughts:
|
Yep, makes sense and should be possible to implement.
I agree, if the file is empty we should hide the button.
That might actually be a little bug, I'll look into it.
Technically this is correct, but of course this doesn't make a lot of sense. We have some potential here to improve the UX. Thanks for the feedback. |
@ransome1 great, looking forward to a new release candidate, I'll be happy to help with testing |
I'm hoping I'll have some time this weekend to build a test environment in a VM to try it out. |
Just tried installing the flatpak but received the following error: error: Can't load uri https://dl.flathub.org/build-repo/66829/com.github.ransome1.sleek.flatpakref: Server returned status 404 I may have missed my opportunity to test, so my apologies for that! |
sorry I only now read your post. I rebuilt it and you should be able to install it with: |
Looks like it works. It also successfully displays the ToDo.txt file tab and is no longer hidden by the Search bar. |
@andrei-a-papou I think all your feedback should have been implemented in the latest pre-release: https://github.com/ransome1/sleek/releases/tag/v2.0.3-rc.5 Feel free to give it some testing, before I finally release all the changes with 2.0.3. |
@ransome1 Things seem to work fine now, thank you! I'll let you know if I notice anything in the future |
App Version: 2.0.1
Platform: Linux
Installation Method: Flathub
Bug Description:
Prior to the rewrite, my archive for both my Active and Done tasks was (and still is) located at /media/bob/TheDataHoard/ToDo.txt/todo_done.txt.
Upon installing version 2.0.1 and performing "ToDos > Archive completed todos", the app provided the following dialog box:
Assuming all is well, I clicked on "Archive". Problem is, I found it didn't archive to my chosen location. Assuming I needed to update a setting somewhere in the new version, I searched the Settings and found nowhere to indicate my Archive file storage location. The application apparently doesn't assume the same location as the currently-open ToDo list and assumes it gets stored in my flatpak app directory.
Here is a global search I performed where you'll find my old chosen archive along with the file created by the new version stored in my flatpak app directory:
The text was updated successfully, but these errors were encountered: