I develop ruby code on a linux box. For all new files Geany creates, the file attributes are set to include the +x executable attribute. This is not desirable, so, I would like to know if there is any way to configure Geany to only set read/write attributes and exclude the executable attribute?
On 1 April 2012 16:38, worthspending worthspending@gmail.com wrote:
I develop ruby code on a linux box. For all new files Geany creates, the file attributes are set to include the +x executable attribute. This is not desirable, so, I would like to know if there is any way to configure Geany to only set read/write attributes and exclude the executable attribute?
Geany uses the unask it inherits so just set that before running geany.
Cheers Lex
Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
On Sun, 1 Apr 2012 01:38:15 -0500 worthspending worthspending@gmail.com wrote:
I develop ruby code on a linux box. For all new files Geany creates, the file attributes are set to include the +x executable attribute.
Let me briefly describe a related issue: if a file with the +x attribute is opened in Geany and "Save as" as chosen, the saved file will lack the +x attribute. Is this desired behaviour?
Greetings
Alex
On 4 April 2012 01:56, Alexander Eberspächer alex.eberspaecher@gmail.com wrote:
On Sun, 1 Apr 2012 01:38:15 -0500 worthspending worthspending@gmail.com wrote:
I develop ruby code on a linux box. For all new files Geany creates, the file attributes are set to include the +x executable attribute.
Let me briefly describe a related issue: if a file with the +x attribute is opened in Geany and "Save as" as chosen, the saved file will lack the +x attribute. Is this desired behaviour?
This occurs when the use_atomic_file_saving option is set. It is not "desired" but it is documented behaviour and is unavoidable. As I said before, set the umask before running Geany.
Cheers Lex
Greetings
Alex
Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
On 4 April 2012 09:30, Lex Trotman elextr@gmail.com wrote:
On 4 April 2012 01:56, Alexander Eberspächer alex.eberspaecher@gmail.com wrote:
On Sun, 1 Apr 2012 01:38:15 -0500 worthspending worthspending@gmail.com wrote:
I develop ruby code on a linux box. For all new files Geany creates, the file attributes are set to include the +x executable attribute.
Let me briefly describe a related issue: if a file with the +x attribute is opened in Geany and "Save as" as chosen, the saved file will lack the +x attribute. Is this desired behaviour?
Sorry initially misread your comment, you said "save as"
But the reason is the same as below, it creates a new file, which will get its protection from the current umask.
That *is* desired behaviour because it is how all Unix systems work, we should not be different. Users would be surprised if Geany behavior is different to all others and there is no guarantee that we can actually set any specific protections since the user may not have sufficient permission to do so due to the umask.
Cheers again Lex
This occurs when the use_atomic_file_saving option is set. It is not "desired" but it is documented behaviour and is unavoidable. As I said before, set the umask before running Geany.
Cheers Lex
Greetings
Alex
Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Ya know, I really don't even want to ask as I don't want to be a pest, but, I haven't found a good example of setting the umask prior to launching geany. I would like to set the umask and have it tied to geany only. I run a lot of unattended processes, so, the line of thinking is if I make some type of global change I could introduce a problem to another program.
I can confirm that the "save as" feature works as described in this thread. No +x attribute on the saved file.
Thanks
On Tue, Apr 3, 2012 at 7:39 PM, Lex Trotman elextr@gmail.com wrote:
On 4 April 2012 09:30, Lex Trotman elextr@gmail.com wrote:
On 4 April 2012 01:56, Alexander Eberspächer alex.eberspaecher@gmail.com wrote:
On Sun, 1 Apr 2012 01:38:15 -0500 worthspending worthspending@gmail.com wrote:
I develop ruby code on a linux box. For all new files Geany creates, the file attributes are set to include the +x executable attribute.
Let me briefly describe a related issue: if a file with the +x attribute is opened in Geany and "Save as" as chosen, the saved file will lack the +x attribute. Is this desired behaviour?
Sorry initially misread your comment, you said "save as"
But the reason is the same as below, it creates a new file, which will get its protection from the current umask.
That *is* desired behaviour because it is how all Unix systems work, we should not be different. Users would be surprised if Geany behavior is different to all others and there is no guarantee that we can actually set any specific protections since the user may not have sufficient permission to do so due to the umask.
Cheers again Lex
This occurs when the use_atomic_file_saving option is set. It is not "desired" but it is documented behaviour and is unavoidable. As I said before, set the umask before running Geany.
Cheers Lex
Greetings
Alex
Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
On 4 April 2012 18:52, worthspending worthspending@gmail.com wrote:
Ya know, I really don't even want to ask as I don't want to be a pest, but, I haven't found a good example of setting the umask prior to launching geany. I would like to set the umask and have it tied to geany only. I run a lot of unattended processes, so, the line of thinking is if I make some type of global change I could introduce a problem to another program.
I can confirm that the "save as" feature works as described in this thread. No +x attribute on the saved file.
Hi,
In relation to your question, just do:
umask 666; geany
should give you read/write only for new files.
But I am not sure how you have managed to arrange for new files to have +x as you said in your initial post, but ones created by save-as created without +x as you say now?
Cheers Lex
Thanks
On Tue, Apr 3, 2012 at 7:39 PM, Lex Trotman elextr@gmail.com wrote:
On 4 April 2012 09:30, Lex Trotman elextr@gmail.com wrote:
On 4 April 2012 01:56, Alexander Eberspächer alex.eberspaecher@gmail.com wrote:
On Sun, 1 Apr 2012 01:38:15 -0500 worthspending worthspending@gmail.com wrote:
I develop ruby code on a linux box. For all new files Geany creates, the file attributes are set to include the +x executable attribute.
Let me briefly describe a related issue: if a file with the +x attribute is opened in Geany and "Save as" as chosen, the saved file will lack the +x attribute. Is this desired behaviour?
Sorry initially misread your comment, you said "save as"
But the reason is the same as below, it creates a new file, which will get its protection from the current umask.
That *is* desired behaviour because it is how all Unix systems work, we should not be different. Users would be surprised if Geany behavior is different to all others and there is no guarantee that we can actually set any specific protections since the user may not have sufficient permission to do so due to the umask.
Cheers again Lex
This occurs when the use_atomic_file_saving option is set. It is not "desired" but it is documented behaviour and is unavoidable. As I said before, set the umask before running Geany.
Cheers Lex
Greetings
Alex
Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
On 4 April 2012 19:42, Lex Trotman elextr@gmail.com wrote:
On 4 April 2012 18:52, worthspending worthspending@gmail.com wrote:
Ya know, I really don't even want to ask as I don't want to be a pest, but, I haven't found a good example of setting the umask prior to launching geany. I would like to set the umask and have it tied to geany only. I run a lot of unattended processes, so, the line of thinking is if I make some type of global change I could introduce a problem to another program.
I can confirm that the "save as" feature works as described in this thread. No +x attribute on the saved file.
Hi,
In relation to your question, just do:
umask 666; geany
Ahhh, make that
umask 111; geany
because umask is the bits you *don't* want, allways got that wrong.
Cheers Lex
The question of how new files don't have +x using "save as" and do have +x might be answered with the following observation.
- Create a new file File->New, then, File->Save, then, check the attribute: No +x on the new file - Create a new file File->New, then, File->Save As, then, check the attribute: No +x on the new file
I'm using the Tree Browser plugin, so... - Create a new file by right mouse click on the directory in the tree browser and enter the name of the new file directly into the text field in the list. Hit enter to finish and create the file. Check the attribute and it has +x on the new file.
I wonder if this is worthy of filing an issue report for the tree browser plugin.
On Wed, Apr 4, 2012 at 4:49 AM, Lex Trotman elextr@gmail.com wrote:
On 4 April 2012 19:42, Lex Trotman elextr@gmail.com wrote:
On 4 April 2012 18:52, worthspending worthspending@gmail.com wrote:
Ya know, I really don't even want to ask as I don't want to be a pest,
but,
I haven't found a good example of setting the umask prior to launching geany. I would like to set the umask and have it tied to geany only.
I
run a lot of unattended processes, so, the line of thinking is if I make some type of global change I could introduce a problem to another
program.
I can confirm that the "save as" feature works as described in this
thread.
No +x attribute on the saved file.
Hi,
In relation to your question, just do:
umask 666; geany
Ahhh, make that
umask 111; geany
because umask is the bits you *don't* want, allways got that wrong.
Cheers Lex _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
On 5 April 2012 19:40, worthspending worthspending@gmail.com wrote:
The question of how new files don't have +x using "save as" and do have +x might be answered with the following observation.
- Create a new file File->New, then, File->Save, then, check the attribute:
No +x on the new file
- Create a new file File->New, then, File->Save As, then, check the
attribute: No +x on the new file
I'm using the Tree Browser plugin, so...
- Create a new file by right mouse click on the directory in the tree
browser and enter the name of the new file directly into the text field in the list. Hit enter to finish and create the file. Check the attribute and it has +x on the new file.
It would have been worthwhile to mention this.
I wonder if this is worthy of filing an issue report for the tree browser plugin.
Yes, on the correct place.
Cheers Lex
On Wed, Apr 4, 2012 at 4:49 AM, Lex Trotman elextr@gmail.com wrote:
On 4 April 2012 19:42, Lex Trotman elextr@gmail.com wrote:
On 4 April 2012 18:52, worthspending worthspending@gmail.com wrote:
Ya know, I really don't even want to ask as I don't want to be a pest, but, I haven't found a good example of setting the umask prior to launching geany. I would like to set the umask and have it tied to geany only. I run a lot of unattended processes, so, the line of thinking is if I make some type of global change I could introduce a problem to another program.
I can confirm that the "save as" feature works as described in this thread. No +x attribute on the saved file.
Hi,
In relation to your question, just do:
umask 666; geany
Ahhh, make that
umask 111; geany
because umask is the bits you *don't* want, allways got that wrong.
Cheers Lex
Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
I know. It is just one of those things. I didn't even think about it until I read "save as" didn't apply the +x attribute. Quite frankly, I simply forgot that the Tree Browser was a plugin.
Sorry.
On Thu, Apr 5, 2012 at 4:53 AM, Lex Trotman elextr@gmail.com wrote:
On 5 April 2012 19:40, worthspending worthspending@gmail.com wrote:
The question of how new files don't have +x using "save as" and do have
+x
might be answered with the following observation.
- Create a new file File->New, then, File->Save, then, check the
attribute:
No +x on the new file
- Create a new file File->New, then, File->Save As, then, check the
attribute: No +x on the new file
I'm using the Tree Browser plugin, so...
- Create a new file by right mouse click on the directory in the tree
browser and enter the name of the new file directly into the text field
in
the list. Hit enter to finish and create the file. Check the attribute
and
it has +x on the new file.
It would have been worthwhile to mention this.
I wonder if this is worthy of filing an issue report for the tree browser plugin.
Yes, on the correct place.
Cheers Lex
On Wed, Apr 4, 2012 at 4:49 AM, Lex Trotman elextr@gmail.com wrote:
On 4 April 2012 19:42, Lex Trotman elextr@gmail.com wrote:
On 4 April 2012 18:52, worthspending worthspending@gmail.com wrote:
Ya know, I really don't even want to ask as I don't want to be a
pest,
but, I haven't found a good example of setting the umask prior to
launching
geany. I would like to set the umask and have it tied to geany
only.
I run a lot of unattended processes, so, the line of thinking is if I make some type of global change I could introduce a problem to another program.
I can confirm that the "save as" feature works as described in this thread. No +x attribute on the saved file.
Hi,
In relation to your question, just do:
umask 666; geany
Ahhh, make that
umask 111; geany
because umask is the bits you *don't* want, allways got that wrong.
Cheers Lex
Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel