Prevent Nautilus / Nemo from creating .Trash-1000 folder in mounted devicesHow to I stop ubuntu making .Trash...

How to fly a direct entry holding pattern when approaching from an awkward angle?

Co-worker sabotaging/undoing my work. (Software Development)

"I showed the monkey himself in the mirror". Why is this sentence grammatical?

Possible issue with my W4 and tax return

What species should be used for storage of human minds?

What does an unprocessed RAW file look like?

Equivalent of "illegal" for violating civil law

What is the draw frequency for 3 consecutive games (same players; amateur level)?

Why is it that Bernie Sanders is always called a "socialist"?

Why did Ylvis use "go" instead of "say" in phrases like "Dog goes 'woof'"?

Boss asked me to sign a resignation paper without a date on it along with my new contract

Sensor logger for Raspberry Pi in a stratospheric probe

I have trouble understanding this fallacy: "If A, then B. Therefore if not-B, then not-A."

How can find the 2D Voronoi cell area distribution?

why typing a variable (or expression) prints the value to stdout?

How can I prevent an oracle who can see into the past from knowing everything that has happened?

What is an efficient way to digitize a family photo collection?

Does it take energy to move something in a circle?

Can me and my friend spend the summer in Canada (6 weeks) at 16 years old without an adult?

Case protection with emphasis in biblatex

Does the US government have any planning in place to ensure there's no shortages of food, fuel, steel and other commodities?

How do I narratively explain how in-game circumstances do not mechanically allow a PC to instantly kill an NPC?

Word for something that's always reliable, but never the best?

Prevent Nautilus / Nemo from creating .Trash-1000 folder in mounted devices



Prevent Nautilus / Nemo from creating .Trash-1000 folder in mounted devices


How to I stop ubuntu making .Trash folder in each deviceHow does the Trash Can work, and where can I find official documentation, reference, or specification for it?Why is a .Trash-1000 hidden folder created when I try to delete files from a mounted MicroSD card?Trash folder in the wrong location with bound partitionsDeleted Items not appearing in Trash folder. Stuck in .TRASH-1000Impossible to trash files from a folder which is a symbolic link to a NTFS partition folderIs it possible to have multiple trash cans for seperate partitions in the unity launcher?Network Trash showing on my desktopUbuntu xenial File Manager trash not workingCan not move files to trash from ext4 partitionNautilus crashed - Black desktop and can't access any folder













2















Both Nautilus and Nemo create hidden folders called .Trash-1000 in any mounted device, apparently to managed their Trash folder. This is mighty confusing in network drives that are mounted by other users, that may be using other operating systems or programmes that do not recognise this folder as a trash bin.



Moreover, this folder expands with the number of files deleted and can not be erased from Ubuntu:



$ sudo rm -rf ./.Trash-1000
rm: cannot remove './.Trash-1000/files': Directory not empty


To free space in such mounted volumes the .Trash-1000 folder must be deleted from a different system.



Is there any way to prevent Nemo or Nautilus from creating this folder in network drives? I can naturally simply not use them, but they are handy in many situations.










share|improve this question























  • @N0rbert this question is not related to the OS, rather to the Nautilus file browser.

    – Luís de Sousa
    20 mins ago











  • @LuísdeSousa Now, I've provided an answer as to current state of affairs, that is currently it is not possible to have such feature. However, I would ask you to remain patient for next week or so, and I might return with a better solution. OK ?

    – Sergiy Kolodyazhnyy
    10 mins ago
















2















Both Nautilus and Nemo create hidden folders called .Trash-1000 in any mounted device, apparently to managed their Trash folder. This is mighty confusing in network drives that are mounted by other users, that may be using other operating systems or programmes that do not recognise this folder as a trash bin.



Moreover, this folder expands with the number of files deleted and can not be erased from Ubuntu:



$ sudo rm -rf ./.Trash-1000
rm: cannot remove './.Trash-1000/files': Directory not empty


To free space in such mounted volumes the .Trash-1000 folder must be deleted from a different system.



