Restore .desktop files and metainfo in Ubuntu with Unity [on hold]
I accidentally deleted most of all the .desktop files and xml in the system. Where can i get these back?
unity .desktop 18.10
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.
add a comment |
I accidentally deleted most of all the .desktop files and xml in the system. Where can i get these back?
unity .desktop 18.10
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
add a comment |
I accidentally deleted most of all the .desktop files and xml in the system. Where can i get these back?
unity .desktop 18.10
I accidentally deleted most of all the .desktop files and xml in the system. Where can i get these back?
unity .desktop 18.10
unity .desktop 18.10
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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:
- Download the Ubuntu ISO of your version (18.10).
- Mount the ISO either way:
- If GUI on nautilus right clicking, Archive Mounter.
- Go to where the ISO is mounted:
/run/user/$(id -u)/gvfs/
- Go to where the ISO is mounted:
- If terminal with
gio mount
or:
- Either
gnome-disk-image-mounter iso-file.iso
orudisksctl loop-setup -r -f iso-file.iso
. - Go to
/media/$USER/
, enter the according subfolder.
- Either
- If GUI on nautilus right clicking, Archive Mounter.
Go to
casper/
and:
cp filesystem.squashfs /tmp/ # You'll need 2GB+ space on partition `/`.
cd /tmp/
unsquashfs filesystem.squashfs
Finally search for the files (idem for
/usr/share/metainfo
):
find squashfs-root/ -name *.desktop
Then clean up
udisksctl unmount -b /dev/loop7p1
Or where the iso was mounted
- Also could
gio mount -u /run/user/$(id -u)/gvfs/archive*
or with/media/$USER/
.
- Also could
rm -rf /tmp/squashfs-root/ /tmp/filesystem.squashfs
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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:
- Download the Ubuntu ISO of your version (18.10).
- Mount the ISO either way:
- If GUI on nautilus right clicking, Archive Mounter.
- Go to where the ISO is mounted:
/run/user/$(id -u)/gvfs/
- Go to where the ISO is mounted:
- If terminal with
gio mount
or:
- Either
gnome-disk-image-mounter iso-file.iso
orudisksctl loop-setup -r -f iso-file.iso
. - Go to
/media/$USER/
, enter the according subfolder.
- Either
- If GUI on nautilus right clicking, Archive Mounter.
Go to
casper/
and:
cp filesystem.squashfs /tmp/ # You'll need 2GB+ space on partition `/`.
cd /tmp/
unsquashfs filesystem.squashfs
Finally search for the files (idem for
/usr/share/metainfo
):
find squashfs-root/ -name *.desktop
Then clean up
udisksctl unmount -b /dev/loop7p1
Or where the iso was mounted
- Also could
gio mount -u /run/user/$(id -u)/gvfs/archive*
or with/media/$USER/
.
- Also could
rm -rf /tmp/squashfs-root/ /tmp/filesystem.squashfs
add a comment |
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:
- Download the Ubuntu ISO of your version (18.10).
- Mount the ISO either way:
- If GUI on nautilus right clicking, Archive Mounter.
- Go to where the ISO is mounted:
/run/user/$(id -u)/gvfs/
- Go to where the ISO is mounted:
- If terminal with
gio mount
or:
- Either
gnome-disk-image-mounter iso-file.iso
orudisksctl loop-setup -r -f iso-file.iso
. - Go to
/media/$USER/
, enter the according subfolder.
- Either
- If GUI on nautilus right clicking, Archive Mounter.
Go to
casper/
and:
cp filesystem.squashfs /tmp/ # You'll need 2GB+ space on partition `/`.
cd /tmp/
unsquashfs filesystem.squashfs
Finally search for the files (idem for
/usr/share/metainfo
):
find squashfs-root/ -name *.desktop
Then clean up
udisksctl unmount -b /dev/loop7p1
Or where the iso was mounted
- Also could
gio mount -u /run/user/$(id -u)/gvfs/archive*
or with/media/$USER/
.
- Also could
rm -rf /tmp/squashfs-root/ /tmp/filesystem.squashfs
add a comment |
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:
- Download the Ubuntu ISO of your version (18.10).
- Mount the ISO either way:
- If GUI on nautilus right clicking, Archive Mounter.
- Go to where the ISO is mounted:
/run/user/$(id -u)/gvfs/
- Go to where the ISO is mounted:
- If terminal with
gio mount
or:
- Either
gnome-disk-image-mounter iso-file.iso
orudisksctl loop-setup -r -f iso-file.iso
. - Go to
/media/$USER/
, enter the according subfolder.
- Either
- If GUI on nautilus right clicking, Archive Mounter.
Go to
casper/
and:
cp filesystem.squashfs /tmp/ # You'll need 2GB+ space on partition `/`.
cd /tmp/
unsquashfs filesystem.squashfs
Finally search for the files (idem for
/usr/share/metainfo
):
find squashfs-root/ -name *.desktop
Then clean up
udisksctl unmount -b /dev/loop7p1
Or where the iso was mounted
- Also could
gio mount -u /run/user/$(id -u)/gvfs/archive*
or with/media/$USER/
.
- Also could
rm -rf /tmp/squashfs-root/ /tmp/filesystem.squashfs
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:
- Download the Ubuntu ISO of your version (18.10).
- Mount the ISO either way:
- If GUI on nautilus right clicking, Archive Mounter.
- Go to where the ISO is mounted:
/run/user/$(id -u)/gvfs/
- Go to where the ISO is mounted:
- If terminal with
gio mount
or:
- Either
gnome-disk-image-mounter iso-file.iso
orudisksctl loop-setup -r -f iso-file.iso
. - Go to
/media/$USER/
, enter the according subfolder.
- Either
- If GUI on nautilus right clicking, Archive Mounter.
Go to
casper/
and:
cp filesystem.squashfs /tmp/ # You'll need 2GB+ space on partition `/`.
cd /tmp/
unsquashfs filesystem.squashfs
Finally search for the files (idem for
/usr/share/metainfo
):
find squashfs-root/ -name *.desktop
Then clean up
udisksctl unmount -b /dev/loop7p1
Or where the iso was mounted
- Also could
gio mount -u /run/user/$(id -u)/gvfs/archive*
or with/media/$USER/
.
- Also could
rm -rf /tmp/squashfs-root/ /tmp/filesystem.squashfs
edited 2 days ago
answered 2 days ago
Pablo BianchiPablo Bianchi
2,4451530
2,4451530
add a comment |
add a comment |
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