Deleted all three 'Files' .desktop files in /usr/share/applications/ - how do I get them back?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















Whilst trying to fix a bug that gave me two occurrences of the 'Files' shortcut on the dash, one of which would never go away without a reboot, I navigated to /usr/share/applications/ and deleted all three desktop configuration files titled 'Files'. It turns out that none of these three were identical. One was 'org.gnome.Nautilus.desktop', another was 'nautilus-folder-handler.desktop', and the last was 'nautilus.desktop'. I've got no idea which of these were important, but now that they're gone it's broken a few things. How can I get them back?










share|improve this question

























  • I have no special knowledge, but I'd boot a install media (live) for your system and look to see if they were there; if so cp & try those. Otherwise install the release in a VM and cp from there (if I didn't have backups or another machine with that release of Ubuntu installed), If you're patient you may get an easier/faster approach than this dumb-steal hack.

    – guiverc
    Mar 28 at 21:30






  • 1





    If you haven't already logged out, run sudo apt install --reinstall nautilus.

    – DK Bose
    Mar 29 at 2:17


















1















Whilst trying to fix a bug that gave me two occurrences of the 'Files' shortcut on the dash, one of which would never go away without a reboot, I navigated to /usr/share/applications/ and deleted all three desktop configuration files titled 'Files'. It turns out that none of these three were identical. One was 'org.gnome.Nautilus.desktop', another was 'nautilus-folder-handler.desktop', and the last was 'nautilus.desktop'. I've got no idea which of these were important, but now that they're gone it's broken a few things. How can I get them back?










share|improve this question

























  • I have no special knowledge, but I'd boot a install media (live) for your system and look to see if they were there; if so cp & try those. Otherwise install the release in a VM and cp from there (if I didn't have backups or another machine with that release of Ubuntu installed), If you're patient you may get an easier/faster approach than this dumb-steal hack.

    – guiverc
    Mar 28 at 21:30






  • 1





    If you haven't already logged out, run sudo apt install --reinstall nautilus.

    – DK Bose
    Mar 29 at 2:17














1












1








1








Whilst trying to fix a bug that gave me two occurrences of the 'Files' shortcut on the dash, one of which would never go away without a reboot, I navigated to /usr/share/applications/ and deleted all three desktop configuration files titled 'Files'. It turns out that none of these three were identical. One was 'org.gnome.Nautilus.desktop', another was 'nautilus-folder-handler.desktop', and the last was 'nautilus.desktop'. I've got no idea which of these were important, but now that they're gone it's broken a few things. How can I get them back?










share|improve this question
















Whilst trying to fix a bug that gave me two occurrences of the 'Files' shortcut on the dash, one of which would never go away without a reboot, I navigated to /usr/share/applications/ and deleted all three desktop configuration files titled 'Files'. It turns out that none of these three were identical. One was 'org.gnome.Nautilus.desktop', another was 'nautilus-folder-handler.desktop', and the last was 'nautilus.desktop'. I've got no idea which of these were important, but now that they're gone it's broken a few things. How can I get them back?







18.04 gnome nautilus






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 31 at 12:00







J. Mini

















asked Mar 28 at 20:45









J. MiniJ. Mini

85




85













  • I have no special knowledge, but I'd boot a install media (live) for your system and look to see if they were there; if so cp & try those. Otherwise install the release in a VM and cp from there (if I didn't have backups or another machine with that release of Ubuntu installed), If you're patient you may get an easier/faster approach than this dumb-steal hack.

    – guiverc
    Mar 28 at 21:30






  • 1





    If you haven't already logged out, run sudo apt install --reinstall nautilus.

    – DK Bose
    Mar 29 at 2:17



















  • I have no special knowledge, but I'd boot a install media (live) for your system and look to see if they were there; if so cp & try those. Otherwise install the release in a VM and cp from there (if I didn't have backups or another machine with that release of Ubuntu installed), If you're patient you may get an easier/faster approach than this dumb-steal hack.

    – guiverc
    Mar 28 at 21:30






  • 1





    If you haven't already logged out, run sudo apt install --reinstall nautilus.

    – DK Bose
    Mar 29 at 2:17

















I have no special knowledge, but I'd boot a install media (live) for your system and look to see if they were there; if so cp & try those. Otherwise install the release in a VM and cp from there (if I didn't have backups or another machine with that release of Ubuntu installed), If you're patient you may get an easier/faster approach than this dumb-steal hack.

– guiverc
Mar 28 at 21:30





I have no special knowledge, but I'd boot a install media (live) for your system and look to see if they were there; if so cp & try those. Otherwise install the release in a VM and cp from there (if I didn't have backups or another machine with that release of Ubuntu installed), If you're patient you may get an easier/faster approach than this dumb-steal hack.

– guiverc
Mar 28 at 21:30




1




1





If you haven't already logged out, run sudo apt install --reinstall nautilus.

– DK Bose
Mar 29 at 2:17





If you haven't already logged out, run sudo apt install --reinstall nautilus.

– DK Bose
Mar 29 at 2:17










2 Answers
2






active

oldest

votes


















1














You could reinstall nautilus package with



sudo apt install --reinstall nautilus


This will give you back the /usr/share/applications/org.gnome.Nautilus.desktop file. I don't know where the others come from.



Try to look for them with apt-file



apt-file search /usr/share/applications/nautilus-folder-handler.desktop


and



 apt-file search /usr/share/applications/nautilus.desktop


Of course, you need apt-file installed. sudo apt install apt-file






share|improve this answer
























  • No luck. "E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?"

    – J. Mini
    Mar 29 at 11:19











  • Strange, despite having already tried it, sudo apt install --reinstall nautilus has mysteriously solved the problem!

    – J. Mini
    Mar 29 at 11:28



















