Bug 367582 - 19Aug16 Updates (131) Crash Desktop Icon/Scripts
Summary: 19Aug16 Updates (131) Crash Desktop Icon/Scripts
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Icon (show other bugs)
Version: 5.7.3
Platform: Neon Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-19 18:45 UTC by pmb
Modified: 2020-01-13 03:49 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
inxi folderview icon (356 bytes, application/x-desktop)
2016-08-23 13:47 UTC, pmb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pmb 2016-08-19 18:45:42 UTC
Desktop Icon script which has run perfectly for years - today after 131 file updates - problems

Clicked icon to run Bash script in Dolphin and also desktop icon - nothing - dies

open terminal from Dolphin - ls directory - highlight "_UpDate_et_al" - copy - paste into terminal - run "sudo _UpDate_et_al" - Result
"_UpDate_et_al: command not found" - executable checked - permissions have not changed - all OK

Run sudo ./_UpDate_et_al - Result
[sudo] password for ???: 
./_UpDate_et_al: 1: ./_UpDate_et_al: [Desktop: not found
./_UpDate_et_al: 2: ./_UpDate_et_al: Comment[en_GB]=: not found
Update:
. . .
Bash script runs
. . .
./_UpDate_et_al: 5: ./_UpDate_et_al: GenericName[en_GB]=: not found
./_UpDate_et_al: 9: ./_UpDate_et_al: Name[en_GB]=: not found
./_UpDate_et_al: 16: ./_UpDate_et_al: X-DBUS-ServiceName=: not found
./_UpDate_et_al: 17: ./_UpDate_et_al: X-DBUS-StartupType=: not found
./_UpDate_et_al: 18: ./_UpDate_et_al: X-KDE-SubstituteUID=false: not found
./_UpDate_et_al: 19: ./_UpDate_et_al: X-KDE-Username=root: not found

tried another Desktop icon Bash script - copy from ls - paste in terminal

???@???:~/Desktop//???$ "Clean Up"
Clean Up: command not found
???@???:~/Desktop//???$ ./"Clean Up"
./Clean Up: line 1: [Desktop: command not found
./Clean Up: line 12: Up: command not found
./Clean Up: line 13: Up: command not found
./Clean Up: line 14: Up: command not found
./Clean Up: line 23: X-DBUS-ServiceName=: command not found
./Clean Up: line 24: X-DBUS-StartupType=none: command not found
./Clean Up: line 25: X-DCOP-ServiceType=: command not found
./Clean Up: line 26: X-KDE-SubstituteUID=false: command not found
./Clean Up: line 27: X-KDE-Username=: command not found

renamed "Clean Up" as Clean_Up and then CleanUp - identical results

Was running good yesterday - used _UpDate_et_al to download 131 updates today - few minutes later Discover advises one more update - tried to run same icon script could not.

Tried a few icons in gui - inxi runs OK


Reproducible: Always

Steps to Reproduce:
1. run desktop icon holding Bash script
2. will not run
3.

Actual Results:  
Crash info in terminal

Expected Results:  
Bash script should run like it has for years

I apologise if this is in the wrong pigeon hole - about my pay grade - please forward this report to the correct department.

The crash is for the icons that crash - plasma itself appears to work as before - if that sounds OK

If you need anything else - please contact me

Hope this helps
Comment 1 pmb 2016-08-20 00:46:42 UTC
A correction . . .

It seems that none of my icons pointing to a script or using a terminal work.

I click - they die!

I tried recreating the offending icons but they do not work.
Comment 2 pmb 2016-08-22 16:39:56 UTC
Haven't heard anything so I gave up and installed a clonezilla backup from 14Aug16. One week before the issues raised by this bug report.

I tried the offending icons and ALL opened properly, opening in a terminal and running the script.

I hoped that my problems were a one time thing so I did a full-upgrade of 313 packages.

Guess what?

The problem now exists again.

Somewhere in those packages is something screwing up my desktop.

I have tried moving an icon to another computer - it works
I have tried moving an icon to another user on the same machine - does not work
I reinstalled the plasma-desktop-* packages - no effect

Unless someone at your end can solve my problems then a complete reinstall is the only solution.

Please help?

Thank You
Comment 3 David Edmundson 2016-08-23 12:57:20 UTC
Can you upload an example of this desktop icon that crashes please.
Comment 4 pmb 2016-08-23 13:47:59 UTC
Created attachment 100729 [details]
inxi folderview icon

I removed the path and substituted an ellipsis.

Hope this helps

Thank You
Comment 5 pmb 2016-08-23 13:54:37 UTC
This icon is one of many that do not function properly.

It appears to be a problem with a desktop icon that opens a terminal. The script itself runs perfectly when run directly with ./ in front. Without that ./ I get command not found even with executable mode set. It could be a Konsole problem.

I heard nothing earlier so I reinstalled 5.7.3. There were 500+ updates. Before the updates, the icons worked perfectly. After the problems started. I have tried at my pay grade to diagnose the problem but it is somewhere in the back end and far above my knowledge level.

Hope this helps

Thank You
Comment 6 pmb 2016-08-23 16:36:59 UTC
Sorry to bother you again but I have a printout that is unusual from this issue.

I have a Bash script that is named UpDateAll. It updates and downloads and cleans up. It has run perfectly for years and years. Now it doesn't. The executable checkbox is marked but it will not run by itself. I must put ./ in front.

Then it runs strangely!

It seems to open the icon as a text file with the click or Enter and when it gets to the script itself it runs the Bash Script and continues after the script treating the icon as a text document.

The following shows the results.

???@TheMacHine:~/Desktop/???$ sudo ./UpDateAll
[sudo] password for???: 
./UpDateAll: 1: ./UpDateAll: [Desktop: not found
./UpDateAll: 2: ./UpDateAll: Comment[en_GB]=: not found
Update:
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Hit:2 http://archive.canonical.com/ubuntu xenial InRelease                                                              
Get:3 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu xenial InRelease [23.8 kB]
Hit:4 http://ca.archive.ubuntu.com/ubuntu xenial InRelease                           
Get:5 http://ca.archive.ubuntu.com/ubuntu xenial-updates InRelease [95.7 kB]         
Hit:6 http://ppa.launchpad.net/byobu/ppa/ubuntu xenial InRelease                     
Ign:3 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu xenial InRelease         
Hit:7 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu xenial InRelease           
Hit:8 http://ppa.launchpad.net/mc3man/avidemux1/ubuntu xenial InRelease              
Hit:9 http://ca.archive.ubuntu.com/ubuntu xenial-backports InRelease     
Hit:10 http://ppa.launchpad.net/numix/ppa/ubuntu xenial InRelease
Hit:11 http://archive.neon.kde.org/user xenial InRelease
Fetched 214 kB in 5s (41.6 kB/s)                        
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2836CB0A8AC93F7A
W: The repository 'http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu xenial InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Upgrade:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Auto-remove:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Clean:
Auto-clean:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
No kernels are eligible for removal

     Finished now . . .

./UpDateAll: 5: ./UpDateAll: GenericName[en_GB]=: not found
./UpDateAll: 9: ./UpDateAll: Name[en_GB]=UpDate: not found
./UpDateAll: 10: ./UpDateAll: All: not found
./UpDateAll: 16: ./UpDateAll: X-DBUS-ServiceName=: not found
./UpDateAll: 17: ./UpDateAll: X-DBUS-StartupType=wait: not found
./UpDateAll: 18: ./UpDateAll: X-KDE-SubstituteUID=false: not found
./UpDateAll: 19: ./UpDateAll: X-KDE-Username=root: not found

Hope this helps. This mess continued from a previous install to a new formatted install.

Hope this helps

Thank You
Comment 7 MaxiPunkt 2017-01-03 22:00:09 UTC
Hi there,

I've noticed similar issue on Fedora-23 & Fedora-25:

Found out that starting a bash-script via desktop-file as ordinary user is just fine.

But same attempt in combination with UID-substitution functionality (the bash-script shall be run as user "root") the execution of bash-script fails.

UID-substitution is defined directly inside the desktop-file (or within KDE-properties of the icon). Like this one is asked to authenticate (password) and the script will executed then.
This worked for me for years (in particular I run a backup-script as "root"), now this is broken for a while already.


Content of example bash-script:
-------------------------------
#!/bin/bash
echo -n "I am: "
whoami


Content of example desktop-file:
--------------------------------
[Desktop Entry]
Comment=A simple script for test proposes
Exec=/path/to/above/script/test.sh
GenericName=Bash script
Icon=application-x-shellscript
MimeType=
Name=My-Terminal-Script
Path=
StartupNotify=false
Terminal=true
TerminalOptions=\s--noclose
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=none
#X-KDE-SubstituteUID=true
#X-KDE-Username=root


Check running the script by clicking the icon - works fine.
Uncomment the last 2 lines (enables UID-substitution) - will fail.


If my bug should not be related to the reported one please let me know.
Comment 8 pmb 2017-01-05 02:34:52 UTC
MaxiPunkt Thank You for the reply. It is appreciated.

Your issues are close to mine but 'different'. I tried inserting the user in a terminal via ~/.profile but nothing is amiss. Whenever a bash script uses the konsole it fails. I put in a bug report to Konsole but was told it's not their problem!

That is not the least of my problems now. LM KDE updated 5.8.4 to 5.8.5 and now I have more screwed up issues.

When I right click on a desktop folder and open it, the cursor closes the new window immediately upon entry. Totally screwed up!

Me thinks it is time to move . . .
Comment 9 pmb 2017-01-05 02:36:06 UTC
Sorry about this. I forgot something.

I put in a UbuntuOne bug report on the new 'feature' in 5.8.5.
Comment 10 Nate Graham 2020-01-13 03:49:25 UTC
No crash anymore with the latest Plasma. Looks like this got fixed.