trackma
trackma copied to clipboard
Suggestion: include a .desktop file to allow launching from system menu and fix a bug with Plank
Currently, if the user uses Plank, Trackma will appear in the dock with a blurred 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
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:
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 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'))
A bundled desktop file would also be useful to have trackma auto start on login (with ~/.config/autostart
)