[Bug 258507] New: Error in one autostart script causes others to not run

Daniel Hahler kde-bugzilla at thequod.de
Wed Dec 1 18:17:07 GMT 2010


https://bugs.kde.org/show_bug.cgi?id=258507

           Summary: Error in one autostart script causes others to not run
           Product: kde
           Version: unspecified
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: unassigned-bugs at kde.org
        ReportedBy: kde-bugzilla at thequod.de


Version:           unspecified (using KDE 4.5.3) 
OS:                Linux

I had a ~/.kde/env/start-custom.sh file which accidentally had the following
first line, causing a "bad interpreter" error when trying to run it:
#!~ /bin/sh

This apparently caused another startup script (~/.kde/Autostart/foobar.sh) not
to get run at all.


The following code appears to be used to source the env scripts in
/usr/bin/startkde, but I cannot see how that would cause it to abort here
(given that there is no "set -e" used):

    libpath=`kde4-config --path lib | tr : '\n'`

    for prefix in `echo "$libpath" | sed -n -e 's,/lib[^/]*/,/env/,p'`; do
      for file in "$prefix"*.sh; do
        test -r "$file" && . "$file"
      done
    done


Reproducible: Always

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list