Re: [Gimp-developer] Python back-up files

2008-09-28 Thread gg
On Sun, 28 Sep 2008 02:21:13 +0200, Chris Mohler [EMAIL PROTECTED] wrote:

 On Sat, Sep 27, 2008 at 6:16 PM, Samuel [EMAIL PROTECTED] wrote:
 Another question from me:

 When I write a plugin, my text editor (kwrite or kate) creates a backup
 file named plugin.py~. When I start now the plugin in GIMP, it is
 executing the backup instead the original.

 Hi,

 I think you should file a bug against kwrite and kate - while it's a
 good idea to create backup files, I see no reason why they should have
 the execute bit turned on (even if the file you are editing is
 executable).

 Chris

I can see arguements for and against but that is irrelevant on this list.

What would appear to be gimp related here is that it is executing a file  
ending in .py~ , maybe file name is irrelevant.

What is the mechanism for gimp ? Does it execute everything in the plugin  
directory? (I would see this as valid approach on cross platform software  
since the idea of dots and file extensions has no meaing on linux/unix  
and should remain so).

If that is the case, the correct solution is not to dump your backup files  
in the gimp pluging dir. The best solution probably being to disable dumb  
microsoft style automatic backups and backup your work as needed. Both the  
editors mentioned allow you to disactivate auto backups.

Auto backups are overwritten every time you save so in reality they are  
virtually useless. There's much more chance over recovering from an error  
with cntl-z

The sooner linux world stops trying to ape windows the better.

regards.
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Gimp-developer] Python back-up files

2008-09-27 Thread Samuel
Another question from me:

When I write a plugin, my text editor (kwrite or kate) creates a backup
file named plugin.py~. When I start now the plugin in GIMP, it is
executing the backup instead the original.

As a workaround I execute
chmod -x *~
but sometimes I forget this and this is annoying.


Maybe it's possible to integrate sth. like this in GIMP before plugins
are executed.


Thx
Samuel

___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Python back-up files

2008-09-27 Thread Chris Mohler
On Sat, Sep 27, 2008 at 6:16 PM, Samuel [EMAIL PROTECTED] wrote:
 Another question from me:

 When I write a plugin, my text editor (kwrite or kate) creates a backup
 file named plugin.py~. When I start now the plugin in GIMP, it is
 executing the backup instead the original.

Hi,

I think you should file a bug against kwrite and kate - while it's a
good idea to create backup files, I see no reason why they should have
the execute bit turned on (even if the file you are editing is
executable).

Chris
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Python back-up files

2008-09-27 Thread Joao S. O. Bueno
On Saturday 27 September 2008, Chris Mohler wrote:
 On Sat, Sep 27, 2008 at 6:16 PM, Samuel [EMAIL PROTECTED] wrote:
  Another question from me:
 
  When I write a plugin, my text editor (kwrite or kate) creates a backup
  file named plugin.py~. When I start now the plugin in GIMP, it is
  executing the backup instead the original.

 Hi,

 I think you should file a bug against kwrite and kate - while it's a
 good idea to create backup files, I see no reason why they should have
 the execute bit turned on (even if the file you are editing is
 executable).
Yes.
I have filed such a bug some years ago.  
Never fixed that I remember.
Onthe same day I flied the same bug against  gedit - they did implement the 
fix some 18 months later or so. 

But as for kde editors, the only way to go is to delete the backup files by 
hand. :-(

js
--

 Chris
 ___
 Gimp-developer mailing list
 Gimp-developer@lists.XCF.Berkeley.EDU
 https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer