You are not logged in.

#1 2022-07-10 22:43:54

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

path not found for application's desktop entry

I have created a .desktop entry for an application I downloaded called bibisco.

First, I moved the application's files to /opt/bibisco

ls /opt/bibisco


bibisco                  icudtl.dat            LICENSE                 swiftshader
bibisco.png              libEGL.so             LICENSES.chromium.html  v8_context_snapshot.bin
chrome_100_percent.pak   libffmpeg.so          locales                 version
chrome_200_percent.pak   libGLESv2.so          resources               vk_swiftshader_icd.json
chrome_crashpad_handler  libvk_swiftshader.so  resources.pak
chrome-sandbox           libvulkan.so.1        snapshot_blob.bin

executing ./bisco from that directory opens the application.

I created a desktop entry at /usr/share/applications/bibisco.desktop

[Desktop Entry]

Type=Application

Version=1.0

Name=Bibisco

Path=/opt/bibisco

Exec=bibisco

Icon=bibisco

Terminal=false

Categories=Office

X-Desktop-File-install_version=0.26

I validated and installed the .desktop file as outlined here https://wiki.archlinux.org/title/desktop_entries

The application appears in rofi, but when I execute I get the error

Failed to execute child process (no such file or directory)

Offline

#2 2022-07-11 07:14:10

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,242

Re: path not found for application's desktop entry

The application appears in rofi, but when I execute I get the error

I assume rofi doesn't change the $PWD or it changes PWD but doesn't try/call a local executable but sticks to $PATH
Make it "Exec=/opt/bibisco/bibisco" - if rofi changes the PWD, that's gonna be equivalent.

Offline

Board footer

Powered by FluxBB