Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.13 KB

File metadata and controls

58 lines (40 loc) · 1.13 KB

editdt

A command-line tool for editing Linux .desktop files in the user's home directory.

Features

  • Edit .desktop files in ~/.local/share/applications/
  • Automatically copy system .desktop files from /usr/share/applications/ when needed
  • Support for multiple editing modes
  • Shell completion for bash and zsh

Installation

./install.sh

The script will:

  • Install editdt to ~/.local/bin/
  • Set up shell completion for bash and zsh
  • Add ~/.local/bin to PATH if needed

Usage

editdt [OPTIONS] <app-name>

Options

  • -a - Edit both HOME and ROOT desktop files
  • -c - Copy ROOT desktop file to HOME and edit (fails if already exists in HOME)
  • -e - Edit existing HOME desktop file only (fails if not in HOME)
  • -n - Create new desktop file in HOME
  • -h - Show help message

Examples

# Copy system firefox.desktop to HOME and edit
editdt -c firefox

# Edit existing HOME desktop file
editdt -e firefox

# Create new desktop file
editdt -n myapp

Uninstallation

./uninstall.sh

Requirements

  • Text editor (vim or nano, or set $EDITOR environment variable)