InThech wrote:
Il 06/08/22 17:37, Jonathan N. Little ha scritto:
desktop-file-install --dir=~/.local/share/applications
~/MyCustomizations/test.desktop
$ desktop-file-install --dir=~/.local/share/applications tor-translate.desktop
$ ls ~/.local/share/applications/tor-translate.desktop
ls: impossibile accedere a '/home/rino/.local/share/applications/tor-translate.desktop': File o directory non esistente
Sorry I think you have to specify either absolute path:
/home/rino/.local/share/applications
or:
relative to PWD but do not use '~/'
Okay just confirm it:
~/$ mkdir demo
~/$ cd demo
~/demo$ nano demo.desktop
~/demo$ cat demo.desktop
[Desktop Entry]
Name=Demo
Exec=zenity --info --text="Hello World!"
Type=Application
# Okay now I will validate it:
~/demo$ desktop-file-validate demo.desktop
# It returns nothing so all is well. You can add something like
BadParam=bogus to the file and desktop-file-validate will show you your
error.
~/demo$ pwd
/home/jonathan/demo
~/demo$ ls
'~' demo.desktop
# Just showing you where I am in this subdirectory with the demo.desktop
file, now let's try and install it using '~/':
~/demo$ desktop-file-install --dir=~/.local/share/applications demo.desktop
~/demo$ ls ~/.local/share/applications/demo.desktop
ls: cannot access
'/home/jonathan/.local/share/applications/demo.desktop': No such file or directory
# Confirms that this does not work, but if I use a relative path as so:
~/demo$ desktop-file-install --dir=../.local/share/applications demo.desktop
~/demo$ ls ~/.local/share/applications/demo.desktop /home/jonathan/.local/share/applications/demo.desktop
# There we go, the .desktop file is installed. Also I could of course
use the absolute path.
HTH
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)