I noticed that if a .desktop file (placed in /usr/share/applications/) with MimeType=inode/directory;x-directory/normal calls an external script, the $PWD value seeing by the script is always set to ~/ regardless of where I fire up the context menu action.
Example:
1- I'm in /home/user/Desktop
2- I right click on the subfolder test (using the .desktop mentioned above)
3- the script will print $PWD with value /home/user
Expected behavior:
In this case $PWD value should be /home/user/Desktop
At least that's how KDE, LXDE, LXQt and Xfce work.
I noticed that if a .desktop file (placed in
/usr/share/applications/
) withMimeType=inode/directory;x-directory/normal
calls an external script, the$PWD
value seeing by the script is always set to~/
regardless of where I fire up the context menu action.Example: 1- I'm in
/home/user/Desktop
2- I right click on the subfoldertest
(using the .desktop mentioned above) 3- the script will print$PWD
with value/home/user
Expected behavior: In this case
$PWD
value should be/home/user/Desktop
At least that's how KDE, LXDE, LXQt and Xfce work.Version used: Caja 1.27