Hi Everyone,
I am trying to make working directory at the launch time as dynamic. I want the working directory to show something like “/workflows//workflows” to customize for each user in my production environment. /workflows should be the default workspace.
- I have changed default workspace location in config.ini file which is osgi.instance.area.default=@user.home/workflows but it is of no use.
- I also added a line in knime.ini file under -vmargs which is also not working Dknime.workspace=/workflows/${user.name}/workflows
- I even tried to run an external script to get the working directory as personalised for users which is as below
script.sh
#!/bin/bash
username=$(whoami)
workspace=“/workflows/$username/workflows” # Customize the workspace directory structure here
mkdir -p “$workspace” # Create the user-specific directory if it doesn’t exist
cd “$workspace” # Change to the user-specific directory
/apps/Knime/knime_4.7.2/knime # Replace with the actual path to knime executable
So, I tried many things to get the customized working directories for my users but nothing seems to work. How much I edit these files I am getting the working directory as
/home/username/knime_workspace
Can anyone know how to achieve this?