LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-21-2017, 08:41 AM   #16
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,604

Rep: Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960

Quote:
Originally Posted by goumba View Post
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.
And I got a nasty PM from the OP as well, goumba, about how he's not being treated 'fairly'. I'm done too.

Last edited by TB0ne; 01-21-2017 at 08:43 AM.
 
Old 01-22-2017, 10:01 PM   #17
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
I appreciate your help.

You have a great deal of intelligence, of which I am most appreciative.

That is being honest.

You have 18K posts.

What does the many of your distros that are on your profile have anything to do with my posts ??

You spend a lot of time keeping track of how much time I have posted here.

PLEASE, do not treat me like a child.
 
Old 01-23-2017, 07:08 AM   #18
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,604

Rep: Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960
Quote:
Originally Posted by Fixit7 View Post
I appreciate your help.
You have a great deal of intelligence, of which I am most appreciative. That is being honest. You have 18K posts.

What does the many of your distros that are on your profile have anything to do with my posts ??
Apparently, you either ignore what's said, or don't understand it.

You keep posting things like this:
Quote:
Originally Posted by Fixit7
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
...essentially saying "I don't have to tell you what distro/version I'm using, because it's in my profile!!!". The point is very simple: many people list MANY THINGS in their profile, so saying you somehow shouldn't have to give details is wrong. You do.
Quote:
You spend a lot of time keeping track of how much time I have posted here.
Spend no time at all on what you've done. In case you missed it in what you posted, the amount of time you've been here is ALSO on your profile (and shows up in the 'left of every post'), along with number of posts. Again, after 3 years, you should be well aware of needing to provide details when asking a question. Having to be asked multiple times and giving pushback about doing so isn't good.
Quote:
PLEASE, do not treat me like a child.
Then do not behave as one.
 
Old 01-23-2017, 08:52 AM   #19
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
On Mint MATE, I used right click->Create Launcher on the desktop to create a link. In the "Search Properties" window that opened, I entered the name "Search" and the command as you suggest (although I personally wouldn't hard-code my passwords into my commands, and you should use gksudo not sudo). I then clicked on the image of the spring and changed the icon to something else by browsing to the image and clicking "Open". It worked fine.

Try this series of actions and let us know at which point and how it fails.
 
Old 01-23-2017, 09:12 AM   #20
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,604

Rep: Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960
Quote:
Originally Posted by hydrurga View Post
On Mint MATE, I used right click->Create Launcher on the desktop to create a link. In the "Search Properties" window that opened, I entered the name "Search" and the command as you suggest (although I personally wouldn't hard-code my passwords into my commands, and you should use gksudo not sudo). I then clicked on the image of the spring and changed the icon to something else by browsing to the image and clicking "Open". It worked fine.

Try this series of actions and let us know at which point and how it fails.
Been tried already, according to the OP, and there are no messages/feedback/ANYTHING to help diagnose anything.
 
Old 01-23-2017, 03:03 PM   #21
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 hydrurga View Post
On Mint MATE, I used right click->Create Launcher on the desktop to create a link. In the "Search Properties" window that opened, I entered the name "Search" and the command as you suggest (although I personally wouldn't hard-code my passwords into my commands, and you should use gksudo not sudo). I then clicked on the image of the spring and changed the icon to something else by browsing to the image and clicking "Open". It worked fine.

Try this series of actions and let us know at which point and how it fails.
I made a launcher for it.

But I when I double click it, nothing happens.

I wonder if Mate does not see the script as being able to start a program and thus does not know what to do with it ?
 
Old 01-23-2017, 03:40 PM   #22
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Fixit7 View Post
I made a launcher for it.

But I when I double click it, nothing happens.


I wonder if Mate does not see the script as being able to start a program and thus does not know what to do with it ?
But what we're talking about here is not whether the launcher will actually run the command (that's a separate issue), it's whether or not you can change the launcher icon.

While you're creating the launcher, do you see the "spring/launcher" image in the top left of the "Search Properties" window? If so, does clicking on that image allow you to change the icon?
 
Old 01-23-2017, 04:24 PM   #23
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,482

Rep: Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485
If what you posted in post 8 above for your script is correct, the reason it doesn't do anything is because you left the ( / ) forward slash off at the beginning. Should be: /usr/bin/mate-search-tool
Using the 'Browse' button on the launcher should eliminate the above problem. It should be executable without doing anything but you could check that.

I went through the same process discussed above by hydrurga on Mint Mate 17.1 and had no problem creating the launcher on the Desktop or changing the icon.
 
Old 01-23-2017, 05:51 PM   #24
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,148

Rep: Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855
I agree with all the above about giving full information, but that aside, you may just need to restart the desktop application, to get it to refesh the icons.
 
Old 01-24-2017, 12:18 PM   #25
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 yancek View Post
If what you posted in post 8 above for your script is correct, the reason it doesn't do anything is because you left the ( / ) forward slash off at the beginning. Should be: /usr/bin/mate-search-tool
Using the 'Browse' button on the launcher should eliminate the above problem. It should be executable without doing anything but you could check that.

I went through the same process discussed above by hydrurga on Mint Mate 17.1 and had no problem creating the launcher on the Desktop or changing the icon.
The scripts runs without the /.
 
Old 01-24-2017, 12:18 PM   #26
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 hydrurga View Post
But what we're talking about here is not whether the launcher will actually run the command (that's a separate issue), it's whether or not you can change the launcher icon.

While you're creating the launcher, do you see the "spring/launcher" image in the top left of the "Search Properties" window? If so, does clicking on that image allow you to change the icon?
No.

It is no longer impt that I be able to change the icon.

Thanks for all the help. :-)

Last edited by Fixit7; 01-24-2017 at 12:20 PM.
 
Old 01-25-2017, 02:23 AM   #27
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
xyproblem? (change icon vs. make usr/... work like /usr/...)

I picked up on #25: unless you're 'in' / and pwd reports just a /
then usr/...pgm won't work. Here's a script to demonstrate that:
Code:
echo MYuserPWD|sudo -S bin/id > /tmp/`date +%N` 2>&1
Here, I left the leading / off of bin/id(pgm), like usr/....
You get nothing, but the error goes into the /tmp ###file
(maybe GUI 'magically' discards what you'll find in that tmpfile)
Code:
sudo -S    Write the prompt to the standard error and ...
Your prompt '[sudo] password for user: ' must be going 'somewhere'!
(along with: sudo: usr/bin/mate-search-tool: command not found
So, maybe try appending to your script at the bottom of #8:
2>/tmp/`date +%N`
and look in /tmp/######### for: sudo: usr/bin/mate-search-tool: command not found

======= above edited IN; below is my orig mess: SKIP it!! ========
I don't use GUI, but have a general debug idea on "does nothing" fwiw (maybe 0 )
(tho probably not related, I've head of cron things needing -full- path)
(also, usr/bin/name [no leading /] would wrongly look *in your current dir* for usr...!)

Make a similar little new test script, which 'logs' PATH into a /tmp/<nanoseconds> file:
Code:
echo $PATH > /tmp/`date +%N`
(the BACKticks execute dateNanosecs and use it as tmp filename!)
Run it like your 'problem' script (and try icon stuff on it...again, I don't know/do GUI)
ls /tmp looking for a filename like 987612345 (name is 9digits!) and cat it out.
(you can examine the pieces of my script line: echo $PATH; date +%N)
(and/or copy/paste/typein that line manually, to become familiar with what it does)

I also tried:
Code:
echo MYuserPWD|sudo -S /bin/id > /tmp/`date +%N`
and correctly got: uid=0(root) gid=0(root) groups=0(root),...
(in /tmp/012345678 file)

One more [better!] idea: when I tried [wrongly] removing the leading / on bin/id
I did get the command_not_found msg, but the resulting /tmp file was empty [as expected]. GUI might do something 'special' with error msgs; to 'catch' any errors, you could append to command: 2>&1

I assume: which mate-search-tool reports /usr/bin, and your&this script is rwxr-xr-x permissions

Best wishes always... Bye. (&SorryInAdvance: my writing ability is horrible!)

Last edited by Jjanel; 01-25-2017 at 08:58 PM.
 
Old 01-25-2017, 09:36 AM   #28
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
I do not really understand how your scripts can help me ?
 
Old 01-25-2017, 04:17 PM   #29
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
Yes, SorryInAdvance, as I said.
I'm like a 1960s DIALphone repairperson,
trying to help with a touchscreen GUIphone

I prepended a better explanation to the above.

I was trying to say: since GUI seems to discard stderr in sudo -S
a possible: sudo: usr/bin/mate-search-tool: command not found
might 'disappear' too, as does the: [sudo] password for userxxxxx:


It's always ok to skip any of my ramblings

p.s. my cellphone has a physical keyboard, no GUItouchscreen, because I can't get GUI to work

p.p.s Could anyone toss me a tech link, that explains how/?
the GUI stuff here, ?discards? stderr [?] ThanksInAdvance.
~/.xsession-errors? journald? [mate?]

Last edited by Jjanel; 01-25-2017 at 10:19 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:40 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