Can't run shell scripts with double click

What’s rude about that?

Firstly, the output from zypper patch says it is about to install security patches (when they’re available) as well as available package updates. Zypper up only says its about to install the package updates, not the security patches.

Again, there is nothing special about the “security patches”, they are updates like any others (but they contain more information) and will be installed by “zypper up” anyway.

>One could say you have a problem then
>Not really

It was a comparison because I knew it sounded strange, I really don’t appreciate your tone. There’s no need to be bitter and try insult me simply because you know something I don’t and quite frankly if that’s how moderators act I may have made a mistake in joining this forum.

I think you missed the smiley.

Still, IMHO checking whether the door is really locked after you locked it is not the same as running “zypper patch” followed by “zypper up” and then YaST->Online Update…

Trying to poke fun at a newcomer is not funny or clever.

Sorry.
But I think you’re overreacting a bit, no?

I offered you a third “solution” as well, that you apparently didn’t notice yet, and wanted to point you to it again because I think that’s exactly what you are looking for.

So again, two ways to run a script in KDE:

  • right-click on the shell script and select Actions->Run in Konsole
  • Set “konsole --hold -e %f” as command to open shell scripts in “Configure Desktop”->File Associations.

CyberShrek, the --noclose flag should prevent the konsole from closing automatically. I am at work now, so am sitting at a windows pc, so therefore I do not have the ability to test out the flags. It sounds as though you are readily available at your linux box, maybe try “man konsole” (without the quotes) to see what the proper flag for noclose is.

As for your statement to the other poster about being rude, I don’t post on here alot, I do read quite a bit on here though, and I can honestly say that in the years that I have been reading these forums I don’t think I have ever “read” a rude person on here. There are times when posters get frustrated, but I think rude is a bit of a stretch.

I have found that in general, posters here are extremely helpful and friendly (take a look at the chit-chat forums, people share personal experiences). Plus, you must keep in mind, this is mostly just your average joes on here attempting to help each other. This is not (as I understand it) a technical support corporation.

Relax, be patient, help almost always comes.

By the way, if you would rather read the konsole manual in a more “friendly” environment: run Konqueror, in the address bar type # konsole, this will display the konsole manual in a more manageable format for reading.

@wolfi

I don’t think a smiley helps you in any way. You still sound very rude. You don’t have to agree with the comparison I made, you just need to be a nicer person. Yes I am reacting quite theatrically and being quite defensive, but that’s a response to your condescending tone on a support forum and attempts to poke fun at me.

Either way I’m here to talk about technology and request technical help, so I’m more than happy to go with the assumption that I misread your posts and you’re actually a nice person if it means we can drop this secondary discussion. Although I’d like to gently suggest you think about how a post could come across in text before posting them, I often find certain things come across very differently when you can’t convey tone and it has to be inferred. For example, your habit of putting emphasis on certain words where it isn’t needed comes across as condescending.

If zypper up also installs the security patches, why doesn’t it tell me it’s going to like it does with the package updates in the same way zypper patch does? And why does zypper have the two different commands if they do the exact same thing?

@almcneill

It should indeed but that’s not what happened. I copy/pasted your code right into the file and ran it. I wonder why it didn’t work.

Not sure, I will be back home in about 3 hours from work, I can play with it then and hopefully provide an answer. Maybe in the meantime someone else will have the correct answer, if not I will post as soon as I figure it out.

Wolfi actually already posted a method of running the original script with a double-click. It’s interesting that the --noclose flag didn’t work though so I’d be interested to hear what you find after, as you say, playing with it when you get home.

The smiley was intended to indicate that this is not meant seriously and shouldn’t be taken as an offense.

You still sound very rude. You don’t have to agree with the comparison I made, you just need to be a nicer person. Yes I am reacting quite theatrically and being quite defensive, but that’s a response to your condescending tone on a support forum and attempts to poke fun at me.

Maybe I wrote too much in a too short time? Maybe I’m tired? Maybe english is not my native language? Maybe…

Anyway, sorry if you feel that way.
It was not my intention to insult you or make fun of you.

For example, your habit of putting emphasis on certain words where it isn’t needed comes across as condescending.

I don’t understand that.
I put emphasis on those words, because I don’t want them to be misread. I think they are particularly important. Or I want to stress them, e.g. I want to point out exactly what’s the point of a question.
What’s condescending about that?

And english is not my native language either… Can be a reason why sometimes a post doesn’t come across exactly how I meant it.

If zypper up also installs the security patches, why doesn’t it tell me it’s going to like it does with the package updates in the same way zypper patch does?

Why should it?
It tells you what package updates it installs. And those include your “security patches”, which are just package updates in the end as I already wrote.

And why does zypper have the two different commands if they do the exact same thing?

They don’t do the exact same things, and I never wrote that.
“zypper patch” only installs the “security patches” from the official update repo.
“zypper up” installs updated packages from all repos.

–noclose should work, just like --hold (they are equivalent), and it does here.
But “–noclose” has to be specified before the ‘-e’:

konsole  --noclose -e sudo zypper patch && sudo zypper up && fortune

Nice catch wolfi.

It doesn’t only install security patches though. When I ran zypper patch, the output said it was going to install several security patches and all the package updates that zypper up said it was going to install.

I think that would make sense if the only available updates were from the official update repo, but it explicitly separated patch updates from package updates and referred to each of them as such.

Is what you mean to say “zypper patch only install package updates and security patches from the official update repo” or am I still misunderstanding? I wish I could show you the output it gave for clarity but I went and installed them already.

EDIT:
never mind, I found my answer in another thread :slight_smile:

I suspect it installed at the same packages as zypper up would have at the time simply because they only updates available were from the official repo however I’m still curious as to why zypper up’s “the following will be installed” message doesn’t list the security patches like zypper patch does if it installs them.

CyberShrek,

Just as confirmation of wolfi’s catch to my coding error, his solution is correct. I tested this and it worked.


#!/bin/bash
konsole  --noclose -e sudo zypper patch && sudo zypper up && fortune

Hope this does what you want! If it worked, please click the star at the bottom of my post, would be much appreciated.

As I already wrote, a “security patch” is just a package update in the end, coming from the official update repo.

“zypper patch” shows the “security patch” that provides information to what is fixed e.g., but then only installs that package update, it doesn’t really install any “security patch”. And “zypper up” installs that package update as well.

An explicit “security patch” doesn’t exist, it’s just a concept. It’s some meta information in the repo which states which packages belong to that update, what bugs have been fixed and for what packages and package versions this should be considered a “security patch”.