I accidentally used xkill on my desktop - how can I get it back?











up vote
9
down vote

favorite
1












I ran xkill to force quit Chrome, and I clicked my desktop. The icons disappeared.



Is there a command that will get them back? I'd rather not restart.



I'm using GNOME and GDM.










share|improve this question




























    up vote
    9
    down vote

    favorite
    1












    I ran xkill to force quit Chrome, and I clicked my desktop. The icons disappeared.



    Is there a command that will get them back? I'd rather not restart.



    I'm using GNOME and GDM.










    share|improve this question


























      up vote
      9
      down vote

      favorite
      1









      up vote
      9
      down vote

      favorite
      1






      1





      I ran xkill to force quit Chrome, and I clicked my desktop. The icons disappeared.



      Is there a command that will get them back? I'd rather not restart.



      I'm using GNOME and GDM.










      share|improve this question















      I ran xkill to force quit Chrome, and I clicked my desktop. The icons disappeared.



      Is there a command that will get them back? I'd rather not restart.



      I'm using GNOME and GDM.







      command-line icons xkill






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 5 '15 at 19:50

























      asked Dec 5 '15 at 19:27









      Tim

      19.5k1483138




      19.5k1483138






















          4 Answers
          4






          active

          oldest

          votes

















          up vote
          11
          down vote



          accepted










          The desktop icons are managed by file browser, on regular running try



          $ ps ax | grep nautilus
          2464 ? Sl 0:11 nautilus -n
          6390 pts/2 S+ 0:00 grep --color=auto nautilus


          From man nautilus



             -n
          --no-default-window
          Only create windows for explicitly specified URIs.


          In this mode nautilus will not show a window, and it run like a daemon. So for you case use:



          nautilus -n & disown





          share|improve this answer



















          • 1




            In Unity instead of Gnome Desktop, it also works without the -n flag and opening a normal Nautilus window just starts the separate daemon in background as well.
            – Byte Commander
            Dec 8 '15 at 12:50


















          up vote
          9
          down vote













          It turns out this can be fixed with Gnome Tweak Tool.



          Using xkill on the desktop sometimes turns off the "Icons on Desktop" setting:



          Turning this back on fixed it:





          If the setting is not turned off, then just turning it off and on again brings them back.






          share|improve this answer























          • Wut ? xkill toggles show icons settings ? That's quite weird. Desktop should be managed by file browser not gsettings . . . Or maybe Gnome is just werid
            – Sergiy Kolodyazhnyy
            Dec 5 '15 at 19:40










          • @Serg I guess it's weird :p
            – Tim
            Dec 5 '15 at 19:40






          • 1




            @Serg, this should work too, as all it does it stops nautilus -n which is running in the background when off, and launch it if is on. this handled by gnome-settings-daemon or unity-settings-daemon.
            – user.dz
            Dec 5 '15 at 20:42


















          up vote
          2
          down vote













          All you have to do is open Nautilus and all will be back.






          share|improve this answer



















          • 1




            That does not work.
            – Tim
            Dec 5 '15 at 20:54






          • 1




            I don't know how this is on Gnome, but simply launching Nautilus from the launcher or nautilus & disown from the terminal solves this problem perfectly well on Unity! @Sneetsher and @Tim
            – Byte Commander
            Dec 8 '15 at 12:49










          • @ByteCommander , Excuse me Doug you deserve my up vote. I judged your answer on my own experience using an older release, However I confirm that your answer work as supposed on Ubuntu 15.10 for both Unity & Gnome Shell. Thank you ByteCommander for correcting me.
            – user.dz
            Dec 9 '15 at 0:24












          • @Tim , Could you please review this because it seems to depend on the release. If you can mention here in a comment in which release did not work for you. It will be helpful for other users as the question is not for specific release, I think it does not deserve a down vote at least .
            – user.dz
            Dec 9 '15 at 0:34












          • @sne the question says gnome, do you mean version?
            – Tim
            Dec 9 '15 at 9:53


















          up vote
          0
          down vote













          The previous answers did not work for me, but this command does for Kubuntu 18.04



          kstart plasmashell


          I hope this could helps others!






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f706343%2fi-accidentally-used-xkill-on-my-desktop-how-can-i-get-it-back%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            4 Answers
            4






            active

            oldest

            votes








            4 Answers
            4






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            11
            down vote



            accepted










            The desktop icons are managed by file browser, on regular running try



            $ ps ax | grep nautilus
            2464 ? Sl 0:11 nautilus -n
            6390 pts/2 S+ 0:00 grep --color=auto nautilus


            From man nautilus



               -n
            --no-default-window
            Only create windows for explicitly specified URIs.


            In this mode nautilus will not show a window, and it run like a daemon. So for you case use:



            nautilus -n & disown





            share|improve this answer



















            • 1




              In Unity instead of Gnome Desktop, it also works without the -n flag and opening a normal Nautilus window just starts the separate daemon in background as well.
              – Byte Commander
              Dec 8 '15 at 12:50















            up vote
            11
            down vote



            accepted










            The desktop icons are managed by file browser, on regular running try



            $ ps ax | grep nautilus
            2464 ? Sl 0:11 nautilus -n
            6390 pts/2 S+ 0:00 grep --color=auto nautilus


            From man nautilus



               -n
            --no-default-window
            Only create windows for explicitly specified URIs.


            In this mode nautilus will not show a window, and it run like a daemon. So for you case use:



            nautilus -n & disown





            share|improve this answer



















            • 1




              In Unity instead of Gnome Desktop, it also works without the -n flag and opening a normal Nautilus window just starts the separate daemon in background as well.
              – Byte Commander
              Dec 8 '15 at 12:50













            up vote
            11
            down vote



            accepted







            up vote
            11
            down vote



            accepted






            The desktop icons are managed by file browser, on regular running try



            $ ps ax | grep nautilus
            2464 ? Sl 0:11 nautilus -n
            6390 pts/2 S+ 0:00 grep --color=auto nautilus


            From man nautilus



               -n
            --no-default-window
            Only create windows for explicitly specified URIs.


            In this mode nautilus will not show a window, and it run like a daemon. So for you case use:



            nautilus -n & disown





            share|improve this answer














            The desktop icons are managed by file browser, on regular running try



            $ ps ax | grep nautilus
            2464 ? Sl 0:11 nautilus -n
            6390 pts/2 S+ 0:00 grep --color=auto nautilus


            From man nautilus



               -n
            --no-default-window
            Only create windows for explicitly specified URIs.


            In this mode nautilus will not show a window, and it run like a daemon. So for you case use:



            nautilus -n & disown






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Dec 5 '15 at 20:55









            kos

            25.1k869117




            25.1k869117










            answered Dec 5 '15 at 20:38









            user.dz

            34.3k1190175




            34.3k1190175








            • 1




              In Unity instead of Gnome Desktop, it also works without the -n flag and opening a normal Nautilus window just starts the separate daemon in background as well.
              – Byte Commander
              Dec 8 '15 at 12:50














            • 1




              In Unity instead of Gnome Desktop, it also works without the -n flag and opening a normal Nautilus window just starts the separate daemon in background as well.
              – Byte Commander
              Dec 8 '15 at 12:50








            1




            1




            In Unity instead of Gnome Desktop, it also works without the -n flag and opening a normal Nautilus window just starts the separate daemon in background as well.
            – Byte Commander
            Dec 8 '15 at 12:50




            In Unity instead of Gnome Desktop, it also works without the -n flag and opening a normal Nautilus window just starts the separate daemon in background as well.
            – Byte Commander
            Dec 8 '15 at 12:50












            up vote
            9
            down vote













            It turns out this can be fixed with Gnome Tweak Tool.



            Using xkill on the desktop sometimes turns off the "Icons on Desktop" setting:



            Turning this back on fixed it:





            If the setting is not turned off, then just turning it off and on again brings them back.






            share|improve this answer























            • Wut ? xkill toggles show icons settings ? That's quite weird. Desktop should be managed by file browser not gsettings . . . Or maybe Gnome is just werid
              – Sergiy Kolodyazhnyy
              Dec 5 '15 at 19:40










            • @Serg I guess it's weird :p
              – Tim
              Dec 5 '15 at 19:40






            • 1




              @Serg, this should work too, as all it does it stops nautilus -n which is running in the background when off, and launch it if is on. this handled by gnome-settings-daemon or unity-settings-daemon.
              – user.dz
              Dec 5 '15 at 20:42















            up vote
            9
            down vote













            It turns out this can be fixed with Gnome Tweak Tool.



            Using xkill on the desktop sometimes turns off the "Icons on Desktop" setting:



            Turning this back on fixed it:





            If the setting is not turned off, then just turning it off and on again brings them back.






            share|improve this answer























            • Wut ? xkill toggles show icons settings ? That's quite weird. Desktop should be managed by file browser not gsettings . . . Or maybe Gnome is just werid
              – Sergiy Kolodyazhnyy
              Dec 5 '15 at 19:40










            • @Serg I guess it's weird :p
              – Tim
              Dec 5 '15 at 19:40






            • 1




              @Serg, this should work too, as all it does it stops nautilus -n which is running in the background when off, and launch it if is on. this handled by gnome-settings-daemon or unity-settings-daemon.
              – user.dz
              Dec 5 '15 at 20:42













            up vote
            9
            down vote










            up vote
            9
            down vote









            It turns out this can be fixed with Gnome Tweak Tool.



            Using xkill on the desktop sometimes turns off the "Icons on Desktop" setting:



            Turning this back on fixed it:





            If the setting is not turned off, then just turning it off and on again brings them back.






            share|improve this answer














            It turns out this can be fixed with Gnome Tweak Tool.



            Using xkill on the desktop sometimes turns off the "Icons on Desktop" setting:



            Turning this back on fixed it:





            If the setting is not turned off, then just turning it off and on again brings them back.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Dec 5 '15 at 19:42

























            answered Dec 5 '15 at 19:38









            Tim

            19.5k1483138




            19.5k1483138












            • Wut ? xkill toggles show icons settings ? That's quite weird. Desktop should be managed by file browser not gsettings . . . Or maybe Gnome is just werid
              – Sergiy Kolodyazhnyy
              Dec 5 '15 at 19:40










            • @Serg I guess it's weird :p
              – Tim
              Dec 5 '15 at 19:40






            • 1




              @Serg, this should work too, as all it does it stops nautilus -n which is running in the background when off, and launch it if is on. this handled by gnome-settings-daemon or unity-settings-daemon.
              – user.dz
              Dec 5 '15 at 20:42


















            • Wut ? xkill toggles show icons settings ? That's quite weird. Desktop should be managed by file browser not gsettings . . . Or maybe Gnome is just werid
              – Sergiy Kolodyazhnyy
              Dec 5 '15 at 19:40










            • @Serg I guess it's weird :p
              – Tim
              Dec 5 '15 at 19:40






            • 1




              @Serg, this should work too, as all it does it stops nautilus -n which is running in the background when off, and launch it if is on. this handled by gnome-settings-daemon or unity-settings-daemon.
              – user.dz
              Dec 5 '15 at 20:42
















            Wut ? xkill toggles show icons settings ? That's quite weird. Desktop should be managed by file browser not gsettings . . . Or maybe Gnome is just werid
            – Sergiy Kolodyazhnyy
            Dec 5 '15 at 19:40




            Wut ? xkill toggles show icons settings ? That's quite weird. Desktop should be managed by file browser not gsettings . . . Or maybe Gnome is just werid
            – Sergiy Kolodyazhnyy
            Dec 5 '15 at 19:40












            @Serg I guess it's weird :p
            – Tim
            Dec 5 '15 at 19:40




            @Serg I guess it's weird :p
            – Tim
            Dec 5 '15 at 19:40




            1




            1




            @Serg, this should work too, as all it does it stops nautilus -n which is running in the background when off, and launch it if is on. this handled by gnome-settings-daemon or unity-settings-daemon.
            – user.dz
            Dec 5 '15 at 20:42




            @Serg, this should work too, as all it does it stops nautilus -n which is running in the background when off, and launch it if is on. this handled by gnome-settings-daemon or unity-settings-daemon.
            – user.dz
            Dec 5 '15 at 20:42










            up vote
            2
            down vote













            All you have to do is open Nautilus and all will be back.






            share|improve this answer



















            • 1




              That does not work.
              – Tim
              Dec 5 '15 at 20:54






            • 1




              I don't know how this is on Gnome, but simply launching Nautilus from the launcher or nautilus & disown from the terminal solves this problem perfectly well on Unity! @Sneetsher and @Tim
              – Byte Commander
              Dec 8 '15 at 12:49










            • @ByteCommander , Excuse me Doug you deserve my up vote. I judged your answer on my own experience using an older release, However I confirm that your answer work as supposed on Ubuntu 15.10 for both Unity & Gnome Shell. Thank you ByteCommander for correcting me.
              – user.dz
              Dec 9 '15 at 0:24












            • @Tim , Could you please review this because it seems to depend on the release. If you can mention here in a comment in which release did not work for you. It will be helpful for other users as the question is not for specific release, I think it does not deserve a down vote at least .
              – user.dz
              Dec 9 '15 at 0:34












            • @sne the question says gnome, do you mean version?
              – Tim
              Dec 9 '15 at 9:53















            up vote
            2
            down vote













            All you have to do is open Nautilus and all will be back.






            share|improve this answer



















            • 1




              That does not work.
              – Tim
              Dec 5 '15 at 20:54






            • 1




              I don't know how this is on Gnome, but simply launching Nautilus from the launcher or nautilus & disown from the terminal solves this problem perfectly well on Unity! @Sneetsher and @Tim
              – Byte Commander
              Dec 8 '15 at 12:49










            • @ByteCommander , Excuse me Doug you deserve my up vote. I judged your answer on my own experience using an older release, However I confirm that your answer work as supposed on Ubuntu 15.10 for both Unity & Gnome Shell. Thank you ByteCommander for correcting me.
              – user.dz
              Dec 9 '15 at 0:24












            • @Tim , Could you please review this because it seems to depend on the release. If you can mention here in a comment in which release did not work for you. It will be helpful for other users as the question is not for specific release, I think it does not deserve a down vote at least .
              – user.dz
              Dec 9 '15 at 0:34












            • @sne the question says gnome, do you mean version?
              – Tim
              Dec 9 '15 at 9:53













            up vote
            2
            down vote










            up vote
            2
            down vote









            All you have to do is open Nautilus and all will be back.






            share|improve this answer














            All you have to do is open Nautilus and all will be back.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 21 at 16:10









            Tim

            19.5k1483138




            19.5k1483138










            answered Dec 5 '15 at 20:54









            Doug

            411




            411








            • 1




              That does not work.
              – Tim
              Dec 5 '15 at 20:54






            • 1




              I don't know how this is on Gnome, but simply launching Nautilus from the launcher or nautilus & disown from the terminal solves this problem perfectly well on Unity! @Sneetsher and @Tim
              – Byte Commander
              Dec 8 '15 at 12:49










            • @ByteCommander , Excuse me Doug you deserve my up vote. I judged your answer on my own experience using an older release, However I confirm that your answer work as supposed on Ubuntu 15.10 for both Unity & Gnome Shell. Thank you ByteCommander for correcting me.
              – user.dz
              Dec 9 '15 at 0:24












            • @Tim , Could you please review this because it seems to depend on the release. If you can mention here in a comment in which release did not work for you. It will be helpful for other users as the question is not for specific release, I think it does not deserve a down vote at least .
              – user.dz
              Dec 9 '15 at 0:34












            • @sne the question says gnome, do you mean version?
              – Tim
              Dec 9 '15 at 9:53














            • 1




              That does not work.
              – Tim
              Dec 5 '15 at 20:54






            • 1




              I don't know how this is on Gnome, but simply launching Nautilus from the launcher or nautilus & disown from the terminal solves this problem perfectly well on Unity! @Sneetsher and @Tim
              – Byte Commander
              Dec 8 '15 at 12:49










            • @ByteCommander , Excuse me Doug you deserve my up vote. I judged your answer on my own experience using an older release, However I confirm that your answer work as supposed on Ubuntu 15.10 for both Unity & Gnome Shell. Thank you ByteCommander for correcting me.
              – user.dz
              Dec 9 '15 at 0:24












            • @Tim , Could you please review this because it seems to depend on the release. If you can mention here in a comment in which release did not work for you. It will be helpful for other users as the question is not for specific release, I think it does not deserve a down vote at least .
              – user.dz
              Dec 9 '15 at 0:34












            • @sne the question says gnome, do you mean version?
              – Tim
              Dec 9 '15 at 9:53








            1




            1




            That does not work.
            – Tim
            Dec 5 '15 at 20:54




            That does not work.
            – Tim
            Dec 5 '15 at 20:54




            1




            1




            I don't know how this is on Gnome, but simply launching Nautilus from the launcher or nautilus & disown from the terminal solves this problem perfectly well on Unity! @Sneetsher and @Tim
            – Byte Commander
            Dec 8 '15 at 12:49




            I don't know how this is on Gnome, but simply launching Nautilus from the launcher or nautilus & disown from the terminal solves this problem perfectly well on Unity! @Sneetsher and @Tim
            – Byte Commander
            Dec 8 '15 at 12:49












            @ByteCommander , Excuse me Doug you deserve my up vote. I judged your answer on my own experience using an older release, However I confirm that your answer work as supposed on Ubuntu 15.10 for both Unity & Gnome Shell. Thank you ByteCommander for correcting me.
            – user.dz
            Dec 9 '15 at 0:24






            @ByteCommander , Excuse me Doug you deserve my up vote. I judged your answer on my own experience using an older release, However I confirm that your answer work as supposed on Ubuntu 15.10 for both Unity & Gnome Shell. Thank you ByteCommander for correcting me.
            – user.dz
            Dec 9 '15 at 0:24














            @Tim , Could you please review this because it seems to depend on the release. If you can mention here in a comment in which release did not work for you. It will be helpful for other users as the question is not for specific release, I think it does not deserve a down vote at least .
            – user.dz
            Dec 9 '15 at 0:34






            @Tim , Could you please review this because it seems to depend on the release. If you can mention here in a comment in which release did not work for you. It will be helpful for other users as the question is not for specific release, I think it does not deserve a down vote at least .
            – user.dz
            Dec 9 '15 at 0:34














            @sne the question says gnome, do you mean version?
            – Tim
            Dec 9 '15 at 9:53




            @sne the question says gnome, do you mean version?
            – Tim
            Dec 9 '15 at 9:53










            up vote
            0
            down vote













            The previous answers did not work for me, but this command does for Kubuntu 18.04



            kstart plasmashell


            I hope this could helps others!






            share|improve this answer

























              up vote
              0
              down vote













              The previous answers did not work for me, but this command does for Kubuntu 18.04



              kstart plasmashell


              I hope this could helps others!






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                The previous answers did not work for me, but this command does for Kubuntu 18.04



                kstart plasmashell


                I hope this could helps others!






                share|improve this answer












                The previous answers did not work for me, but this command does for Kubuntu 18.04



                kstart plasmashell


                I hope this could helps others!







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 21 at 16:09









                Jason Angel

                11




                11






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f706343%2fi-accidentally-used-xkill-on-my-desktop-how-can-i-get-it-back%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

                    ComboBox Display Member on multiple fields

                    Is it possible to collect Nectar points via Trainline?