Skip to main content

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.

Release files for desktop-icon-maker 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for desktop-icon-maker 0.1.1
File Size Uploaded
desktop_icon_maker-0.1.1.tar.gz 3.8 kB Details

Release files / desktop_icon_maker-0.1.1.tar.gz

Download URL desktop_icon_maker-0.1.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
70d77d8b982a491a50d2564c238b95187be507008aee29af19a04cf53be489a7
BLAKE2b-256 checksum
How to use checksums
4c7c02e8868bc6b34b115dc3db45d6f0385df4ec69a948b459b3e12fd2961472
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page