LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-20-2017, 11:53 AM   #1
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Rep: Reputation: 169Reputation: 169
Change icon for script


I put a script on my desktop.

I can not change it's icon like I can with programs.

Is there a way to do so ?
 
Old 01-20-2017, 02:05 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,689

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by Fixit7 View Post
I put a script on my desktop. I can not change it's icon like I can with programs. Is there a way to do so ?
Maybe...but again, as with your other thread, you provide no useful details, so we can't guess. Which desktop environment are you using, on which version of Ubuntu??? You've been here long enough to have read the "Question Guidelines" by now.

First two hits in Google for "change desktop icon in ubuntu":
https://ubuntuforums.org/showthread.php?t=1504342
http://askubuntu.com/questions/55162...n-ubuntu-14-04
 
Old 01-20-2017, 03:52 PM   #3
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Of course I provided useful details.

1. It is a script.

2. And I put a link to it on my desktop.

3. And it will not let me change the icon

In a previous response, my distro and version are listed under " contributing member."
 
Old 01-20-2017, 05:29 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,689

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by Fixit7 View Post
Of course I provided useful details.

1. It is a script.
2. And I put a link to it on my desktop.
3. And it will not let me change the icon

In a previous response, my distro and version are listed under " contributing member."
Again:
  • We know it's a script, but that tells us nothing.
  • WHICH desktop??? Gnome? Unity? KDE? Enlightenment? IceWM? Other???? Because that makes a difference when assigning an icon, and how you do that.
  • "Will not let me" tells us absolutely nothing. WHAT DID YOU TRY??? You haven't said what steps you took to actually try doing this.
  • And again, what distro you post in your profile can mean absolutely nothing...many folks here have SEVERAL listed, and we can't guess/assume as to what you're talking about.
So again: What have you tried? What desktop environment?
 
Old 01-20-2017, 06:05 PM   #5
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
mate desktop

I know of only one way to change icons for ubuntu-mate, thus I saw no need to explain how I did it.

Right click on icon, properties, click on current icon and then change it.

ubuntu-mate 16.04
 
Old 01-20-2017, 06:15 PM   #6
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Quote:
Originally Posted by Fixit7 View Post
mate desktop

I know of only one way to change icons for ubuntu-mate, thus I saw no need to explain how I did it.

Right click on icon, properties, click on current icon and then change it.

ubuntu-mate 16.04
And then what happens? Do you get an error? Or do you click OK to dismiss the dialog and everything stays the same? You say it won't let you change the icon, then you state above "click on current icon and then change it". I'm guessing you mean attempt to change it. You should be getting some sort of feedback.

What kind of file are you attempting to use for the icon? Is it a stock icon? A file you are providing? SNG? PNG? JPG? ICO?

Have you checked if Mate creates an XDG spec .Desktop file in your Desktop directory? If so, edit that file, try to change the "Icon=" line, and possibly log off and log in again to be complete.

Code:
[Desktop Entry]
Name=gv
GenericName=PS and PDF viewer
Comment=View PS and/or PDF files
Exec=gv
Icon=/usr/share/pixmaps/gv_icon.xpm
Terminal=false
Type=Application
MimeType=application/ps;application/pdf;
Categories=Viewer;Graphics;
 
1 members found this post helpful.
Old 01-20-2017, 06:22 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,689

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by Fixit7 View Post
mate desktop
I know of only one way to change icons for ubuntu-mate, thus I saw no need to explain how I did it.

Right click on icon, properties, click on current icon and then change it. ubuntu-mate 16.04
And since we had no idea you were using the mate desktop instead of something else, how are we supposed to know this until you told us???? Again...provide details when asking a question.

goumba makes some good points and questions.
 
Old 01-20-2017, 06:30 PM   #8
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Quote:
Originally Posted by goumba View Post
And then what happens? Do you get an error? Or do you click OK to dismiss the dialog and everything stays the same? You say it won't let you change the icon, then you state above "click on current icon and then change it". I'm guessing you mean attempt to change it. You should be getting some sort of feedback.

What kind of file are you attempting to use for the icon? Is it a stock icon? A file you are providing? SNG? PNG? JPG? ICO?

Have you checked if Mate creates an XDG spec .Desktop file in your Desktop directory? If so, edit that file, try to change the "Icon=" line, and possibly log off and log in again to be complete.

