Project

General

Profile

Feature #9906

Set set/get folder/files in the preferences with LUA

Added by Tobias Jakobs over 5 years ago. Updated about 5 years ago.

Status:
Fixed
Priority:
Low
Category:
Lua
Target version:
-
Start date:
04/14/2014
Due date:
% Done:

100%

Estimated time:
Affected Version:
git development version
System:
all
bitness:
64-bit
hardware architecture:
amd64/x86

Description

At the moment I can only define preferences of the type string. It would be nice to have special type for folders/files with an folder/file selector in the preferences.

I have written a LUA script (Issue #8930) to export a video, with the preference to set the export folder. At the moment the user can enter every thing in the string field, which could lead to problems.

History

#1 Updated by Rudolf Martin about 5 years ago

+1

#2 Updated by Tobias Ellinghaus about 5 years ago

  • bitness set to 64-bit
  • System set to all
  • Affected Version set to git development version

That could probably be done by placing a GtkFileChooserButton [0] into the prefs (generated by Lua).

[0] https://developer.gnome.org/gtk2/stable/GtkFileChooserButton.html

#3 Updated by Jérémy Rosen about 5 years ago

yes, I had a look at that earlier... the complicated part is having a way for the lua-coder to specify what type of file chooser he wants (file, directory, file-filter, only existing or allow creation of new etc...)

there is really nothing complicated here, but quite a bit of work to be done... it will all be saved as a string in the backend anyway

#4 Updated by Jérémy Rosen about 5 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Fixed

Also available in: Atom PDF

Go to top