Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 31

Thread: How do I change the icon for particular file, not the file type.

  1. #21
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    12,097
    Distro
    Ubuntu

    Re: How do I change the icon for particular file, not the file type.

    .desktop files require 3 things in all of them
    Name Exec and Type
    There are basically two Types: Link and Application, and Link is rarely ever used.

    Example
    Code:
    [Desktop Entry]
    Name=foo
    Exec=bar
    Type=Application
    Once you have those 3 entries everything else is, strictly speaking, optional.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  2. #22
    Join Date
    Aug 2014
    Beans
    53

    Re: How do I change the icon for particular file, not the file type.

    now i found this. The .desktop file asked me then i it should open or execute, pressed execute and it informed me once more, it would start the defined execute file. then the animation (bouncing icon) started but the application did not get started. (changed the exec and icon line)
    Name=FooCorp Painter Pro
    Exec=foocorp-painter-pro
    Icon=foocorp-painter-pro
    Type=Application
    Categories=GTK;GNOME;Utility;

  3. #23
    Join Date
    Aug 2014
    Beans
    53

    Re: How do I change the icon for particular file, not the file type.

    Ah ok, you already replied.

  4. #24
    Join Date
    Aug 2014
    Beans
    53

    Re: How do I change the icon for particular file, not the file type.

    Got the format right now, but to execute simply fails, some bouncing of the chosen icon and then nothing.

  5. #25
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    12,097
    Distro
    Ubuntu

    Re: How do I change the icon for particular file, not the file type.

    Going back to the exclamation marks, are the .desktop files marked for executable?
    (usually right click on the file lists a properties option where you can set the execute bit)

    EDIT:
    Got the format right now, but to execute simply fails, some bouncing of the chosen icon and then nothing.
    what is the Exec= line you have?
    Last edited by deadflowr; July 8th, 2017 at 05:42 PM. Reason: more
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  6. #26
    Join Date
    Aug 2014
    Beans
    53

    Re: How do I change the icon for particular file, not the file type.

    Exec=Exec=Mupen64Plus /home/ab90/Games/N64/Mystical Ninja 2.n64
    was the line

    NOW its really correct
    [Desktop Entry]
    Name=Mystical Ninja 2
    Exec=Mupen64Plus /home/ab90/Games/N64/Mystical Ninja 2.n64
    Icon=/home/ab90/Pictures/GameIcons/292579754aef62bf4679af7d96119f14.png
    Type=Application
    BUT now m getting this:


    KDEInit could not launch 'Mupen64Plus':
    Could not open library 'libkdeinit5_Mupen64Plus'.
    Cannot load library libkdeinit5_Mupen64Plus: (libkdeinit5_Mupen64Plus: cannot open shared object file: No such file or directory)

  7. #27
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    12,097
    Distro
    Ubuntu

    Re: How do I change the icon for particular file, not the file type.

    Correct command should be
    mupen64plus < all small letters

    Also I see spaces in the game name
    Mystical Ninja 2.n64
    Linux does not handle spaces well, so you will need to encapsulate those
    like
    Code:
    Exec=mupen64plus "/home/ab90/Games/N64/Mystical Ninja 2.n64"
    see the quotes.
    Otherwise the system would try to run a game called Mystical...
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  8. #28
    Join Date
    Aug 2014
    Beans
    53

    Re: How do I change the icon for particular file, not the file type.

    Successfull! Thank you very very much! )) ->Its working now *thumbs-up* <-

  9. #29
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    12,097
    Distro
    Ubuntu

    Re: How do I change the icon for particular file, not the file type.

    Hope you beat the game.
    If you feel confident that the problem(s) have been solved, feel free to mark this thread as solved.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  10. #30
    Join Date
    Aug 2014
    Beans
    53

    Re: How do I change the icon for particular file, not the file type.


Page 3 of 4 FirstFirst 1234 LastLast

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
  •