Restore .desktop files and metainfo in Ubuntu with Unity [on hold]












-1















I accidentally deleted most of all the .desktop files and xml in the system. Where can i get these back?










share|improve this question















put on hold as unclear what you're asking by Thomas, Eric Carvalho, N0rbert, pomsky, karel 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
















  • As sudo? Systemwde? I think a fresh reinstall will be the shortest pain. You can do so without reformatting - your user data then stays in place.

    – vanadium
    Jan 16 at 17:54
















-1















I accidentally deleted most of all the .desktop files and xml in the system. Where can i get these back?










share|improve this question















put on hold as unclear what you're asking by Thomas, Eric Carvalho, N0rbert, pomsky, karel 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
















  • As sudo? Systemwde? I think a fresh reinstall will be the shortest pain. You can do so without reformatting - your user data then stays in place.

    – vanadium
    Jan 16 at 17:54














-1












-1








-1








I accidentally deleted most of all the .desktop files and xml in the system. Where can i get these back?










share|improve this question
















I accidentally deleted most of all the .desktop files and xml in the system. Where can i get these back?







unity .desktop 18.10






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago









Pablo Bianchi

2,4451530




2,4451530










asked Jan 16 at 15:59









Christopher MChristopher M

446




446




put on hold as unclear what you're asking by Thomas, Eric Carvalho, N0rbert, pomsky, karel 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






put on hold as unclear what you're asking by Thomas, Eric Carvalho, N0rbert, pomsky, karel 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.















  • As sudo? Systemwde? I think a fresh reinstall will be the shortest pain. You can do so without reformatting - your user data then stays in place.

    – vanadium
    Jan 16 at 17:54



















  • As sudo? Systemwde? I think a fresh reinstall will be the shortest pain. You can do so without reformatting - your user data then stays in place.

    – vanadium
    Jan 16 at 17:54

















As sudo? Systemwde? I think a fresh reinstall will be the shortest pain. You can do so without reformatting - your user data then stays in place.

– vanadium
Jan 16 at 17:54





As sudo? Systemwde? I think a fresh reinstall will be the shortest pain. You can do so without reformatting - your user data then stays in place.

– vanadium
Jan 16 at 17:54










1 Answer
1






active

oldest

votes


















0














If it is a fresh install you could search for them from Ubuntu ISO. Also you could try to recover files or maybe for .desktop regenerate them.



.desktop files are usually on $HOME/.local/share/applications/ and /usr/share/applications/.



To access files from an Ubuntu ISO:




  1. Download the Ubuntu ISO of your version (18.10).

  2. Mount the ISO either way:


    1. If GUI on nautilus right clicking, Archive Mounter.


      1. Go to where the ISO is mounted: /run/user/$(id -u)/gvfs/



    2. If terminal with gio mount or:


      1. Either gnome-disk-image-mounter iso-file.iso or udisksctl loop-setup -r -f iso-file.iso.

      2. Go to /media/$USER/, enter the according subfolder.






  3. Go to casper/ and:



    cp filesystem.squashfs /tmp/  # You'll need 2GB+ space on partition `/`.
    cd /tmp/
    unsquashfs filesystem.squashfs



  4. Finally search for the files (idem for /usr/share/metainfo):



    find squashfs-root/ -name *.desktop



Then clean up





  1. udisksctl unmount -b /dev/loop7p1 Or where the iso was mounted


    1. Also could gio mount -u /run/user/$(id -u)/gvfs/archive* or with /media/$USER/.



  2. rm -rf /tmp/squashfs-root/ /tmp/filesystem.squashfs






share|improve this answer
































    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    If it is a fresh install you could search for them from Ubuntu ISO. Also you could try to recover files or maybe for .desktop regenerate them.



    .desktop files are usually on $HOME/.local/share/applications/ and /usr/share/applications/.



    To access files from an Ubuntu ISO:




    1. Download the Ubuntu ISO of your version (18.10).

    2. Mount the ISO either way:


      1. If GUI on nautilus right clicking, Archive Mounter.


        1. Go to where the ISO is mounted: /run/user/$(id -u)/gvfs/



      2. If terminal with gio mount or:


        1. Either gnome-disk-image-mounter iso-file.iso or udisksctl loop-setup -r -f iso-file.iso.

        2. Go to /media/$USER/, enter the according subfolder.






    3. Go to casper/ and:



      cp filesystem.squashfs /tmp/  # You'll need 2GB+ space on partition `/`.
      cd /tmp/
      unsquashfs filesystem.squashfs



    4. Finally search for the files (idem for /usr/share/metainfo):



      find squashfs-root/ -name *.desktop



    Then clean up





    1. udisksctl unmount -b /dev/loop7p1 Or where the iso was mounted


      1. Also could gio mount -u /run/user/$(id -u)/gvfs/archive* or with /media/$USER/.



    2. rm -rf /tmp/squashfs-root/ /tmp/filesystem.squashfs






    share|improve this answer






























      0














      If it is a fresh install you could search for them from Ubuntu ISO. Also you could try to recover files or maybe for .desktop regenerate them.



      .desktop files are usually on $HOME/.local/share/applications/ and /usr/share/applications/.



      To access files from an Ubuntu ISO:




      1. Download the Ubuntu ISO of your version (18.10).

      2. Mount the ISO either way:


        1. If GUI on nautilus right clicking, Archive Mounter.


          1. Go to where the ISO is mounted: /run/user/$(id -u)/gvfs/



        2. If terminal with gio mount or:


          1. Either gnome-disk-image-mounter iso-file.iso or udisksctl loop-setup -r -f iso-file.iso.

          2. Go to /media/$USER/, enter the according subfolder.






      3. Go to casper/ and:



        cp filesystem.squashfs /tmp/  # You'll need 2GB+ space on partition `/`.
        cd /tmp/
        unsquashfs filesystem.squashfs



      4. Finally search for the files (idem for /usr/share/metainfo):



        find squashfs-root/ -name *.desktop



      Then clean up





      1. udisksctl unmount -b /dev/loop7p1 Or where the iso was mounted


        1. Also could gio mount -u /run/user/$(id -u)/gvfs/archive* or with /media/$USER/.



      2. rm -rf /tmp/squashfs-root/ /tmp/filesystem.squashfs






      share|improve this answer




























        0












        0








        0







        If it is a fresh install you could search for them from Ubuntu ISO. Also you could try to recover files or maybe for .desktop regenerate them.



        .desktop files are usually on $HOME/.local/share/applications/ and /usr/share/applications/.



        To access files from an Ubuntu ISO:




        1. Download the Ubuntu ISO of your version (18.10).

        2. Mount the ISO either way:


          1. If GUI on nautilus right clicking, Archive Mounter.


            1. Go to where the ISO is mounted: /run/user/$(id -u)/gvfs/



          2. If terminal with gio mount or:


            1. Either gnome-disk-image-mounter iso-file.iso or udisksctl loop-setup -r -f iso-file.iso.

            2. Go to /media/$USER/, enter the according subfolder.






        3. Go to casper/ and:



          cp filesystem.squashfs /tmp/  # You'll need 2GB+ space on partition `/`.
          cd /tmp/
          unsquashfs filesystem.squashfs



        4. Finally search for the files (idem for /usr/share/metainfo):



          find squashfs-root/ -name *.desktop



        Then clean up





        1. udisksctl unmount -b /dev/loop7p1 Or where the iso was mounted


          1. Also could gio mount -u /run/user/$(id -u)/gvfs/archive* or with /media/$USER/.



        2. rm -rf /tmp/squashfs-root/ /tmp/filesystem.squashfs






        share|improve this answer















        If it is a fresh install you could search for them from Ubuntu ISO. Also you could try to recover files or maybe for .desktop regenerate them.



        .desktop files are usually on $HOME/.local/share/applications/ and /usr/share/applications/.



        To access files from an Ubuntu ISO:




        1. Download the Ubuntu ISO of your version (18.10).

        2. Mount the ISO either way:


          1. If GUI on nautilus right clicking, Archive Mounter.


            1. Go to where the ISO is mounted: /run/user/$(id -u)/gvfs/



          2. If terminal with gio mount or:


            1. Either gnome-disk-image-mounter iso-file.iso or udisksctl loop-setup -r -f iso-file.iso.

            2. Go to /media/$USER/, enter the according subfolder.






        3. Go to casper/ and:



          cp filesystem.squashfs /tmp/  # You'll need 2GB+ space on partition `/`.
          cd /tmp/
          unsquashfs filesystem.squashfs



        4. Finally search for the files (idem for /usr/share/metainfo):



          find squashfs-root/ -name *.desktop



        Then clean up





        1. udisksctl unmount -b /dev/loop7p1 Or where the iso was mounted


          1. Also could gio mount -u /run/user/$(id -u)/gvfs/archive* or with /media/$USER/.



        2. rm -rf /tmp/squashfs-root/ /tmp/filesystem.squashfs







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 2 days ago

























        answered 2 days ago









        Pablo BianchiPablo Bianchi

        2,4451530




        2,4451530















            Popular posts from this blog

            數位音樂下載

            格利澤436b

            When can things happen in Etherscan, such as the picture below?