Is there any way to prevent Nemo or Nautilus from creating this folder in network drives? I can naturally simply not use them, but they are handy in many situations.










share|improve this question























  • @N0rbert this question is not related to the OS, rather to the Nautilus file browser.

    – Luís de Sousa
    20 mins ago











  • @LuísdeSousa Now, I've provided an answer as to current state of affairs, that is currently it is not possible to have such feature. However, I would ask you to remain patient for next week or so, and I might return with a better solution. OK ?

    – Sergiy Kolodyazhnyy
    10 mins ago














2












2








2


1






Both Nautilus and Nemo create hidden folders called .Trash-1000 in any mounted device, apparently to managed their Trash folder. This is mighty confusing in network drives that are mounted by other users, that may be using other operating systems or programmes that do not recognise this folder as a trash bin.



Moreover, this folder expands with the number of files deleted and can not be erased from Ubuntu:



$ sudo rm -rf ./.Trash-1000
rm: cannot remove './.Trash-1000/files': Directory not empty


To free space in such mounted volumes the .Trash-1000 folder must be deleted from a different system.



Is there any way to prevent Nemo or Nautilus from creating this folder in network drives? I can naturally simply not use them, but they are handy in many situations.










share|improve this question














Both Nautilus and Nemo create hidden folders called .Trash-1000 in any mounted device, apparently to managed their Trash folder. This is mighty confusing in network drives that are mounted by other users, that may be using other operating systems or programmes that do not recognise this folder as a trash bin.



Moreover, this folder expands with the number of files deleted and can not be erased from Ubuntu:



$ sudo rm -rf ./.Trash-1000
rm: cannot remove './.Trash-1000/files': Directory not empty


To free space in such mounted volumes the .Trash-1000 folder must be deleted from a different system.



Is there any way to prevent Nemo or Nautilus from creating this folder in network drives? I can naturally simply not use them, but they are handy in many situations.







nautilus trash nemo network-drive






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 1 hour ago









Luís de SousaLuís de Sousa

9,1201752100




9,1201752100













  • @N0rbert this question is not related to the OS, rather to the Nautilus file browser.

    – Luís de Sousa
    20 mins ago











  • @LuísdeSousa Now, I've provided an answer as to current state of affairs, that is currently it is not possible to have such feature. However, I would ask you to remain patient for next week or so, and I might return with a better solution. OK ?

    – Sergiy Kolodyazhnyy
    10 mins ago



















  • @N0rbert this question is not related to the OS, rather to the Nautilus file browser.

    – Luís de Sousa
    20 mins ago











  • @LuísdeSousa Now, I've provided an answer as to current state of affairs, that is currently it is not possible to have such feature. However, I would ask you to remain patient for next week or so, and I might return with a better solution. OK ?

    – Sergiy Kolodyazhnyy
    10 mins ago

















@N0rbert this question is not related to the OS, rather to the Nautilus file browser.

– Luís de Sousa
20 mins ago





@N0rbert this question is not related to the OS, rather to the Nautilus file browser.

– Luís de Sousa
20 mins ago













@LuísdeSousa Now, I've provided an answer as to current state of affairs, that is currently it is not possible to have such feature. However, I would ask you to remain patient for next week or so, and I might return with a better solution. OK ?

– Sergiy Kolodyazhnyy
10 mins ago





@LuísdeSousa Now, I've provided an answer as to current state of affairs, that is currently it is not possible to have such feature. However, I would ask you to remain patient for next week or so, and I might return with a better solution. OK ?

– Sergiy Kolodyazhnyy
10 mins ago










1 Answer
1






active

oldest

votes


















2














After looking at Nautilus's source code and Michael Stumpfl's answer it becomes clear that trash folder creation, is something hard-coded in Nautilus's source code itself and is part of how libgio works - the library behind file manipulations in Gtk/GNOME applications. Therefore disabling such behavior is currently not possible without recompiling either the file manager itself or altering source code of the library ( which I wouldn't recommend doing, since other applications rely on it, so changes may affect other applications' behavior ).



