tpecholt / imrad

ImRAD is a GUI builder for the ImGui library
GNU General Public License v3.0
872 stars 26 forks source link

Can't generate created layout #29

Closed colesnicov closed 4 months ago

colesnicov commented 4 months ago

Hello.

OS: Ubuntu CPU: AMD64

I can't save the file:

terminate called after throwing an instance of 'std::filesystem::__cxx11::filesystem_error'
  what():  filesystem error: cannot get file time: Directory or file does not exist [/home/denis/opt/imrad2/install/imrad-0.7/test.h]
Exit failed (SIGABRT) (core dumped [dump memory saved])

Procedure:

You can see the result above


Solution:

It only works for me like su:

sudo ./imrad
colesnicov commented 4 months ago

For those who do not want this application to allow superuser permissions, reset all file permissions first. Some file probably has the root role set and then asks for the superuser password and then can do mischief.. Be careful friends, I'm not that knowledgeable in this area, but I don't like this behavior!

https://github.com/tpecholt/imrad/issues/28

tpecholt commented 4 months ago

I can't reproduce this and ImRAD runs without sudo on my ubuntu.

However if for some reason entered path can't be written to there was a crash. I added an error message box instead.