Desktop Entry Creator is a Python application that allows users to create .desktop entries for installed applications on Chrome OS. This application lets users search for application icons using SerpAPI, select an icon, and generate a .desktop entry for the application.
- Search for application icons using SerpAPI.
- Select and preview an icon for the application.
- Generate and save .desktop entries for installed applications.
- Python 3.x
requests
librarypillow
libraryserpapi
library- google-search-results library
tkinter
(comes pre-installed with Python)
-
Clone the repository:
git clone https://github.com/yourusername/desktop-entry-creator.git cd desktop-entry-creator
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required libraries:
pip install requests pillow serpapi google-search-results
-
Add your SerpAPI key to
config.py
:# config.py SERPAPI_API_KEY = "YOUR_SERPAPI_API_KEY"
-
Run the application:
python chromeOSapplicationadder.py
- Enter the application name, command to execute, and an optional comment.
- Click the "Search for Icon" button to search for application icons.
- Select an icon from the displayed results.
- Click the "Generate .desktop Entry" button to generate the entry.
- Click the "Save" button to save the .desktop entry.
You can create an alias to run this script easily from the terminal:
-
Open your
.bashrc
file:nano ~/.bashrc
-
Add the following alias (replace
/path/to/your/project
with the actual path):alias myscript='source /path/to/your/project/venv/bin/activate && python /path/to/your/project/chromeOSapplicationadder.py && deactivate'
-
Save and close the file, then reload
.bashrc
:source ~/.bashrc
-
Now you can run the script using:
myscript
This project is licensed under the MIT License.