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

Clash 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?
command-line 18.04 icons gvfs
add a comment |Â
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?
command-line 18.04 icons gvfs
What parameters exactly did you use ?
â Sergiy Kolodyazhnyy
Jun 7 at 6:02
Trygio 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
add a comment |Â
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?
command-line 18.04 icons gvfs
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?
command-line 18.04 icons gvfs
asked Jun 7 at 5:39
Ramuyko
413518
413518
What parameters exactly did you use ?
â Sergiy Kolodyazhnyy
Jun 7 at 6:02
Trygio 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
add a comment |Â
What parameters exactly did you use ?
â Sergiy Kolodyazhnyy
Jun 7 at 6:02
Trygio 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
add a comment |Â
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'
add a comment |Â
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'
add a comment |Â
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'
add a comment |Â
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'
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'
answered Jun 7 at 6:52
Sergiy Kolodyazhnyy
63.6k9127272
63.6k9127272
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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