LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-08-2019, 05:16 PM   #1
Donny Bahama
Member
 
Registered: Aug 2009
Location: Southern AZ
Distribution: Ubuntu
Posts: 50

Rep: Reputation: 1
Deepin Linux won't let me delete ~/folders - even as root?!


Using Deepin 15.11, I'm trying to delete ~/Documents, ~/Desktop, ~/Downloads, ~/Music, ~/Pictures, and ~/Videos.

I'm doing this to replace them with symlinks to shared (same name) folders on a permanently mounted (in fstab) ext4 partition but Deepin won't let me delete them with sudo. I tried switching to root and I can delete the folders but as soon as I delete one (e.g. Documents), it gets immediately recreated. If I rename (mv) Documents to Docs, a new Documents directory gets created immediately. (At which point I can rm Docs.) About the only thing I've managed to achieve (still as root) is to delete the directory and create a blank file in its place...
Code:
rm -rf ~/Documents & touch ~/Documents
... which gets me precisely nowhere. I tried to follow that up with...
Code:
rm ~/Documents & ln -s /mnt/shared-home/Documents ~/Documents
but it throws an error saying the 'file' (by which it means directory) exists (has already been automatically recreated).

This is a multi-boot Linux demo machine with 8 distros, each of which has 2 identically named accounts (one with admin capabilities and one without) and each distro is setup to point at the shared-home directory for Documents, Pictures, Music, Videos, Desktop, and Downloads on the permanently mounted partition. (The actual profile is in the /home/user directory on the system/root partition so the profile settings don't step all over each other.)

So far, four other distros have cooperated just fine. Only Deepin is being a stubborn pain in my... neck.

This is a bit maddening. Anyone have any suggestions on how I might get this done?
 
Old 11-08-2019, 07:02 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,122

Rep: Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973
Many distributions will automatically create the default directories but that typically is at login. I don't know if deepin has some service or inotify watch that checks and automatically recreates the directories on the fly. I am not that familiar with deepin to know where to search to or look.

https://wiki.archlinux.org/index.php...er_directories
 
Old 11-09-2019, 01:28 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,746
Blog Entries: 9

Rep: Reputation: 3467Reputation: 3467Reputation: 3467Reputation: 3467Reputation: 3467Reputation: 3467Reputation: 3467Reputation: 3467Reputation: 3467Reputation: 3467Reputation: 3467
output of
Code:
pgrep -l xdg
please.
 
  


Reply

Tags
system administration


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Deepin File Manager - Change location of or delete default Documents, Pictures, etc folders CastyMcBoozer Linux Deepin 3 09-12-2017 01:37 AM
LXer: Linux Deepin needs your help with the Deepin Localization Project LXer Syndicated Linux News 0 12-02-2013 11:41 PM
Shell Script to compare folders,Sub-Folders and Sub-Sub-Folders unix_72427 Programming 8 08-08-2012 03:51 PM
LXer: Use Linux Deepin Screenshot Tool "Deepin Scrot" In Other Linux Distributions LXer Syndicated Linux News 0 03-13-2012 06:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration