so I thought I'd make a clickable icon on the Desktop to make it easy for her.
the file "move_pictures" contains:
!/bin/bash,
mv ~/Desktop/*JPG ~/Desktop/Beckys_stuff/
mv ~/Desktop/*PDF ~/Desktop/Beckys_stuff/
But when I click on it I get an error messaage that pops up in a small
window that says: "There was an error launching the application"
But when I click on it I get an error messaage that pops up in a
small window that says: "There was an error launching the
application"
In comp.os.linux.misc, pH <wNOSPAMp@gmail.org> wrote:
so I thought I'd make a clickable icon on the Desktop to make it easy for
her.
the file "move_pictures" contains:
!/bin/bash,
mv ~/Desktop/*JPG ~/Desktop/Beckys_stuff/
mv ~/Desktop/*PDF ~/Desktop/Beckys_stuff/
If that's your script, one issue looks like the first line:
#!/bin/bash
Start with a # and no comma.
But when I click on it I get an error messaage that pops up in a small
window that says: "There was an error launching the application"
There may be more things wrong that are specific to how you created the launcher, but I don't know anything about Mint launchers.
Elijah
------
would probably make the script work with lowercase suffixes, too
In comp.os.linux.misc, pH <wNOSPAMp@gmail.org> wrote:
so I thought I'd make a clickable icon on the Desktop to make it easy for
her.
the file "move_pictures" contains:
!/bin/bash,
mv ~/Desktop/*JPG ~/Desktop/Beckys_stuff/
mv ~/Desktop/*PDF ~/Desktop/Beckys_stuff/
If that's your script, one issue looks like the first line:
#!/bin/bash
Start with a # and no comma.
--- Synchronet 3.22a-Linux NewsLink 1.2But when I click on it I get an error messaage that pops up in a small
window that says: "There was an error launching the application"
There may be more things wrong that are specific to how you created the launcher, but I don't know anything about Mint launchers.
Elijah
------
would probably make the script work with lowercase suffixes, too
On 8/9/26 21:01, Eli the Bearded wrote:
In comp.os.linux.misc, pH <wNOSPAMp@gmail.org> wrote:
so I thought I'd make a clickable icon on the Desktop to make it easy for >>> her.
the file "move_pictures" contains:
!/bin/bash,
mv ~/Desktop/*JPG ~/Desktop/Beckys_stuff/
mv ~/Desktop/*PDF ~/Desktop/Beckys_stuff/
If that's your script, one issue looks like the first line:
#!/bin/bash
Start with a # and no comma.
But when I click on it I get an error messaage that pops up in a small
window that says: "There was an error launching the application"
There may be more things wrong that are specific to how you created the
launcher, but I don't know anything about Mint launchers.
Elijah
------
would probably make the script work with lowercase suffixes, too
As "Beckys stuff" may be a TWO-word dir, it's important
to PUT that all in QUOTES or 'mv' will get confused.
The example shows an underscore, but is that there in
the actual script ?
Also, has it been marked as 'executable' and WHOWell, since I created it I just assumed I owned it.
owns it ??? Finally, command line, the evocation
usually requires a dot in front of everything.
The "#!/bin/bash" is kind of optional these days
because almost everyone has Bash as their main
thing anyway. SOME do install and use other shells,
but only SOME. I think I have c-shell installed
alongside Bash.
Anyway, try the exact command in terminal and if
that works then it OUGHT to run as a script.
The pics and pdf's she saves are guaranteed uppercase.
I fixed the shebang...heck, I hadn't even noticed the comma!
No luck so far but thanks for the reply.
Well, since I created it I just assumed I owned it.
I have done a "chown MYUSER move_pictures
On 2026-08-10, c186282 <c186282@nnada.net> wrote:
On 8/9/26 21:01, Eli the Bearded wrote:
In comp.os.linux.misc, pH <wNOSPAMp@gmail.org> wrote:
so I thought I'd make a clickable icon on the Desktop to make it easy for >>>> her.
the file "move_pictures" contains:
!/bin/bash,
mv ~/Desktop/*JPG ~/Desktop/Beckys_stuff/
mv ~/Desktop/*PDF ~/Desktop/Beckys_stuff/
If that's your script, one issue looks like the first line:
#!/bin/bash
Start with a # and no comma.
But when I click on it I get an error messaage that pops up in a small >>>> window that says: "There was an error launching the application"
There may be more things wrong that are specific to how you created the
launcher, but I don't know anything about Mint launchers.
Elijah
------
would probably make the script work with lowercase suffixes, too
As "Beckys stuff" may be a TWO-word dir, it's important
to PUT that all in QUOTES or 'mv' will get confused.
The example shows an underscore, but is that there in
the actual script ?
Beckys_stuff does indeed have an underscore and it is that way in the actual script.
Well, since I created it I just assumed I owned it.
Also, has it been marked as 'executable' and WHO
owns it ??? Finally, command line, the evocation
usually requires a dot in front of everything.
I have done a "chown MYUSER move_pictures
and we'll see what happens.
Can you elaborate on where I need the dot...in the launcher command field? I'll give it a try...
It works fine when I type it manually in a terminal which is why I thought it'd be a piece of cake as a script.
The "#!/bin/bash" is kind of optional these days
because almost everyone has Bash as their main
thing anyway. SOME do install and use other shells,
but only SOME. I think I have c-shell installed
alongside Bash.
Anyway, try the exact command in terminal and if
that works then it OUGHT to run as a script.
pH
-a The "#!/bin/bash" is kind of optional these days
-a because almost everyone has Bash as their main
-a thing anyway. SOME do install and use other shells,
-a but only SOME. I think I have c-shell installed
-a alongside Bash.
On 10/08/2026 06:04, pH wrote:
On 2026-08-10, c186282 <c186282@nnada.net> wrote:
On 8/9/26 21:01, Eli the Bearded wrote:
In comp.os.linux.misc, pH <wNOSPAMp@gmail.org> wrote:
so I thought I'd make a clickable icon on the Desktop to make it
easy for her. the file "move_pictures" contains: !/bin/bash, mv
~/Desktop/*JPG ~/Desktop/Beckys_stuff/ mv ~/Desktop/*PDF
~/Desktop/Beckys_stuff/
If that's your script, one issue looks like the first line:
#!/bin/bash
Start with a # and no comma.
But when I click on it I get an error messaage that pops up in a
small window that says: "There was an error launching the
application"
There may be more things wrong that are specific to how you
created the launcher, but I don't know anything about Mint
launchers.
Elijah
------
would probably make the script work with lowercase suffixes, too
As "Beckys stuff" may be a TWO-word dir, it's important
to PUT that all in QUOTES or 'mv' will get confused.
The example shows an underscore, but is that there in
the actual script ?
Beckys_stuff does indeed have an underscore and it is that way in
the actual script.
Well, since I created it I just assumed I owned it.
Also, has it been marked as 'executable' and WHO
owns it ??? Finally, command line, the evocation
usually requires a dot in front of everything.
I have done a "chown MYUSER move_pictures
and we'll see what happens.
Can you elaborate on where I need the dot...in the launcher command
field? I'll give it a try...
It works fine when I type it manually in a terminal which is why I
The "#!/bin/bash" is kind of optional these days
because almost everyone has Bash as their main
thing anyway. SOME do install and use other shells,
but only SOME. I think I have c-shell installed
alongside Bash.
Anyway, try the exact command in terminal and if
that works then it OUGHT to run as a script.
thought it'd be a piece of cake as a script.
Does it work when you yourself call it *as a script* ?
For some reason none of my desktop icons call scripts.. (Mint MATE) I
suspect because it didn't work for me either...or they needed root
perms and have C wrappers to do the setuid(0) bit...
The behaviour you describe is hauntingly familiar, but I cannot recall why...
On 2026-08-10, Eli the Bearded <*@eli.users.panix.com> wrote:
In comp.os.linux.misc, pH <wNOSPAMp@gmail.org> wrote:
so I thought I'd make a clickable icon on the Desktop to make it easy for >>> her.
the file "move_pictures" contains:
!/bin/bash,
mv ~/Desktop/*JPG ~/Desktop/Beckys_stuff/
mv ~/Desktop/*PDF ~/Desktop/Beckys_stuff/
If that's your script, one issue looks like the first line:
#!/bin/bash
Start with a # and no comma.
The pics and pdf's she saves are guaranteed uppercase.
I fixed the shebang...heck, I hadn't even noticed the comma!
No luck so far but thanks for the reply.
pH
But when I click on it I get an error messaage that pops up in a small
window that says: "There was an error launching the application"
There may be more things wrong that are specific to how you created the
launcher, but I don't know anything about Mint launchers.
Elijah
------
would probably make the script work with lowercase suffixes, too
On Mon, 10 Aug 2026 05:04:58 -0000 (UTC), pH wrote:
Well, since I created it I just assumed I owned it.
I have done a "chown MYUSER move_pictures
did you make it executable?
10.08.2026 16:12, The Natural Philosopher wrote:
The behaviour you describe is hauntingly familiar, but I cannot recall why...
On my systems (arch and debian) that behavior was observed only if:
1. Script has no executable bit set.
2. Commands in script returns anything other than 0
Probably it's #2 and I propose to change script into this:
#!/bin/bash,
mv ~/Desktop/*JPG ~/Desktop/Beckys_stuff/ || true
mv ~/Desktop/*PDF ~/Desktop/Beckys_stuff/ || true
Or even better:
#!/bin/bash,
set +e
mv ~/Desktop/*JPG ~/Desktop/Beckys_stuff/
mv ~/Desktop/*PDF ~/Desktop/Beckys_stuff/
set -e
Instead of trying to create a "Launcher" for Mint I simply put the script >into the "Desktop" directory where it shows up as an icon.
Then simply clicking on it allows it to run as I expected.
It does ask if I want to just run it or run it in a terminal, but that's a >simple thing my wife will not have a problem with.
1. Script has no executable bit set.
rCLBut itrCOs MY FILE! I created it, it belongs to me, I have full access over it! What possible rCypermissionrCO am I being denied?rCY
Answer: execute access.
10.08.2026 09:23, c186282 wrote:
-a-a The "#!/bin/bash" is kind of optional these days
-a-a because almost everyone has Bash as their main
-a-a thing anyway. SOME do install and use other shells,
-a-a but only SOME. I think I have c-shell installed
-a-a alongside Bash.
It *isn't optional* if you aren't launching it with bash like:
-a-a-a bash ./script.sh
Otherwise system won't know how to launch it.
Actually with shebang (that is how it called) you can run almost
anything in "interpretator mode" (e.g. without prior compiling).
Notable exception is Go (and there are some others):
---code start
///usr/bin/env go run "$0" "$@" ; exit
package main
import "fmt"
func main() {
-a-a-a-a-a-a-a fmt.Println("Hello, world!")
}
---code end
Kind-of shebang, but not shebang.
Anyway, shebangs are useful mostly for interpretators like shell
variations, python, perl and so on. Example above isn't really useful because Go will compile in native machine code (read: produce runnable binary file) blazingly fast.
Using Linux Mint
My wife downloads photos from her camera and leaves them in the "Desktop" directory.
I put them where they belong (from a terminal) w/
mv ~/Desktop/*JPG ~/Desktop/Beckys_stuff/
mv ~/Desktop/*PDF ~/Desktop/Beckys_stuff/
where Beckys_stuff is a directory
so I thought I'd make a clickable icon on the Desktop to make it easy for her.
the file "move_pictures" contains:
!/bin/bash,
mv ~/Desktop/*JPG ~/Desktop/Beckys_stuff/
mv ~/Desktop/*PDF ~/Desktop/Beckys_stuff/
I saved it in my 'scripts' directory and and did "chmod +x move_pictures"
I then created a new launcher on the desktop with the command field filled
in as: ~/scripts/move_pictures
But when I click on it I get an error messaage that pops up in a small
window that says: "There was an error launching the application"
Every variation I've tried (like removing the !/bin/bash shebang) has led to the same message.
What am I doing wrong?
so I thought I'd make a clickable icon on the Desktop to make it easy for her.
so I thought I'd make a clickable icon on the Desktop to make it easy for
her.
What does that mean?
Is it a .desktop file with the right content?
Am 10.08.26 um 01:32 schrieb pH:
so I thought I'd make a clickable icon on the Desktop to make it easy for
her.
What does that mean?
Is it a .desktop file with the right content?
On 2026-08-10, pH wrote:
Using Linux Mint
My wife downloads photos from her camera and leaves them in the "Desktop"
directory.
I put them where they belong (from a terminal) w/
mv ~/Desktop/*JPG ~/Desktop/Beckys_stuff/
mv ~/Desktop/*PDF ~/Desktop/Beckys_stuff/
where Beckys_stuff is a directory
so I thought I'd make a clickable icon on the Desktop to make it easy for
her.
the file "move_pictures" contains:
!/bin/bash,
mv ~/Desktop/*JPG ~/Desktop/Beckys_stuff/
mv ~/Desktop/*PDF ~/Desktop/Beckys_stuff/
I saved it in my 'scripts' directory and and did "chmod +x move_pictures"
I then created a new launcher on the desktop with the command field filled >> in as: ~/scripts/move_pictures
But when I click on it I get an error messaage that pops up in a small
window that says: "There was an error launching the application"
Every variation I've tried (like removing the !/bin/bash shebang) has led to >> the same message.
What am I doing wrong?
I did read the thread so far, but apologies if something was already mentioned and I managed to overlook it:
1) Is GNU bash installed at (or somehow reachable at) /bin/bash ?
2) Does the script work when you invoke it manually, with no launcher
involved? I don't mean the commands used, but the script itself, with
e.g. ./move_pictures.
(Oh, and: if supported by that implementation of cp, won't you want to
add -n to the options? (Or perhaps --update=none, which apparently is
what GNU cp now encourages as a (lengthy?) replacement to -n?)
To put it in another way: What is your approach to avoid overwriting
files with the same name?)
Am 10.08.26 um 01:32 schrieb pH:
so I thought I'd make a clickable icon on the Desktop to make it easy for
her.
What does that mean?
Is it a .desktop file with the right content?
A directory of Desktop (ls -a) shows no dot files besides . and ..
On 2026-08-11, Marco Moock <mm@dorfdsl.de> wrote:
Am 10.08.26 um 01:32 schrieb pH:
so I thought I'd make a clickable icon on the Desktop to make it easy for >>> her.
What does that mean?
Is it a .desktop file with the right content?
A directory of Desktop (ls -a) shows no dot files besides . and ..
Mint calls them a "launcher" and it appears as an icon on the Desktop if you are graphical.
On 2026-08-11, Marco Moock <mm@dorfdsl.de> wrote:
Am 10.08.26 um 01:32 schrieb pH:
so I thought I'd make a clickable icon on the Desktop to make it easy for >>> her.
What does that mean?
Is it a .desktop file with the right content?
A directory of Desktop (ls -a) shows no dot files besides . and ..
Mint calls them a "launcher" and it appears as an icon on the Desktop if you are graphical.
pH
On 2026-08-12, pH wrote:
On 2026-08-11, Marco Moock <mm@dorfdsl.de> wrote:
Am 10.08.26 um 01:32 schrieb pH:
so I thought I'd make a clickable icon on the Desktop to make it easy for >>>> her.
What does that mean?
Is it a .desktop file with the right content?
A directory of Desktop (ls -a) shows no dot files besides . and ..
It'd not be a dot file, but a non-dot file with a name ending on
.desktop.
Mint calls them a "launcher" and it appears as an icon on the Desktop if you >> are graphical.
If you have the failing one around, see if the content is something
short that you could share here. (IIRC these ought to be plain text?)
On 2026-08-12, pH wrote:
On 2026-08-11, Marco Moock <mm@dorfdsl.de> wrote:
Am 10.08.26 um 01:32 schrieb pH:
so I thought I'd make a clickable icon on the Desktop to make it easy for >>>> her.
What does that mean?
Is it a .desktop file with the right content?
A directory of Desktop (ls -a) shows no dot files besides . and ..
It'd not be a dot file, but a non-dot file with a name ending on
.desktop.
Mint calls them a "launcher" and it appears as an icon on the Desktop if you >> are graphical.
If you have the failing one around, see if the content is something
short that you could share here. (IIRC these ought to be plain text?)
On 12/08/2026 04:42, pH wrote:
On 2026-08-11, Marco Moock <mm@dorfdsl.de> wrote:
Am 10.08.26 um 01:32 schrieb pH:
so I thought I'd make a clickable icon on the Desktop to make it
easy for
her.
What does that mean?
Is it a .desktop file with the right content?
A directory of Desktop (ls -a) shows no dot files besides . and ..
Mint calls them a "launcher" and it appears as an icon on the Desktop
if you
are graphical.
pH
And they exist deep inside ~/.config if you move them to a panel from
the desktop
On 8/12/26 06:28, The Natural Philosopher wrote:
On 12/08/2026 04:42, pH wrote:
On 2026-08-11, Marco Moock <mm@dorfdsl.de> wrote:
Am 10.08.26 um 01:32 schrieb pH:
so I thought I'd make a clickable icon on the Desktop to make it
easy for
her.
What does that mean?
Is it a .desktop file with the right content?
A directory of Desktop (ls -a) shows no dot files besides . and ..
Mint calls them a "launcher" and it appears as an icon on the Desktop
if you
are graphical.
pH
And they exist deep inside ~/.config if you move them to a panel from
the desktop
-a There are a number of ways these work, depending
-a on distro and desktop.
On 13/08/2026 04:23, c186282 wrote:
On 8/12/26 06:28, The Natural Philosopher wrote:
On 12/08/2026 04:42, pH wrote:
On 2026-08-11, Marco Moock <mm@dorfdsl.de> wrote:
Am 10.08.26 um 01:32 schrieb pH:
so I thought I'd make a clickable icon on the Desktop to make it
easy for
her.
What does that mean?
Is it a .desktop file with the right content?
A directory of Desktop (ls -a) shows no dot files besides . and ..
Mint calls them a "launcher" and it appears as an icon on the Desktop >>> if you
are graphical.
pH
And they exist deep inside ~/.config if you move them to a panel from
the desktop
-a There are a number of ways these work, depending
-a on distro and desktop.
Yes, but we are talking about Mint MATE specifically
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 74 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 50:07:55 |
| Calls: | 1,100 |
| Files: | 1,339 |
| Messages: | 275,859 |