1














All these files came from nautilus package. See search results on https://packages.ubuntu.com :




  • nautilus-folder-handler.desktop

  • org.gnome.Nautilus.desktop

  • nautilus.desktop


So you need to reinstall the Nautilus package with:



sudo apt-get install --reinstall nautilus





share|improve this answer
























  • No luck. "E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?"

    – J. Mini
    Mar 29 at 11:19












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%2f1129510%2fdeleted-all-three-files-desktop-files-in-usr-share-applications-how-do-i%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














You could reinstall nautilus package with



sudo apt install --reinstall nautilus


This will give you back the /usr/share/applications/org.gnome.Nautilus.desktop file. I don't know where the others come from.



Try to look for them with apt-file



apt-file search /usr/share/applications/nautilus-folder-handler.desktop


and



 apt-file search /usr/share/applications/nautilus.desktop


Of course, you need apt-file installed. sudo apt install apt-file






share|improve this answer
























  • No luck. "E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?"

    – J. Mini
    Mar 29 at 11:19











  • Strange, despite having already tried it, sudo apt install --reinstall nautilus has mysteriously solved the problem!

    – J. Mini
    Mar 29 at 11:28
















1














You could reinstall nautilus package with



sudo apt install --reinstall nautilus


This will give you back the /usr/share/applications/org.gnome.Nautilus.desktop file. I don't know where the others come from.



Try to look for them with apt-file



apt-file search /usr/share/applications/nautilus-folder-handler.desktop


and



 apt-file search /usr/share/applications/nautilus.desktop


Of course, you need apt-file installed. sudo apt install apt-file






share|improve this answer
























  • No luck. "E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?"

    – J. Mini
    Mar 29 at 11:19











  • Strange, despite having already tried it, sudo apt install --reinstall nautilus has mysteriously solved the problem!

    – J. Mini
    Mar 29 at 11:28














1












1








1







You could reinstall nautilus package with



sudo apt install --reinstall nautilus


This will give you back the /usr/share/applications/org.gnome.Nautilus.desktop file. I don't know where the others come from.



Try to look for them with apt-file



apt-file search /usr/share/applications/nautilus-folder-handler.desktop


and



 apt-file search /usr/share/applications/nautilus.desktop


Of course, you need apt-file installed. sudo apt install apt-file






share|improve this answer













You could reinstall nautilus package with



sudo apt install --reinstall nautilus


This will give you back the /usr/share/applications/org.gnome.Nautilus.desktop file. I don't know where the others come from.



Try to look for them with apt-file



apt-file search /usr/share/applications/nautilus-folder-handler.desktop


and



 apt-file search /usr/share/applications/nautilus.desktop


Of course, you need apt-file installed. sudo apt install apt-file







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 29 at 7:25









solsTiCesolsTiCe

6,46632050




6,46632050













  • No luck. "E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?"

    – J. Mini
    Mar 29 at 11:19











  • Strange, despite having already tried it, sudo apt install --reinstall nautilus has mysteriously solved the problem!

    – J. Mini
    Mar 29 at 11:28



















  • No luck. "E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?"

    – J. Mini
    Mar 29 at 11:19











  • Strange, despite having already tried it, sudo apt install --reinstall nautilus has mysteriously solved the problem!

    – J. Mini
    Mar 29 at 11:28

















No luck. "E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?"

– J. Mini
Mar 29 at 11:19





No luck. "E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?"

– J. Mini
Mar 29 at 11:19













Strange, despite having already tried it, sudo apt install --reinstall nautilus has mysteriously solved the problem!

– J. Mini
Mar 29 at 11:28





Strange, despite having already tried it, sudo apt install --reinstall nautilus has mysteriously solved the problem!

– J. Mini
Mar 29 at 11:28













1














All these files came from nautilus package. See search results on https://packages.ubuntu.com :




  • nautilus-folder-handler.desktop

  • org.gnome.Nautilus.desktop

  • nautilus.desktop


So you need to reinstall the Nautilus package with:



sudo apt-get install --reinstall nautilus





share|improve this answer
























  • No luck. "E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?"

    – J. Mini
    Mar 29 at 11:19
















1














All these files came from nautilus package. See search results on https://packages.ubuntu.com :




  • nautilus-folder-handler.desktop

  • org.gnome.Nautilus.desktop

  • nautilus.desktop


So you need to reinstall the Nautilus package with:



sudo apt-get install --reinstall nautilus





share|improve this answer
























  • No luck. "E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?"

    – J. Mini
    Mar 29 at 11:19














1












1








1







All these files came from nautilus package. See search results on https://packages.ubuntu.com :




  • nautilus-folder-handler.desktop

  • org.gnome.Nautilus.desktop

  • nautilus.desktop


So you need to reinstall the Nautilus package with:



sudo apt-get install --reinstall nautilus





share|improve this answer













All these files came from nautilus package. See search results on https://packages.ubuntu.com :




  • nautilus-folder-handler.desktop

  • org.gnome.Nautilus.desktop

  • nautilus.desktop


So you need to reinstall the Nautilus package with:



sudo apt-get install --reinstall nautilus






share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 29 at 7:25









N0rbertN0rbert

25.5k854122




25.5k854122













  • No luck. "E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?"

    – J. Mini
    Mar 29 at 11:19



















  • No luck. "E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?"

    – J. Mini
    Mar 29 at 11:19

















No luck. "E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?"

– J. Mini
Mar 29 at 11:19





No luck. "E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?"

– J. Mini
Mar 29 at 11:19


















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%2f1129510%2fdeleted-all-three-files-desktop-files-in-usr-share-applications-how-do-i%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

How did Captain America manage to do this?

迪纳利

南乌拉尔铁路局