Code:
[Desktop Entry]
Name=gv
GenericName=PS and PDF viewer
Comment=View PS and/or PDF files
Exec=gv
Icon=/usr/share/pixmaps/gv_icon.xpm
Terminal=false
Type=Application
MimeType=application/ps;application/pdf;
Categories=Viewer;Graphics;
My click on current icon statement is the method I normally use to change icons.

I have a lot of experience with creating icons and my icon is a png.

Here is my script, it may give helpful info.

Code:
#!/bin/bash
# 
#    
echo xxxxx | sudo -S usr/bin/mate-search-tool
 
Old 01-20-2017, 06:32 PM   #9
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Quote:
Originally Posted by TB0ne View Post
And since we had no idea you were using the mate desktop instead of something else, how are we supposed to know this until you told us???? Again...provide details when asking a question.

goumba makes some good points and questions.
Is it hard to look at this part of all my posts ?

Quote:
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,263
 
Old 01-20-2017, 06:53 PM   #10
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Quote:
Originally Posted by Fixit7 View Post
My click on current icon statement is the method I normally use to change icons.

I have a lot of experience with creating icons and my icon is a png.

Here is my script, it may give helpful info.

Code:
#!/bin/bash
# 
#    
echo xxxxx | sudo -S usr/bin/mate-search-tool
The script itself has nothing to do with your problem. It will be the source of future, but unrelated, problems for sure.

You still have yet to answer: do you get any feedback? Any error? MATE has to be doing SOMETHING.
 
Old 01-20-2017, 06:57 PM   #11
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
No feedback. If there had been, I would have posted it.

Icon simple does not change.

As far as the script having nothing to do with the problem, I doubt that is true.

I use other scripts and have successful changed the icons.
 
Old 01-20-2017, 07:49 PM   #12
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
The contents of the script, again, have nothing to do with it.

I wonder if you did something funny when you created the shortcut, like create it as root.

Create a new shortcut to this script as your regular user, and attempt to change the icon. If it works, then something is wrong with the other shortcut. Delete it.
 
Old 01-20-2017, 09:43 PM   #13
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Quote:
Originally Posted by goumba View Post
The contents of the script, again, have nothing to do with it.

I wonder if you did something funny when you created the shortcut, like create it as root.

Create a new shortcut to this script as your regular user, and attempt to change the icon. If it works, then something is wrong with the other shortcut. Delete it.
There is no reason for me to create a shortcut as root and I did not.

It appears that your understanding of scripts is limited.

It sends a password to start the program.

I am hopeful that some with more experience with scripts will help me.

I hope you have a great evening. :-)
 
Old 01-20-2017, 10:54 PM   #14
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Quote:
Originally Posted by Fixit7 View Post
There is no reason for me to create a shortcut as root and I did not.

It appears that your understanding of scripts is limited.

It sends a password to start the program.

I am hopeful that some with more experience with scripts will help me.

I hope you have a great evening. :-)
It appears your understanding of Linux and desktops is limited as the ICON and the CONTENTS OF A SCRIPT are two different entities. You did something odd here creating the shortcut.

As far as my understanding of scripts, take a look at my past responses, I have solved problems with scripts far more difficult than yours.

You have a nice evening. You're the one with the problem, not me. I tried to help, you decided to insult.

Last edited by goumba; 01-20-2017 at 10:56 PM.
 
Old 01-21-2017, 08:40 AM   #15
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,689

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by Fixit7 View Post
Is it hard to look at this part of all my posts ?
Is it hard for you to wrap your head around the fact that WHAT IS ON PEOPLES PROFILES MAY NOT MATCH THE SYSTEM THEY'RE ASKING ABOUT??? How many distros are on MY profile? And on others???? Again, we DO NOT KNOW what you're using unless you say, period. We aren't going to play guessing games, and making someone waste their time trying to figure out why something that works for distro xxx isn't working for you, because you weren't USING distro xxx to start with...because you're asking folks to ASSUME.

Again, you've been here close to three years; you should be very well acquainted with the "Question Guidelines" and "How to ask a smart question" links. If not, probably be a good idea if you read them.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openSUSE 11.4 - wired icon does not change to wireless icon in panel rusty2 Linux - Software 1 04-14-2011 04:46 AM
How can I change the Tux head icon with the distro icon on my profile? sica07 General 5 06-08-2010 09:25 AM
change logon icon fypon Mandriva 1 03-10-2004 01:13 AM
How can i change the icon of a shell script? BajaNick Linux - Software 6 01-14-2004 12:56 AM
can't run a script script from icon in konqueror scottsteibel Linux - Software 1 08-02-2003 07:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration