Finally solved it by myself:
STEP1:
Create ~/.xinitrc and ~/.xprofile files as described here:
https://wiki.archlinux.org/title/Xprofile
and paste this code inside the ~/.xinitrc :
#!/bin/sh
# Make sure this is before the 'exec' command or it won't be sourced.
[ -f /etc/xprofile ] && . /etc/xprofile
[ -f ~/.xprofile ] && . ~/.xprofile
STEP2:
Paste this code inside the /.xprofile :
string=$(inxi -G | grep 'NVIDIA')
if [[ "$string" =~ .+NVIDIA.+ ]]; then
echo "True"
else
echo "False"
export VK_DRIVER_FILES=
fi
It checks if a Nvidia GPU is present in your device and sets the VK_DRIVER_FILES= environment variable accordingly.
This solves the issue with slow launch of chromium based apps, when running Endeavour OS on a device without Nvidia GPU.