mate-desktop / caja

Caja, the file manager for the MATE desktop
https://mate-desktop.org/
Other
265 stars 143 forks source link

Context menu actions always have $PWD set to ~/ #1701

Open fulalas opened 1 year ago

fulalas commented 1 year ago

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.

Version used: Caja 1.27