Git Product home page Git Product logo

Comments (2)

Taiko2k avatar Taiko2k commented on July 18, 2024 1

First you decide on and set your application ID as mentioned in my tutorial, e.g. com.github.me.myapp.

Then your icon file(s) will go in the hicolor theme (hicolor is the base default theme that all other themes inherit) once you package your app, e.g:

/usr/share/icons/hicolor/128x128/apps/com.github.me.myapp.png for a raster image for example, and/or
/usr/share/icons/hicolor/scalable/apps/com.github.me.myapp.svg for vector (preferred).

(Or locally in ~/.local/share/icons/hicolor/...)

Typically you would store that hicolor directory structure in your project directory as data/icons/hicolor/.... When packaging you copy it to the appropriate location on the system.

Once you make a .desktop file, in it set the icon field to your app id: Icon=com.github.me.myapp. The icon will work once you launch your app using the .desktop file.


FAQ: OK but how do I programmatically set the icon of my window?

A: My understanding is that in modern desktop Linux the idea is you don't. Wayland provides no mechanism for a client program to set an icon. Window icons are purely handled by your WM/DE using the icon specified in the .desktop file where the name of the desktop file matches your app ID.

from gtk4pythontutorial.

kasinadhsarma avatar kasinadhsarma commented on July 18, 2024

https://github.com/Exploit0xfffff/PenetrationApp can you fix these both errors or any suggestions you give to me in install.sh this command is only running background terminal Exec=gnome-terminal --working-directory=$CURRENT_DIR -e 'python3 $MAIN_PY_PATH'

from gtk4pythontutorial.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.