Skip to main content

Create .desktop shortcuts for any URL

Project description

Desktop Shortcut Maker

desktop-shortcut-maker is a Python library that helps you create .desktop shortcuts for URLs, making it easy to create shortcuts for websites or web applications on your desktop.

With this library, you can create a clickable shortcut for any URL and specify an optional icon to use for the shortcut. The shortcut is created in the standard location for application shortcuts on Linux: ~/.local/share/applications/.

Features

  • Create .desktop shortcuts for any URL.
  • Optionally specify an icon URL for the shortcut.
  • Automatically set the shortcut to open the URL in the default web browser.
  • Make the shortcut executable to be used from the application menu or desktop.

Installation

You can install desktop-shortcut-maker using pip:

pip install desktop-shortcut-maker

Usage

Once installed, you can create a shortcut by running the following command in your terminal:

desktop-shortcut-maker

Example: You will be prompted to enter the following:

Output

  • A .desktop file will be created in ~/.local/share/applications/ with the given name, URL, and icon.

This file will be executable and can be used to launch the URL in your web browser.

Example

Welcome to the Desktop Shortcut Maker!
Enter the name of the shortcut: ChatGPT Chrome
Enter the URL: https://chat.openai.com
Enter the icon URL (optional): https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg
Shortcut 'ChatGPT Chrome' created successfully!

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Feel free to fork the repository, submit issues, and make pull requests. Contributions are welcome!

Author Your Name - [himanshukrjha004@gmail.com]

Summary:

  • LICENSE: MIT License, allowing free usage and modification of the code.
  • README.md: Contains details on the package, installation instructions, usage, and an example.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

desktop_icon_maker-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file desktop_icon_maker-0.1.1.tar.gz.

File metadata

  • Download URL: desktop_icon_maker-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for desktop_icon_maker-0.1.1.tar.gz
Algorithm Hash digest
SHA256 70d77d8b982a491a50d2564c238b95187be507008aee29af19a04cf53be489a7
MD5 0c0cfcab2604ab45535babd266313721
BLAKE2b-256 4c7c02e8868bc6b34b115dc3db45d6f0385df4ec69a948b459b3e12fd2961472

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page