Comments (2)
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.
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)
- A couple of minor points HOT 1
- Please add a Gtk.MessageDialog HOT 8
- [Documentation / Example] Could a specific example for events be added? HOT 1
- Extending the 'Adding a button into the header bar' section HOT 1
- Serious Warning
- Wrong method used in newest css-addition? HOT 1
- indicate some in python HOT 3
- add GridView example? HOT 2
- Non-functioning code in the "Open with" and single instancing section. HOT 1
- Extra Tip: Radio Buttons example is wrong/obsolete HOT 1
- Please add code for "Extra Tip: Radio Buttons" into the corresponding source file
- Adw.AboutWindow codeblock explaination HOT 6
- Click in Entry HOT 1
- UI from XML HOT 1
- request: ShortcutWindow
- Adding an application icon HOT 1
- [Documentation] How to install python-gtk4? HOT 1
- Add section for Gtk.Video
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtk4pythontutorial.