pentaho-kettle icon indicating copy to clipboard operation
pentaho-kettle copied to clipboard

Create KETTLE_FILES_HOME as a default Open/Save/Import to location.

Open usbrandon opened this issue 6 years ago • 2 comments

Expected Behavior

On the desktop edition of PDI when I start spoon and then Open Files for the first time, it opens in the data-integration folder, which is also where 'samples' lives. That's okay. Better would be a way to hint at PDI exactly where to look for files starting out.

Given that Webspoon is a bit different, what I would like is to be able to set a new variable, KETTLE_FILES_HOME, which will take on a path name of my choosing. PDI should use that as the default place to receive uploads (import XML), as 'File Open' location when no file is opened. and as a default 'Save As' location if I have not saved ETL already.

Actual Behavior

Uploads go to file:///usr/local/tomcat/temp The Open File dialog seems to start in that directory as well. Using the UI, one would have to go up potentially 4 folders, then back down a number of folders to get to what they want.

usbrandon avatar Nov 21 '18 19:11 usbrandon

Setting KETTLE_FILES_HOME aside a bit, I'd like to correct the actual behavior. The Open File dialog starts in ~/.kettle/data. It remembers the last opened file: if the dialog started in /usr/local/tomcat/temp, you opened a file in that directory. Tell me if it behaves differently.

HiromuHota avatar Nov 26 '18 16:11 HiromuHota

You are correct. It opened by default on startup in /root/.kettle/data. Then I imported a file, which it did not prompt me for a destination of. After import, the dialog started defaulting to /usr/local/tomcat/temp.

So I think I'll create a different enhancement issue for imports.

usbrandon avatar Nov 26 '18 20:11 usbrandon