LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 04:16 PM   #1
Donny Bahama
Member
 
Registered: Aug 2009
Location: Margaritaville (a state of mind west of Las Vegas), NV
Distribution: Linux Mint
Posts: 61

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, 06:02 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
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, 12:28 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

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


Reply

Tags
system administration



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 12:37 AM
LXer: Linux Deepin needs your help with the Deepin Localization Project LXer Syndicated Linux News 0 12-02-2013 10:41 PM
Shell Script to compare folders,Sub-Folders and Sub-Sub-Folders unix_72427 Programming 8 08-08-2012 02:51 PM
LXer: Use Linux Deepin Screenshot Tool "Deepin Scrot" In Other Linux Distributions LXer Syndicated Linux News 0 03-13-2012 05:50 AM

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

All times are GMT -5. The time now is 12:32 PM.

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
Open Source Consulting | Domain Registration