trackma icon indicating copy to clipboard operation
trackma copied to clipboard

Suggestion: include a .desktop file to allow launching from system menu and fix a bug with Plank

Open 9Morello opened this issue 8 years ago • 3 comments

Currently, if the user uses Plank, Trackma will appear in the dock with a blurred icon. trackma blurry icon

This is because Trackma doesn't include a .desktop file by default. This issue can be seen with other applications that have no .desktop file or have a misconfigured one. A solution would be to include a .desktop file with Trackma.

This, along with fixing the bug above, would also allow users to fix Trackma in the dock and launch them from the system menu. I've written a dummy Trackma.desktop file to test and it works as expected:

[Desktop Entry]
Name=Trackma
Comment=Manage your MyAnimeList account
Exec=trackma-gtk -- %u
Icon=trackma.png
Terminal=false
Type=Application
Categories=Network;
StartupWMClass=trackma-gtk
Name[en_US]=Trackma

trackma almost fixed

It doesn't show the correct icon because I don't know the correct icon name to put in the .desktop file, and as soon as this is corrected, it should show the original icon instead of a blurred one.

Edit: Taking this icon and putting it into the ~/.local/share/icons folder gives it the proper icon: trackma icon fully fixed

9Morello avatar Feb 27 '17 15:02 9Morello

From what I understand setuptools doesn't provide a native way to do this that isn't some kind of workaround that doesn't work well all the time; normally this is the work of the package maintainer.

z411 avatar Feb 28 '17 03:02 z411

@z411 def _data_files(): for theme in ['hicolor', 'ubuntu-mono-dark', 'ubuntu-mono-light', 'elementary']: directory = os.path.join('share', 'icons', theme, 'scalable', 'apps') files = glob.glob(os.path.join('share', 'icons', theme, '*.svg')) yield directory, files

yield os.path.join('share', 'doc', 'scudcloud'), \
    ['LICENSE', 'README']
yield os.path.join('share', 'applications'), \
    glob.glob(os.path.join('share', '*.desktop'))
yield os.path.join('share', 'pixmaps'), \
    glob.glob(os.path.join('scudcloud', 'resources', 'scudcloud.png'))

SolarAquarion avatar Mar 29 '17 02:03 SolarAquarion

A bundled desktop file would also be useful to have trackma auto start on login (with ~/.config/autostart)

amhndu avatar Oct 25 '19 08:10 amhndu