Re: Need help with shell script.

pH <[email protected]>
Newsgroups comp.os.linux.misc
Organization A noiseless patient Spider
Message-ID <[email protected]>
On 2026-08-10, pH <[email protected]> wrote:
> On 2026-08-10, Eli the Bearded <*@eli.users.panix.com> wrote:
>> In comp.os.linux.misc, pH  <[email protected]> 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

Well I have success now.

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.

Thanks for all the suggestions.

pH
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.