• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Development Client Development Desktop-Entry Icon Bug on Linux Client

     
    • 0 Vote(s) - 0 Average

    Desktop-Entry Icon Bug on Linux Client

    Found Solution, need Help contributing
    M4dMike
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    #1
    2024-10-04, 10:30 PM
    Hi,

    I am new to Jellyfin and after setting up a small Server Instance the next Step was a Client on my Ubuntu Desktop Machine.
    This Method from the official Site was used: https://flathub.org/apps/com.github.iwal...dia-player

    I noticed that after clicking on the Icon to start the client after pinning it on my Dash there was showing up a new Intsance of Jellyfin with a generic Icon.
    Since i was familiar with creating custom Desktop Entries i was able to fix this Behavior, i will describe how at the End.
    Can someone please pick this up and report it on Github or point me to right place so that i can do it myself?
    (Sorry i don' have much experience in this at all, development, git, flatpak and so on...)

    Thanks a lot, Mike


    Problem/Fix:

    1. Without Modification Jellyfin Ubuntu Client starts in Dash as  new Instance without Icon
    2. Deskop-Entry gets created in "/usr/share/applications" and is named "com.github.iwalton3.jellyfin-media-player.desktop"
    3. Following Specification-Line is wrong: "StartupWMClass=com.github.iwalton3.jellyfin-media-player"
    4. The Command "xprop | grep WM_CLASS" in Terminal and clicking on the Jellyfin Window delivers the actual WMClass: "WM_CLASS(STRING) = "jellyfinmediaplayer", "Jellyfin Media Player""
    5. Changing this in the Desktop-Entry solves the Problem: "StartupWMClass=jellyfinmediaplayer"


    Attached Files Thumbnail(s)
                   
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-10-04, 11:38 PM
    HUZZAH! I've been wondering about this for a while. I submitted a PR with your change.

    https://github.com/jellyfin/jellyfin-med...r/pull/771
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    M4dMike
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    #3
    2024-10-05, 12:05 AM (This post was last modified: 2024-10-05, 12:09 AM by M4dMike. Edited 1 time in total.)
    Thanks a lot, for the PR and for the credits.
    I was already curious if I am the only one ^^'

    By the way, here is the best Resource on Desktop Entries I could find, it also had the Instruction on how to check out the actual WM_CLASS.
    https://wiki.ubuntuusers.de/.desktop-Dat...-bestimmen
    (Its German but also am I, and nowadays there are online Translators if your really need them...)

    Now I am eager to see if it gets easily approved and wonder how long it will take until the change goes online =D



    Edit: forgot Link...
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode