Is it possible to insert icons on folders with the “gio set” command?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












On Ubuntu 16.04 I used the following command to insert icons on my folders and it worked fine:



gvfs-set-attribute -t string folderIWishToInsertIcon metadata::custom-icon "file:///home/myUser/myIcon.png"


After upgrading to Ubuntu 18.04 this command still works fine but now I receive a message saying that it's a deprecated tool and it recommends me to use gio set instead :



ramuyko@myPC:~$ gvfs-set-attribute -t string folderIWishToInsertIcon metadata::custom-icon "file:///home/myUser/myIcon.png"
This tool has been deprecated, use 'gio set' instead.
See 'gio help set' for more info.


I've seen gio's man page and tried to insert icons on my folders with the gio set command but I didn't succeed using the right parameters. Does anyone know if it's possible and how to do it?







share|improve this question



















  • What parameters exactly did you use ?
    – Sergiy Kolodyazhnyy
    Jun 7 at 6:02










  • Try gio set -t 'string' folderIWishToInsertIcon 'metadata::custom-icon' 'file:///home/myUser/myIcon.png'
    – Sergiy Kolodyazhnyy
    Jun 7 at 6:05










  • @SergiyKolodyazhnyy Ah, my bad... It works using the exact same parameters of gvfs-set-attribute like you said. I was trying to recreate the line from zero reading the man page and it didn't cross my mind to change only the command. Well, now I know how to use a new command at least... :)
    – Ramuyko
    Jun 7 at 6:19










  • Very well ! Want to post an answer with the proper command ? Or should I convert my comment into one ?
    – Sergiy Kolodyazhnyy
    Jun 7 at 6:20










  • @SergiyKolodyazhnyy Just converting your comment into one is fine for me...
    – Ramuyko
    Jun 7 at 6:24















up vote
1
down vote

favorite












On Ubuntu 16.04 I used the following command to insert icons on my folders and it worked fine:



gvfs-set-attribute -t string folderIWishToInsertIcon metadata::custom-icon "file:///home/myUser/myIcon.png"


After upgrading to Ubuntu 18.04 this command still works fine but now I receive a message saying that it's a deprecated tool and it recommends me to use gio set instead :



ramuyko@myPC:~$ gvfs-set-attribute -t string folderIWishToInsertIcon metadata::custom-icon "file:///home/myUser/myIcon.png"
This tool has been deprecated, use 'gio set' instead.
See 'gio help set' for more info.


I've seen gio's man page and tried to insert icons on my folders with the gio set command but I didn't succeed using the right parameters. Does anyone know if it's possible and how to do it?







share|improve this question



















  • What parameters exactly did you use ?
    – Sergiy Kolodyazhnyy
    Jun 7 at 6:02










  • Try gio set -t 'string' folderIWishToInsertIcon 'metadata::custom-icon' 'file:///home/myUser/myIcon.png'
    – Sergiy Kolodyazhnyy
    Jun 7 at 6:05










  • @SergiyKolodyazhnyy Ah, my bad... It works using the exact same parameters of gvfs-set-attribute like you said. I was trying to recreate the line from zero reading the man page and it didn't cross my mind to change only the command. Well, now I know how to use a new command at least... :)
    – Ramuyko
    Jun 7 at 6:19










  • Very well ! Want to post an answer with the proper command ? Or should I convert my comment into one ?
    – Sergiy Kolodyazhnyy
    Jun 7 at 6:20










  • @SergiyKolodyazhnyy Just converting your comment into one is fine for me...
    – Ramuyko
    Jun 7 at 6:24













up vote
1
down vote

favorite









up vote
1
down vote

favorite











On Ubuntu 16.04 I used the following command to insert icons on my folders and it worked fine:



gvfs-set-attribute -t string folderIWishToInsertIcon metadata::custom-icon "file:///home/myUser/myIcon.png"


After upgrading to Ubuntu 18.04 this command still works fine but now I receive a message saying that it's a deprecated tool and it recommends me to use gio set instead :



ramuyko@myPC:~$ gvfs-set-attribute -t string folderIWishToInsertIcon metadata::custom-icon "file:///home/myUser/myIcon.png"
This tool has been deprecated, use 'gio set' instead.
See 'gio help set' for more info.


I've seen gio's man page and tried to insert icons on my folders with the gio set command but I didn't succeed using the right parameters. Does anyone know if it's possible and how to do it?







share|improve this question











On Ubuntu 16.04 I used the following command to insert icons on my folders and it worked fine:



gvfs-set-attribute -t string folderIWishToInsertIcon metadata::custom-icon "file:///home/myUser/myIcon.png"


After upgrading to Ubuntu 18.04 this command still works fine but now I receive a message saying that it's a deprecated tool and it recommends me to use gio set instead :



ramuyko@myPC:~$ gvfs-set-attribute -t string folderIWishToInsertIcon metadata::custom-icon "file:///home/myUser/myIcon.png"
This tool has been deprecated, use 'gio set' instead.
See 'gio help set' for more info.


I've seen gio's man page and tried to insert icons on my folders with the gio set command but I didn't succeed using the right parameters. Does anyone know if it's possible and how to do it?









share|improve this question










share|improve this question




share|improve this question









asked Jun 7 at 5:39









Ramuyko

413518




413518











  • What parameters exactly did you use ?
    – Sergiy Kolodyazhnyy
    Jun 7 at 6:02










  • Try gio set -t 'string' folderIWishToInsertIcon 'metadata::custom-icon' 'file:///home/myUser/myIcon.png'
    – Sergiy Kolodyazhnyy
    Jun 7 at 6:05










  • @SergiyKolodyazhnyy Ah, my bad... It works using the exact same parameters of gvfs-set-attribute like you said. I was trying to recreate the line from zero reading the man page and it didn't cross my mind to change only the command. Well, now I know how to use a new command at least... :)
    – Ramuyko
    Jun 7 at 6:19










  • Very well ! Want to post an answer with the proper command ? Or should I convert my comment into one ?
    – Sergiy Kolodyazhnyy
    Jun 7 at 6:20










  • @SergiyKolodyazhnyy Just converting your comment into one is fine for me...
    – Ramuyko
    Jun 7 at 6:24

















  • What parameters exactly did you use ?
    – Sergiy Kolodyazhnyy
    Jun 7 at 6:02










  • Try gio set -t 'string' folderIWishToInsertIcon 'metadata::custom-icon' 'file:///home/myUser/myIcon.png'
    – Sergiy Kolodyazhnyy
    Jun 7 at 6:05










  • @SergiyKolodyazhnyy Ah, my bad... It works using the exact same parameters of gvfs-set-attribute like you said. I was trying to recreate the line from zero reading the man page and it didn't cross my mind to change only the command. Well, now I know how to use a new command at least... :)
    – Ramuyko
    Jun 7 at 6:19










  • Very well ! Want to post an answer with the proper command ? Or should I convert my comment into one ?
    – Sergiy Kolodyazhnyy
    Jun 7 at 6:20










  • @SergiyKolodyazhnyy Just converting your comment into one is fine for me...
    – Ramuyko
    Jun 7 at 6:24
















What parameters exactly did you use ?
– Sergiy Kolodyazhnyy
Jun 7 at 6:02




What parameters exactly did you use ?
– Sergiy Kolodyazhnyy
Jun 7 at 6:02












Try gio set -t 'string' folderIWishToInsertIcon 'metadata::custom-icon' 'file:///home/myUser/myIcon.png'
– Sergiy Kolodyazhnyy
Jun 7 at 6:05




Try gio set -t 'string' folderIWishToInsertIcon 'metadata::custom-icon' 'file:///home/myUser/myIcon.png'
– Sergiy Kolodyazhnyy
Jun 7 at 6:05












@SergiyKolodyazhnyy Ah, my bad... It works using the exact same parameters of gvfs-set-attribute like you said. I was trying to recreate the line from zero reading the man page and it didn't cross my mind to change only the command. Well, now I know how to use a new command at least... :)
– Ramuyko
Jun 7 at 6:19




@SergiyKolodyazhnyy Ah, my bad... It works using the exact same parameters of gvfs-set-attribute like you said. I was trying to recreate the line from zero reading the man page and it didn't cross my mind to change only the command. Well, now I know how to use a new command at least... :)
– Ramuyko
Jun 7 at 6:19












Very well ! Want to post an answer with the proper command ? Or should I convert my comment into one ?
– Sergiy Kolodyazhnyy
Jun 7 at 6:20




Very well ! Want to post an answer with the proper command ? Or should I convert my comment into one ?
– Sergiy Kolodyazhnyy
Jun 7 at 6:20












@SergiyKolodyazhnyy Just converting your comment into one is fine for me...
– Ramuyko
Jun 7 at 6:24





@SergiyKolodyazhnyy Just converting your comment into one is fine for me...
– Ramuyko
Jun 7 at 6:24











1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










As solved in the comments, gio set command uses same form of parameters that the gvfs-set-attribute uses, except set in gio is a separate command-line parameter, instead of gvfs-set-attribute being one whole comman. Thus the proper command should be:



gio set -t 'string' folderIWishToInsertIcon 'metadata::custom-icon' 'file:///home/myUser/myIcon.png'





share|improve this answer





















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1044358%2fis-it-possible-to-insert-icons-on-folders-with-the-gio-set-command%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    As solved in the comments, gio set command uses same form of parameters that the gvfs-set-attribute uses, except set in gio is a separate command-line parameter, instead of gvfs-set-attribute being one whole comman. Thus the proper command should be:



    gio set -t 'string' folderIWishToInsertIcon 'metadata::custom-icon' 'file:///home/myUser/myIcon.png'





    share|improve this answer

























      up vote
      1
      down vote



      accepted










      As solved in the comments, gio set command uses same form of parameters that the gvfs-set-attribute uses, except set in gio is a separate command-line parameter, instead of gvfs-set-attribute being one whole comman. Thus the proper command should be:



      gio set -t 'string' folderIWishToInsertIcon 'metadata::custom-icon' 'file:///home/myUser/myIcon.png'





      share|improve this answer























        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        As solved in the comments, gio set command uses same form of parameters that the gvfs-set-attribute uses, except set in gio is a separate command-line parameter, instead of gvfs-set-attribute being one whole comman. Thus the proper command should be:



        gio set -t 'string' folderIWishToInsertIcon 'metadata::custom-icon' 'file:///home/myUser/myIcon.png'





        share|improve this answer













        As solved in the comments, gio set command uses same form of parameters that the gvfs-set-attribute uses, except set in gio is a separate command-line parameter, instead of gvfs-set-attribute being one whole comman. Thus the proper command should be:



        gio set -t 'string' folderIWishToInsertIcon 'metadata::custom-icon' 'file:///home/myUser/myIcon.png'






        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered Jun 7 at 6:52









        Sergiy Kolodyazhnyy

        63.6k9127272




        63.6k9127272






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1044358%2fis-it-possible-to-insert-icons-on-folders-with-the-gio-set-command%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Trouble downloading packages list due to a “Hash sum mismatch” error

            How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

            Cutting all the characters after the last /