-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding icon for the editor to Linux DE launchers #6405
Comments
No idea how to fix this, anyone familiar with Ubuntu? |
@CHRISANTHOS you need to install Godot if you want it to integrate with your system. The easiest way to do that will probably be by installing godot via the Ubuntu Software Center, or via Otherwise, you should at the very least create a Godot.desktop file and place that in /usr/share/applications. In that .desktop file, point to the Godot binary as what should be launched (it's common to place extra binaries like this in /opt), and point to a location on your harddrive where the Godot icon can be located. Ubuntu will then be able to use the Godot icon for the launcher (unity or otherwise) and the .desktop file as the basis for a launcher. |
I don't think it'll be available in official Debian/Ubuntu repositories anytime soon. Maybe someone could maintain a PPA for easy installation on Ubuntu, though. That said, for proper desktop integration, you will need to write a Create a [Desktop Entry]
Type=Application
Name=Godot Engine
GenericName=Game engine
Comment=2D and 3D game engine
Exec=/usr/local/bin/godot
Icon=/absolute/path/to/icon/file |
@Calinou I have try it but not working. @notklaatu Can you give me steps how can i do it? |
@CHRISANTHOS sure, here, I wrote this for you: |
I followed (another guide like yours), @notklaatu, and I guess I'm halfway from the solution. I mean, at the moment I have a godot.desktop file, displayed with name "Godot", and I put it in the Unity Launcher. When I click on it, the project management window of Godot opens, but a new icon (grey with question mark) appears in the launcher as well. When I choose the project to edit or create, this icon disappears as the window closes, and, more or less in the same moment, another identical one appears, with the project window opening. To sum up, it's pretty much like this pretty icon I put in the launcher just allows me to open the Godot, but it's not strictly related to it. If fact, with Godot open, I see both icons; if I right click on "my" icon I can't see anything else then "Godot" and "Unlock from Launcher", whereas if I right click on the default one (question mark icon), I can also choose "Quit" (or close, or exit, don't know the english word used by Ubuntu). |
Here is the solution, found in this answer on AskUbuntu. Opening Godot the project list opens; entering EDIT: I found (reading part of this) that we can simply use the second string, "Godot" to group both question mark icons under our custom icon; so the line in the |
As I understand it there's not much that can be done by Godot itself to fix this, no? The |
Here is a set of scripts I'm using to "install" and "uninstall" Godot:
Files must be on same directory of the executable, in my case executable is Godot.64. This logic was found on Arduino IDE install scripts (as fallback, not using xdg-utils). |
Create a .desktop file named godot.desktop with content -
[ change the Exec and Icon entries path according to your file(s) location(s) ] Copy/Move the file into ~/.local/share/applications/ Make the godot.dektop file executable. Now, you should see an entry named Godot Engine in Unity Launcher. [ for new linux user(s), if you don't understand the ~/ place, it presents the Home folder for current user ] Thanks :) |
This can be closed, I think |
A cool solution to this problem would certainly be to add a pythonized version of #6405 (comment) as install/uininstall target in the Sconscript. |
First of all thank you for your report and sorry for the delay. We released Godot 3.0 in January 2018 after 18 months of work, fixing many old issues either directly, or by obsoleting/replacing the features they were referring to. We still have hundreds of issues whose relevance/reproducibility needs to be checked against the current stable version, and that's where you can help us. For bug reports, please also make sure that the issue contains detailed steps to reproduce the bug and, if possible, a zipped project that can be used to reproduce it right away. This greatly speeds up debugging and bugfixing tasks for our contributors. Our Bugsquad will review this issue more in-depth in 15 days, and potentially close it if its relevance could not be confirmed. Thanks in advance. Note: This message is being copy-pasted to many "stale" issues (90+ days without activity). It might happen that it is not meaningful for this specific issue or appears oblivious of the issue's context, if so please comment to notify the Bugsquad about it. |
|
As mentioned above that's not something that we can fix ourselves on Linux, executable don't have icon data. The files in https://github.com/godotengine/godot/tree/master/misc/dist/linux can be used for one's own local setup, or by package maintainers. Adding AppImage support as a distribution channel may also be an option, but it's tracked in #6681. |
To install for multiple users on the computer (a family computer) I did the following on Kubuntu 20.04:
Godot then shows up in the application menu, or when searched for, just as though it had been installed from any of the various graphical software installers (e.g. Software Center): |
@mikeweilgart Note that we provide a Also, while it's nice to do, changing the ownership isn't required for desktop integration to work. (The |
The Unity launcher and icons for .desktop files (which appear in the Dash AKA Start Menu) are orthogonal concepts. The launcher icon comes from the window's icon. With wxPython that's set with wx.TopLevelWindow.SetIcon. That works straight from Python with no installation or a .desktop file. I don't know the equivalent for godot's toolkit but I suspect there is one, as GTK and Qt can do it too. |
Operating system or device - Godot version:
Ubuntu 16.04.1 | Godot 2.1-stable
Issue description (what happened, and what was expected):
Godot icon is missing from the Unity launcher (grey with a question mark)
Also i try to "Lock to launcher" but nothing it's disappear after exiting Godot.
The text was updated successfully, but these errors were encountered: