CrazyEngineers
  • In ubuntu repository quite old applications are available.eg : Arduino 1.0.5 is available but ubuntu repo has 1.0.3
    So, I compile latest source & manually push applications to /usr/share/applications
    For image on application icon, I google the png image & add it in .desktop file so that I can access it directly from dash.

    However the problem is, my icon size of whichever the applications i have manually pushed into /usr/share/applications looks bigger due to large size of image.
    Check image :

    12121212

    So, I want the precise icon size so that manually added applications doesn't gets segregated from applications installed from repository.

    Anyone know precise icon size which these applications uses ? like 200x200 or 240x240 ?
    Need help asap.
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • durga ch

    MemberAug 14, 2013

    will this link be of any use?
    #-Link-Snipped-#
    Are you sure? This action cannot be undone.
    Cancel
  • Abhishek Rawal

    MemberAug 14, 2013

    #-Link-Snipped-# Thanks for stopping by & trying to help. But that doesn't solves my query.
    I have different problem.

    Let me explain.
    When I use source code for any application, there is no short-cut available to open the application.
    Everytime i have to execute shell script from terminal which is painful.

    So, I simply create a file , application-name.desktop
    with the format of :
    [Desktop Entry]
    Type=Application
    Name=[Name of the app]
    Exec=[Path & name of  executable file where executable file is located]
    Icon=[Path from where you wanna fetch the icon for app]
    Terminal=False
    StartupNotify=True
    
    And push it in /usr/share/applications & it will be shown in Dash under application.

    Now, in code you see the Icon line, it uses to fetch the icon for the application otherwise no icon will be shown in Dash.

    I want to know the universal size of the icon used in Dash, so that I can resize the image & then create .desktop file, so my custom icons would look similar size to that of one downloaded from repo.

    So, inshort i just wanna know which resolution icon does Unity dash shows, is it 240x240 200x200 or abc x pqr.

    I think you understand my query. Sorry If I am failing to make you understand what I really need.
    Are you sure? This action cannot be undone.
    Cancel
  • durga ch

    MemberAug 15, 2013

    .. umm is there any possibility of setting it to default size ? or can you open another application details to check what size it's icon is?
    Are you sure? This action cannot be undone.
    Cancel
  • Abhishek Rawal

    MemberAug 15, 2013

    durga
    .. umm is there any possibility of setting it to default size ?
    I couldn't find one. There is setting to increase or decrease icon size in launcher panel (the one which is on left-corner of desktop) but not in Dash.

    durga
    can you open another application details to check what size it's icon is?
    Searched :
    /bin
    /usr/sbin
    /usr/bin
    /sbin
    where usually applications are installed. Couldn't find anything except executables, shared libs,shell scripts & perl scripts.

    Thanks anyways.
    Are you sure? This action cannot be undone.
    Cancel
  • Anoop Kumar

    MemberAug 15, 2013

    Search with .png in root, you will get all png icons. 😁
    In my virtual machine default 13.04 VLC is using 16*16 to 256*256.
    I am sure in application launcher it is 128*128
    Look like application launcher is using 48*48. search for
    wine- .png
    Are you sure? This action cannot be undone.
    Cancel
  • Abhishek Rawal

    MemberAug 15, 2013

    That was so simple.Silly me 👀

    ianoop
    Look like application launcher is using 48*48. search for
    I don't think so.
    Because code-blocks uses 64x64
    Firefox uses 128x128
    Friends uses 16x16 to 256x256
    Gimp with 16x16 to 256x256

    In short, We can't know which size is used for application menu in Dash.
    God! 😡
    Are you sure? This action cannot be undone.
    Cancel
  • Anoop Kumar

    MemberAug 15, 2013

    wineConfiguration launcher is using 48*48 only. search for that you will find it.
    Any way use max size as you can, say 256*256, It should fit in lower size basket.

    Anyway,
    How Linux uses size of icons from different files of png?
    In windows there is only one .ico file which consist all sizes of png and whatever size is needed it fits automatically.
    Are you sure? This action cannot be undone.
    Cancel
  • Abhishek Rawal

    MemberAug 15, 2013

    ianoop
    wineConfiguration launcher is using 48*48 only. search for that you will find it.
    Any way use max size as you can, say 256*256, It should fit in lower size basket
    Testing with 48*48, 64*64, 128*128, 256*256
    I will report the result asap.
    But, I feel it should be 48*48 as under 'Settings->Appearance', launcher icon size by default is 48. (but again, that's for launcher not Dash menu)

    ianoop
    Anyway,
    How Linux uses size of icons from different files of png?
    In windows there is only one .ico file which consist all sizes of png and whatever size is needed it fits automatically.
    No idea buddy
    Are you sure? This action cannot be undone.
    Cancel
  • Abhishek Rawal

    MemberAug 15, 2013

    #-Link-Snipped-# 48*48 it is. Thanks man for helping me out.
    Thank you to #-Link-Snipped-# too for trying to solve my problem.

    No more big fat icons in Dash. Yuppie 😁
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register