Created attachment 158446 [details] Screenshot of a bug SUMMARY *** After installation of labplot2.9 from either Ubuntu Software or snap terminal package resulting installation of labplot is unable to do any writes always trying to use run/user/uid/doc folder as default and ignoring whatever directory you choose manually (be it in home directory or on mounted disk). Other snap apps work as expected saving and modifying files in any chosen directory (firefox, vscode). *** STEPS TO REPRODUCE 1. Install using Ubuntu software or in terminal using $sudo snap install labplot 2. Launch app, make any changes to created project, try to save OBSERVED RESULT Couldn't save the file '/run/user/1000/doc/f50b5fe/GaAs+In.lml'. EXPECTED RESULT Being able to save file in any chosen folder SOFTWARE/OS VERSIONS Linux: Ubuntu 20.04.6 LTS ADDITIONAL INFORMATION Version 2.7 that can be installed from ubuntu-focal-universe alongside 2.9 works fine saving and opening files as intended
(In reply to colfer2009 from comment #0) > Created attachment 158446 [details] > Screenshot of a bug > > SUMMARY > *** > After installation of labplot2.9 from either Ubuntu Software or snap > terminal package resulting installation of labplot is unable to do any > writes always trying to use run/user/uid/doc folder as default and ignoring > whatever directory you choose manually (be it in home directory or on > mounted disk). Other snap apps work as expected saving and modifying files > in any chosen directory (firefox, vscode). We released 2.10 recently. Does the problem still exist in the last release?
(In reply to Alexander Semke from comment #1) > (In reply to colfer2009 from comment #0) > > Created attachment 158446 [details] > > Screenshot of a bug > > > > SUMMARY > > *** > > After installation of labplot2.9 from either Ubuntu Software or snap > > terminal package resulting installation of labplot is unable to do any > > writes always trying to use run/user/uid/doc folder as default and ignoring > > whatever directory you choose manually (be it in home directory or on > > mounted disk). Other snap apps work as expected saving and modifying files > > in any chosen directory (firefox, vscode). > > We released 2.10 recently. Does the problem still exist in the last release? Hi, latest version available in snapstore at the moment is 2.9 dated 25th August 2022 https://snapcraft.io/labplot
Ping @scar
Labplot has not been upgraded to core22. On my to-do list today. Thanks for the report.
Please test the latest version in the snap store ( 2.10 )
Created attachment 158710 [details] Bug on 2.10
(In reply to Scarlett Moore from comment #5) > Please test the latest version in the snap store ( 2.10 ) Unfortunately the error is still there. I can send info about my system/logs if it can help. Tell me if you need something.
Ok, so save-as works, but when I use just save I get a seg fault. It has something to do with snaps have there own /tmp and does not use the host /tmp ( confinement ). So I have to figure this one out still.
Please test the latest upload - I believe I have it fixed. Thanks!
(In reply to Scarlett Moore from comment #9) > Please test the latest upload - I believe I have it fixed. Thanks! There was no update available when I checked Ubuntu Software, so I waited for it to be pushed but it didn't happen. So I just reinstalled the app from both available snap repositories (stable, candidate) and it didn't work. Waited a day, reinstalled and bug was still there. There were no changes in how program behaved.
Ok, please outline the exact steps you take. I was able to open an example, make a change, click save, a window popped up asking me where, I pointed to home, and it saved. Are you able to save-as? Sorry, I am really trying to resolve this.
1. I install LabPlot from Ubuntu software (latest/stable channel). Installation asks for password and then it's automatic. 2. I open app through Ubuntu apps tab then it loads with dummy project open. When I press save button with floppy disk icon it opens standard ubuntu explorer window with my home directory (usually when fresh installed, after few cycles it opens /run/user/1000/doc/f50b5fe/). When I try to save anything in it (or any other location) I enter name (for example, 'test'), press enter and it shows the error window (from "screenshot of a bug" picture). When I press save button again no window opens and same error (with same name of file I entered) pops up. 3. If I use after that "Save as" option in drop down menu, standard ubuntu save window shows again with home directory. I try to save file, but it errors. If I try Save as option few more times, instead of home directory it shows /run/user/1000/doc/f50b5fe/ folder. After this "Project - LabPlot" at top of the window changes to /run/user/1000/doc/f50b5fe/test.lml. 4. While I was testing the app, it hanged on me once. Wasn't able to close it or do anything inside the window, but collapse worked fine. Probably unrelated.
*** Bug 478507 has been marked as a duplicate of this bug. ***
Can you try with the latest release?
(In reply to Martin from comment #14) > Can you try with the latest release? My system have changed since creation of this ticket (I'm using kubuntu 20.04 now), so I won't be able to replicate situation in original bug report anymore. I tried Flatpak install of labplot 2.11.1 and it ran well, not exhibiting any problems with saving both in "Save" and "Save as" mode.