~johanvandegriff/unix-shell-programming-revised-edition-programs

unix-shell-programming-revised-edition-programs/launcher_maker -rw-r--r-- 373 bytes
fc214385Johan Vandegriff added other old scripts, some newer ones too 1 year, 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
echo "Please enter the filename"
read filename
name=`basename "$filename"`
echo '#!/usr/bin/env xdg-open

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=true
Icon[en_US]=gnome-panel-launcher
Name[en_US]='"$name"'
Exec='"$filename"'
Name='"$name"'
Icon=gnome-panel-launcher' > "$HOME/Desktop/$name.desktop"
nano "$HOME/Desktop/$name.desktop"