You are not logged in.
Pages: 1
i created a new .desktop file in ~/Desktop that has Exec= a script i wrote in Python. i can execute the script just fine as a command in a shell. but when i click on the icon for it, a message pops saying the file (naming the script to be executed) is not found. but it does exist both in the home directory and in the first directory in the PATH environment variable.
here are details i can see. the script is intended to launch Firefox in a specified work space with specific URLs it reads from a file. this .desktop icon is to run it in workspace 18 and profile "common". other icons do run different scripts correctly as expected.
here are those detail taken from a shell session:
lt1a/media/7 /home/media/Desktop 178> cat 18_firefox.desktop
[Desktop Entry]
Version=1.1
Type=Application
Name=FF18
Exec=launch_firefox 18 -p common
Icon=firefox
Terminal=false
StartupNotify=false
lt1a/media/7 /home/media/Desktop 179> echo "$PATH"
/home/media/cmd:/usr/host/bin:/usr/local/bin:/usr/bin:/usr/games:/bin
lt1a/media/7 /home/media/Desktop 180> dl /home/media/cmd/launch_firefox
-r-xr-xr-x 1 media media 5495 2024-10-18 15:38:50.706209511 -0400 /home/media/cmd/launch_firefox
lt1a/media/7 /home/media/Desktop 181> head -n2 /home/media/cmd/launch_firefox
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
lt1a/media/7 /home/media/Desktop 182>
edit
i copied the script into /usr/local/bin and now it runs OK. i made another script to dump the environment to a /tmp file and PATH include /home/media/cmd which has the script, but the exec search is not finding it there. the current directory is the home directory (which also has a copy of the script). something is doing an exec*() call wrong, somewhere. or maybe it is intended to use full paths. it does find the script in /usr/local/bin. this is strange.
Last edited by Skaperen (2024-10-19 02:15:24)
Offline
Pages: 1
[ Generated in 0.007 seconds, 8 queries executed - Memory usage: 516.95 KiB (Peak: 517.87 KiB) ]