Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. /etc/profile.d/qt5.sh: line 2: pathappend: command not found : As a result the session will not be configured correctly,you should fix this problem as soon as feasible.
Forum Updated to NodeBB v4.3 + New Features

/etc/profile.d/qt5.sh: line 2: pathappend: command not found : As a result the session will not be configured correctly,you should fix this problem as soon as feasible.

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mariozio
    wrote on last edited by
    #1

    Hello.

    I recently attempted to install kde plasma on ubuntu 20.10 64 bit. Then I have tried to remove it,but it seems that it is still there and it works almost good,except for the error that I get as soon as Ubuntu and kde are loaded :

    Error found when loading /etc/profile:

    /etc/profile.d/qt5.sh: line 2: pathappend: command not found
    /etc/profile.d/qt5.sh: line 3: pathappend: command not found

    As a result the session will not be configured correctly,you should fix this problem as soon as feasible.

    this is my /etc/profile.d/qt5.sh

    QT5DIR=/opt/Qt/5.15.1
    pathappend $QT5DIR/bin PATH
    pathappend $QT5DIR/lib/pkgconfig PKG_CONFIG_PATH
    export QT5DIR

    Can anyone point me in the right direction of resolving this issue. I just need my desktop working properly.
    Thanks in advance.

    JonBJ 1 Reply Last reply
    0
    • M mariozio

      Hello.

      I recently attempted to install kde plasma on ubuntu 20.10 64 bit. Then I have tried to remove it,but it seems that it is still there and it works almost good,except for the error that I get as soon as Ubuntu and kde are loaded :

      Error found when loading /etc/profile:

      /etc/profile.d/qt5.sh: line 2: pathappend: command not found
      /etc/profile.d/qt5.sh: line 3: pathappend: command not found

      As a result the session will not be configured correctly,you should fix this problem as soon as feasible.

      this is my /etc/profile.d/qt5.sh

      QT5DIR=/opt/Qt/5.15.1
      pathappend $QT5DIR/bin PATH
      pathappend $QT5DIR/lib/pkgconfig PKG_CONFIG_PATH
      export QT5DIR

      Can anyone point me in the right direction of resolving this issue. I just need my desktop working properly.
      Thanks in advance.

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by
      #2

      @mariozio

      • pathappend is not a Linux command, it's sometimes defined as a bash function via some .sh files. For whatever reason, looks like you don't have such a definition.

      • If you say you have uninstalled Qt/KDE, and don't want it, then (presumably) you don't want to be executing any /etc/profile.d/qt5.sh anyway? Then you won't get the error.

      On my Ubuntu 20.04, Qt installation that comes with OS via apt-get, never installed any KDE anything, I do not have any qt5.sh file anywhere.

      So, unless you get a better answer from someone else here, I would just delete the file.... (You can keep a copy, but not inside /etc/profile.d, to be safe!)

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mariozio
        wrote on last edited by
        #3

        at the beginning I wanted to remove kde and I tried to do that,with apt-get purge kde or something like that. But it didn't work. when I rebooted kde was still there and I kept it,together with the error. Now I want to use kde,but without getting the error. If I remove the file qt5.sh,will i still be able to use kde ?

        JonBJ 1 Reply Last reply
        0
        • M mariozio

          at the beginning I wanted to remove kde and I tried to do that,with apt-get purge kde or something like that. But it didn't work. when I rebooted kde was still there and I kept it,together with the error. Now I want to use kde,but without getting the error. If I remove the file qt5.sh,will i still be able to use kde ?

          JonBJ Online
          JonBJ Online
          JonB
          wrote on last edited by JonB
          #4

          @mariozio said in /etc/profile.d/qt5.sh: line 2: pathappend: command not found : As a result the session will not be configured correctly,you should fix this problem as soon as feasible.:

          If I remove the file qt5.sh,will i still be able to use kde ?

          I have no idea. Which is why I said: move (or copy-delete) it elsewhere in the filing system, and see...?

          If you did apt-get purge the KDE, even if "when I rebooted kde was still there" it may not be in a good state to use.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mariozio
            wrote on last edited by
            #5

            thanks. I have removed the append lines and the error is gone. And kde still works. thanks.

            Pablo J. RoginaP 1 Reply Last reply
            0
            • M mariozio

              thanks. I have removed the append lines and the error is gone. And kde still works. thanks.

              Pablo J. RoginaP Offline
              Pablo J. RoginaP Offline
              Pablo J. Rogina
              wrote on last edited by
              #6

              @mariozio said in /etc/profile.d/qt5.sh: line 2: pathappend: command not found : As a result the session will not be configured correctly,you should fix this problem as soon as feasible.:

              the error is gone. And kde still works

              If your issue is solved, please mark this post as such! Thanks.

              Upvote the answer(s) that helped you solve the issue
              Use "Topic Tools" button to mark your post as Solved
              Add screenshots via postimage.org
              Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved