Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keyboard entries into script
#9
I suspect that this comes from the virtual filesystem used by AppImage (equivalent problems with snap and flatpak) (hence your squashfs-rootn because AFAIK AppImage uses SquashFS).  The gimp object has a bunch of calls to determine directories. In the gimp console, try:
Code:
➤> [x for x in dir(gimp) if 'directory' in x]
['data_directory', 'directory', 'locale_directory', 'plug_in_directory', 'sysconf_directory', 'user_directory']

So
  • directory is the user Profile (~/.config/GIMP/2.10)
  • data_directory is the add-ons directory (brushes, etc... and also scripts) (/usr/share/gimp/2.0)
  • plug_in_directory is the plugins directory (/usr/lib/gimp/2.0)
  • sysconf_directory is some initial values for the user profiles (/etc/gimp/2.0/)
  • user_directory is a function that takes an integer, depending on integer you get:
    • 0: ~/Desktop
    • 1: ~/Documents
    • 2: ~/Downloads
    • 3: ~/Music
    • 4: ~/Pictures
    • 5: ~/Public
    • 6: ~/Templates
    • 7: ~/Videos
  • so for instance gimp.user_directory(4) is where you expect the user to keep images. These directories have equivalents across Windows, OSX, and the various Linux desktops.
Reply


Messages In This Thread
Keyboard entries into script - by david - 10-07-2021, 04:11 PM
RE: Keyboard entries into script - by Ofnuts - 10-07-2021, 10:35 PM
RE: Keyboard entries into script - by david - 10-08-2021, 09:28 AM
RE: Keyboard entries into script - by Ofnuts - 10-09-2021, 10:54 AM
RE: Keyboard entries into script - by david - 10-09-2021, 03:43 PM
RE: Keyboard entries into script - by Ofnuts - 10-09-2021, 04:26 PM
RE: Keyboard entries into script - by david - 10-10-2021, 08:43 AM
RE: Keyboard entries into script - by david - 10-10-2021, 06:15 PM
RE: Keyboard entries into script - by Ofnuts - 10-11-2021, 09:07 AM

Forum Jump: