Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637304 - dev-util/android-studio DE integration: application icon in taskbar can't be used as launcher icon
Summary: dev-util/android-studio DE integration: application icon in taskbar can't be ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-13 07:48 UTC by Uladzimir Bely
Modified: 2017-11-27 03:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Uladzimir Bely 2017-11-13 07:48:36 UTC
During Android studio installation there is a desktop icon created. But it cannot be grouped with application icon in taskbar in such DE's like Unity, Plasma, maybe others.

Reproducible: Always

Steps to Reproduce:
1. Install (emerge) any Android studio version
2. Launch it. The icon will appear in taskbar (in Plasma, Unity, etc..)
3. Lock the icon to taskbar (via pop-up menu)
Actual Results:  
Locked icon can't be used as launcher icon (it just tries to run java)

Expected Results:  
Locked icon can be used as launcher icon

The problem is because .desktop file for Android Studio doesn't defines StartupWMClass property.

Some discussion about the issue is here: https://askubuntu.com/questions/367396/what-represent-the-startupwmclass-field-of-a-desktop-file

The solution:

Use in ebuild's:

  make_desktop_entry ${PN} "Android Studio" ${PN} "Development;IDE" "StartupWMClass=jetbrains-studio"

instead of:

  make_desktop_entry ${PN} "Android Studio" ${PN} "Development;IDE"

in src_install() function.
Comment 1 Larry the Git Cow gentoo-dev 2017-11-27 03:23:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e120551fbca899370335da1185fe94dba7b4466

commit 6e120551fbca899370335da1185fe94dba7b4466
Author:     Jason Zaman <perfinion@gentoo.org>
AuthorDate: 2017-11-27 03:07:16 +0000
Commit:     Jason Zaman <perfinion@gentoo.org>
CommitDate: 2017-11-27 03:08:45 +0000

    dev-util/android-studio: bump to 3.0.1 and fix desktop entry
    
    Closes: https://bugs.gentoo.org/637304
    Package-Manager: Portage-2.3.13, Repoman-2.3.3

 dev-util/android-studio/Manifest                   |   3 +-
 .../android-studio-3.0.1.0.171.4443003.ebuild      | 108 +++++++++++++++++++++
 2 files changed, 110 insertions(+), 1 deletion(-)