Results 1 to 3 of 3

Thread: Obtaining application icons in Linux

  1. #1
    Join Date
    Oct 2008
    Posts
    37
    Thanked 2 Times in 2 Posts

    Default Obtaining application icons in Linux

    Hi,

    So QFileIconProvider works pretty well on Windows for grabbing icons executables, but seems not to do so on Linux. At least not on GNOME. Can anyone recommend a general way of asking the window manager or perhaps a query against a file of some type to obtain the icon for executables on Linux?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Obtaining application icons in Linux

    The answer is not trivial as each desktop system stores its icons elsewhere. For instance for KDE you would look into /usr/share/icons/default[.kde4]/32x32/mimetypes.

  3. #3
    Join Date
    Oct 2008
    Posts
    37
    Thanked 2 Times in 2 Posts

    Default Re: Obtaining application icons in Linux

    Thanks.

    I don't mind it not being trivial. Just needed a starting point - which you provided.

Similar Threads

  1. Porting application from Linux to Win32
    By giusepped in forum Qt Programming
    Replies: 11
    Last Post: 2nd November 2008, 14:23
  2. Deploying application on Linux machine without Qt
    By will49 in forum Installation and Deployment
    Replies: 2
    Last Post: 10th July 2008, 22:41
  3. Best way to manage application icons
    By SiLiZiUMM in forum Qt Programming
    Replies: 0
    Last Post: 23rd April 2008, 14:28
  4. How to create package for a Qt4 application in linux..?
    By archanasubodh in forum Installation and Deployment
    Replies: 24
    Last Post: 6th March 2008, 12:20
  5. Replies: 2
    Last Post: 12th January 2007, 11:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.