How to set PATH for Dolphin servicemenu

Konstantin Kharlamov hi-angel at yandex.ru
Thu May 11 19:52:52 BST 2023


On Thu, 2023-05-11 at 20:28 +0200, Zener wrote:
> Hi.
> 
> I use Dolphin filemanager on a gnome-session on wayland - Arch Linux.
> 
> I've set the correct PATH on .bashrc, in fact from terminal my exec 
> files work but not to from a .desktop file in servicemenu of Dolphin.
> 
> How can i add the correct PATH on Dolphin?
> 
> Regards.
> 

Right, because `.bashrc` is only read by bash. When you launch an app from a desktop file, there's no bash involved (unless of course the Exec= call inside .desktop file calls bash explicitly).

Use `/etc/profile` file instead, the $PATH is usually set there.


More information about the kde-devel mailing list