In Thunar file properties dialog i can view and set if the file is executeable... but only if the file is not empty. If the file is empty i cant set the executeable bit but also i cant view if the file is executeable. I would like to be able to view and set regardless of the file content.
https://git.xfce.org/xfce/thunar/tree/thunar/thunar-permissions-chooser.c#n1027 The executable check box is only displayed for certain MIME types. Why should it be visible for an empty file?
I dont see why i should not be allow to see if a file is executable or not from inside Thunar based on it being empty or not. Then i would have to use other software like the terminal when the file is empty. Maybe i want to set the file executeable and fill the content of the file afterwards. I dont see why software should try and decide for me what order i will do the things in.
You could take any file and change its content afterwards (e.g. turn it into a shell script). The solution would be to remove the visibility restriction completely.
In a terminal i can: create a file set executeable write something in the file But i cant do this with the GUI the way Thunar is now. I would have to change the order: create a file write something in the file set executeable Then if i empty the file in mousepad and save it and maybe now i want to not have it executeable anymore. Then i have to use the terminal again.
No need to repeat that. I was proposing to make the check box visible regardless of content type, whether it is empty or not. We have to wait for a response from the Thunar maintainers.
For the sake of consistency, how other file managers behave in this scenario?
The check box is always accessible in Nautilus/Nemo/Caja.
imo ok to always have the checkbox visible, I dont see any (security) problem with that.
Created attachment 8664 possible patch
Works well for me & looks solid, thanks !
*** Bug 12388 has been marked as a duplicate of this bug. ***
Andre Miranda referenced this bugreport in commit 8c4cd0496858d91d1fc4e3b1be8d84dd62657982 Always show the executable checkbox (Bug #15605) https://git.xfce.org/xfce/thunar/commit?id=8c4cd0496858d91d1fc4e3b1be8d84dd62657982
Andre Miranda referenced this bugreport in commit dc7d18180cdaaca45cd49bc4ced8a26b2acaa706 Always show the executable checkbox (Bug #15605) https://git.xfce.org/xfce/thunar/commit?id=dc7d18180cdaaca45cd49bc4ced8a26b2acaa706