πŸ“¦ jgardona / apps

Manage your local application GNOME folder. You can list, count, create and remove desktop launcher files.

β˜… 0 stars β‘‚ 0 forks πŸ‘ 0 watching βš–οΈ Apache License 2.0
clignome-desktoplauncherrust-lang
πŸ“₯ Clone https://github.com/jgardona/apps.git
HTTPS git clone https://github.com/jgardona/apps.git
SSH git clone git@github.com:jgardona/apps.git
CLI gh repo clone jgardona/apps
JΓΊlio CΓ©sar de Brito Gardona JΓΊlio CΓ©sar de Brito Gardona Merge pull request #5 from jgardona/fix/remove_unecessary_doc dc5888c 2 years ago πŸ“ History
πŸ“‚ master View all commits β†’
πŸ“ src
πŸ“ templates
πŸ“ tests
πŸ“„ .gitignore
πŸ“„ Cargo.toml
πŸ“„ LICENSE
πŸ“„ README.md
πŸ“„ test.sh
πŸ“„ README.md

Apps

Manage your local application folder. You can list, count, create and remove desktop launcher files.

Install

cargo install apps

Usage

$ apps -h
Helps you to create application launchers in gnome based desktops

Usage: apps <COMMAND>

Commands:
  read    Reads data from application's folder
  create  Creates a new application launcher
  remove  Removes an application launcher from folder
  help    Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

List

$ apps read --list
+--------------------+
| name               |
+--------------------+
| texstudio.desktop  |
+--------------------+
| krita.desktop      |
+--------------------+
| inkscape.desktop   |
+--------------------+

Create

$ apps create "example" "example.icon" "executable" "example comment"

$ apps read -l
+-------------------+
| name              |
+-------------------+
| inkscape.desktop  |
+-------------------+
| krita.desktop     |
+-------------------+
| texstudio.desktop |
+-------------------+
| example.desktop   |
+-------------------+

Remove

$ apps remove example
Application removed

$ apps read -l
+-------------------+
| name              |
+-------------------+
| inkscape.desktop  |
+-------------------+
| krita.desktop     |
+-------------------+
| texstudio.desktop |
+-------------------+

Count

$ apps read --count
Number of local applications: 5

Tests

The tests cant run on multithread environment, because the concurrent file access will break the process, then use the test.sh script in folder.