Skip to content

editdt provides a command-line tool for easily copying and editing .desktop files in ~/.local/share/applications on linux.

Notifications You must be signed in to change notification settings

ausungju/editdt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

editdt provides a command-line tool for easily copying and editing .desktop files in ~/.local/share/applications on linux.

Topics

Resources

Stars

Watchers

Forks

Languages