An open API service indexing awesome lists of open source software.

https://github.com/jcbritobr/james

James is a cli for create gnome desktop launchers. It can add all entries in .desktop files, as its multiple values.
https://github.com/jcbritobr/james

application desktop gnome golang launcher

Last synced: about 2 months ago
JSON representation

James is a cli for create gnome desktop launchers. It can add all entries in .desktop files, as its multiple values.

Awesome Lists containing this project

README

        

![James](images/james.png)
# James

James is a cli for create gnome desktop launchers. It can add all entries in .desktop files, as its multiple values.

* Build
```
$ go build -v -ldflags "-s -w"
```

* Test
```
$ go test dengine/* -v
=== RUN TestItWorks
--- PASS: TestItWorks (0.00s)
=== RUN TestBuildFileData
--- PASS: TestBuildFileData (0.00s)
=== RUN TestNewDesktopData
--- PASS: TestNewDesktopData (0.00s)
=== RUN TestFillDesktopDataBuffer
--- PASS: TestFillDesktopDataBuffer (0.00s)
PASS
ok command-line-arguments 0.006s
```

* Help
```
$ james -h
James is a CLI for create gnome desktop launchers

Usage:
James CLI [flags]

Flags:
-c, --comment string The --comment -c sets Comment entry on desktop file (default "default")
-e, --exec string The --exec -e sets Exec entry on desktop file (default "default")
-f, --filename string The --filename -f creates the .desktop (default "default")
-h, --help help for James
-i, --icon string The --icon -i sets Icon entry on desktop file (default "default")
-n, --name string The --name -n sets Name entry on desktop file (default "default")
-r, --terminal string The --terminal -r sets Terminal entry on desktop file (default "false")
-t, --type string The --type -t sets Type entry on desktop file (default "Application")
-v, --version version for James
```

* Create a desktop launcher
```
$ james -n SQLiteDbBrowser -e $(pwd)/dbbrowser.AppImage -c "SQLite DataBaseBrowser" -i $(pwd)/database-icon.png -f dbbrowser.desktop
```