You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
356 B
17 lines
356 B
package main
|
|
|
|
import "fmt"
|
|
|
|
func generateDesktopFormat(name string, exec string, icon string) string {
|
|
desktopBaseFormat := `[Desktop Entry]
|
|
Version=1.0
|
|
Type=Application
|
|
Terminal=false
|
|
Name=%s
|
|
GenericName=%s
|
|
Exec=%s
|
|
Icon=%s
|
|
StartupNotify=true`
|
|
createdDesktopFormat := fmt.Sprintf(desktopBaseFormat, name, name, exec, icon)
|
|
return createdDesktopFormat
|
|
}
|