Probably the best solution is to propose a feature request to Nautilus developers and wait until it is fixed. One could also resort to permanent deletion of files via Shift+Delete short cut or using command-line utilities such as mv (move to user's trash folder on / filesystem) or rm. Otherwise - switch to using different file manager for the time being.






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',
    autoActivateHeartbeat: false,
    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%2f1121039%2fprevent-nautilus-nemo-from-creating-trash-1000-folder-in-mounted-devices%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    After looking at Nautilus's source code and Michael Stumpfl's answer it becomes clear that trash folder creation, is something hard-coded in Nautilus's source code itself and is part of how libgio works - the library behind file manipulations in Gtk/GNOME applications. Therefore disabling such behavior is currently not possible without recompiling either the file manager itself or altering source code of the library ( which I wouldn't recommend doing, since other applications rely on it, so changes may affect other applications' behavior ).



    Probably the best solution is to propose a feature request to Nautilus developers and wait until it is fixed. One could also resort to permanent deletion of files via Shift+Delete short cut or using command-line utilities such as mv (move to user's trash folder on / filesystem) or rm. Otherwise - switch to using different file manager for the time being.






    share|improve this answer






























      2














      After looking at Nautilus's source code and Michael Stumpfl's answer it becomes clear that trash folder creation, is something hard-coded in Nautilus's source code itself and is part of how libgio works - the library behind file manipulations in Gtk/GNOME applications. Therefore disabling such behavior is currently not possible without recompiling either the file manager itself or altering source code of the library ( which I wouldn't recommend doing, since other applications rely on it, so changes may affect other applications' behavior ).



      Probably the best solution is to propose a feature request to Nautilus developers and wait until it is fixed. One could also resort to permanent deletion of files via Shift+Delete short cut or using command-line utilities such as mv (move to user's trash folder on / filesystem) or rm. Otherwise - switch to using different file manager for the time being.






      share|improve this answer




























        2












        2








        2







        After looking at Nautilus's source code and Michael Stumpfl's answer it becomes clear that trash folder creation, is something hard-coded in Nautilus's source code itself and is part of how libgio works - the library behind file manipulations in Gtk/GNOME applications. Therefore disabling such behavior is currently not possible without recompiling either the file manager itself or altering source code of the library ( which I wouldn't recommend doing, since other applications rely on it, so changes may affect other applications' behavior ).



        Probably the best solution is to propose a feature request to Nautilus developers and wait until it is fixed. One could also resort to permanent deletion of files via Shift+Delete short cut or using command-line utilities such as mv (move to user's trash folder on / filesystem) or rm. Otherwise - switch to using different file manager for the time being.






        share|improve this answer















        After looking at Nautilus's source code and Michael Stumpfl's answer it becomes clear that trash folder creation, is something hard-coded in Nautilus's source code itself and is part of how libgio works - the library behind file manipulations in Gtk/GNOME applications. Therefore disabling such behavior is currently not possible without recompiling either the file manager itself or altering source code of the library ( which I wouldn't recommend doing, since other applications rely on it, so changes may affect other applications' behavior ).



        Probably the best solution is to propose a feature request to Nautilus developers and wait until it is fixed. One could also resort to permanent deletion of files via Shift+Delete short cut or using command-line utilities such as mv (move to user's trash folder on / filesystem) or rm. Otherwise - switch to using different file manager for the time being.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 11 mins ago

























        answered 16 mins ago









        Sergiy KolodyazhnyySergiy Kolodyazhnyy

        73k9152316




        73k9152316






























            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1121039%2fprevent-nautilus-nemo-from-creating-trash-1000-folder-in-mounted-devices%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

            Szabolcs (Ungheria) Altri progetti | Menu di navigazione48°10′14.56″N 21°29′33.14″E /...

            Discografia di Klaus Schulze Indice Album in studio | Album dal vivo | Singoli | Antologie | Colonne...

            How to make inet_server_addr() return localhost in spite of ::1/128RETURN NEXT in Postgres FunctionConnect to...