RSS/Atom feed Twitter
Site is read-only, email is disabled

Python back-up files

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

4 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

Python back-up files Samuel 28 Sep 01:16
  Python back-up files Chris Mohler 28 Sep 02:21
   Python back-up files Joao S. O. Bueno 28 Sep 07:10
   Python back-up files gg@catking.net 28 Sep 09:53
Samuel
2008-09-28 01:16:43 UTC (about 16 years ago)

Python back-up files

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

Chris Mohler
2008-09-28 02:21:13 UTC (about 16 years ago)

Python back-up files

On Sat, Sep 27, 2008 at 6:16 PM, Samuel 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

Joao S. O. Bueno
2008-09-28 07:10:42 UTC (about 16 years ago)

Python back-up files

On Saturday 27 September 2008, Chris Mohler wrote:

On Sat, Sep 27, 2008 at 6:16 PM, Samuel 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

gg@catking.net
2008-09-28 09:53:09 UTC (about 16 years ago)

Python back-up files

On Sun, 28 Sep 2008 02:21:13 +0200, Chris Mohler wrote:

On Sat, Sep 27, 2008 at 6:16 PM, Samuel 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.