Announcement

Collapse
No announcement yet.

Dolphin trash can not working correctly

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Dolphin trash can not working correctly

    Somewhere along the line the trash can in dolphin stopped working correctly and I can not empty trash through dolphin. The empty icon / text is grayed out and can't be clicked.

    I can add the trash can widget to the desktop and that will empty the trash. If I am working in Dolphin I don' want to go to the desktop to empty the trash.

    Any ideas on how to get it back working?

    In /home/myname/.local/share/Trash/info/.directory has this -

    Code:
    [Dolphin]
    Timestamp=2015,5,14,10,24,7
    
    [Settings]
    HiddenFilesShown=true

    #2
    Sounds to me like your Trash directory isn't owned by you any more.

    Open a console and type: ls -la | grep .Trash
    You should see something like this:

    drwx------ 4 paul paul 4096 Sep 1 2013 .Trash-1000

    If instead you see:

    drwx------ 4 root root 4096 Sep 1 2013 .Trash-1000

    Ownership needs to be changed. Type: sudo chown -R $USER:$USER .Trash-1000
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Did this
      j@urdrwho:~$ ls -la | grep .Trash

      Got this
      j@urdrwho:~$

      Should I still use this command? I assume that I replace $user with my name?

      sudo chown -R $USER:$USER .Trash-1000




      Originally posted by Snowhog View Post
      Sounds to me like your Trash directory isn't owned by you any more.

      Open a console and type: ls -la | grep .Trash
      You should see something like this:

      drwx------ 4 paul paul 4096 Sep 1 2013 .Trash-1000

      If instead you see:

      drwx------ 4 root root 4096 Sep 1 2013 .Trash-1000

      Ownership needs to be changed. Type: sudo chown -R $USER:$USER .Trash-1000

      Comment


        #4
        Okay, in the console just type: ls -la
        Is there a directory that starts with .Trash
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          No there is not. This is what I have in anything starting with the letter T

          Code:
          drwxr-xr-x  2 john john   4096 Apr 21 07:44 Templates
          drwx------  4 john john   4096 Apr 21 13:30 .thumbnails
          drwxrwxr-x  4 john john   4096 May  1 08:23 .thunderbird
          drwxr-xr-x  2 john john   4096 Apr 21 07:44 Videos
          I have a trash but it is located here and it isn't a hidden folder in itself but the .local is a hidden directory -

          /home/john/.local/share/Trash/


          Originally posted by Snowhog View Post
          Okay, in the console just type: ls -la
          Is there a directory that starts with .Trash
          Last edited by urdrwho5; May 14, 2015, 04:46 PM.

          Comment


            #6
            ya I dont have a ~/.trash or .Trash either and my trash is located as yours in /home/vinny/.local/share/Trash/ ,,,,but it works as expected in Dolphin-15.04.0 KDE-Plasma-ver-5.3.0

            VINNY
            i7 4core HT 8MB L3 2.9GHz
            16GB RAM
            Nvidia GTX 860M 4GB RAM 1152 cuda cores

            Comment


              #7
              Originally posted by urdrwho5 View Post
              No there is not.

              I have a trash but it is located here and it isn't a hidden folder in itself but the .local is a hidden directory -

              /home/john/.local/share/Trash/
              Then from the console type: sudo chown -R $USER:$USER .local/share/Trash
              Windows no longer obstructs my view.
              Using Kubuntu Linux since March 23, 2007.
              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

              Comment


                #8
                the command didn't change anything.

                So I entered Dolphin as Sudo

                sudo dolphin

                Then I went to the trash and Empty Trash was illuminated. So apparently i don't have any rights to the empty trash folder unless I am sudo.


                Originally posted by Snowhog View Post
                Then from the console type: sudo chown -R $USER:$USER .local/share/Trash

                Comment


                  #9
                  Using the command here is what I get ---

                  Code:
                  ohn@urdrwho:~$ ls -Rla | grep .Trash
                  drwxrwxrwx 4 john john 4096 May 14 12:30 Trash
                  ./.local/share/Trash:
                  ./.local/share/Trash/files:
                  ./.local/share/Trash/files/5t40gxg2.default:
                  ./.local/share/Trash/files/5t40gxg2.default/cache2:
                  ./.local/share/Trash/files/5t40gxg2.default/cache2/doomed:
                  ./.local/share/Trash/files/5t40gxg2.default/cache2/entries:
                  ./.local/share/Trash/files/5t40gxg2.default/safebrowsing:
                  ./.local/share/Trash/files/5t40gxg2.default/startupCache:
                  ./.local/share/Trash/info:
                  -rw-r--r-- 1 john john 68954892 Apr 22 14:13 Trash
                  -rw-r--r-- 1 john john   839018 Mar 31 19:18 Trash.msf
                  -rw-r--r-- 1 john john 131170 Aug 28  2014 Trash
                  -rw-r--r-- 1 john john  13112 Feb 13 01:42 Trash.msf
                  john@urdrwho:~$

                  Originally posted by Teunis
                  Then there is still the strong possibility the ownership is wrong.

                  Try the command including -R for recursive searching and it will show up:
                  Code:
                  [COLOR=#000000]ls -Rla | grep .Trash[/COLOR]
                  Check against snowhog's original post.

                  Btw, never open a desktop application with sudo, use kdesudo in stead.

                  Comment


                    #10
                    Originally posted by Teunis
                    That's weird, it reports as a file (-rw-) not as a directory (drw-) and it is missing it's executable bit (dwrx).
                    Nope. The top line of the output is the correct trash folder:
                    drwxrwxrwx 4 john john 4096 May 14 12:30 Trash

                    These are something else (possibly related to thunderbird's trash folder):
                    -rw-r--r-- 1 john john 68954892 Apr 22 14:13 Trash
                    -rw-r--r-- 1 john john 839018 Mar 31 19:18 Trash.msf
                    -rw-r--r-- 1 john john 131170 Aug 28 2014 Trash
                    -rw-r--r-- 1 john john 13112 Feb 13 01:42 Trash.msf


                    The command:
                    ls -Rla | grep .Trash
                    Is a tad ambiguous, you'll get more meaningful results with:
                    ls -Rla ~/.local/share/Trash
                    (quicker too, since it won't parse through the whole filesystem, just the part we're interested in)

                    Originally posted by urdrwho5 View Post
                    sudo dolphin
                    Yep, don't do that. Using "plain" sudo with GUI apps is just the sort of thing that will mess up ownerships in your $HOME. Use "kdesudo dolphin" ("sudo -H dolphin" will also do if you prefer)
                    If you've been using sudo with GUI apps, you should make sure everything in your $HOME is owned by you, you can do that by running:
                    sudo chown -R $USER:$USER $HOME
                    (otherwise you may run into other issues, which can be hard to track down)
                    Last edited by kubicle; May 15, 2015, 04:39 AM.

                    Comment


                      #11
                      Maybe I should re-install dolphin?

                      Re-installed and it is working again.
                      Last edited by urdrwho5; May 15, 2015, 05:12 AM. Reason: Problem solved

                      Comment

                      Working...
                      X