You are not logged in.

#21 2021-06-20 15:00:18

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

Re: Directory/File changes

why my ~/.config/user-dirs.dirs has been modified after a shutdown restart?

It resets to last valid working version is my guess.

Offtopic/Generally speaking if one is confused about 'exit status', one can always add an '&& echo "mkay"' to illustrate exit status.

date && echo "mkay"
Sun 20 Jun 2021 04:58:41 PM CEST
mkay

false && echo "mkay"

true && echo "mkay"
mkay

(( 2 > 3 )) && echo "mkay"

(( 2 > 1 )) && echo "mkay"
mkay

Also certain prompts will change color/shape based on exit status.

Unfortunately xdg-user-dirs-update returns true even when it feels false

xdg-user-dirs-update --set VIDEOS ~/invalid && echo "mkay"
mkay # really?

Last edited by brontosaurusrex (2021-06-20 15:10:13)

Offline

#22 2021-06-20 15:05:06

deleted0
Guest

Re: Directory/File changes

flyinsparks wrote:

My other curiosity is where is the 'Home' folder layout is stored? the one where you click on the 'Home' icon on the left side panel of Thunar and it shows several folders in the viewing window.

Regards

Andy

tree.th.png

smile
8bit

#23 2021-06-20 16:34:44

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: Directory/File changes

flyinsparks wrote:

[fstab]
This looks a little too indepth for my comfort level at this time.

Fstab is not so hard to understand, but is one of the essentials to understand.

Take a look att the explaining line in /etc/fstab and the line I suggested you to use:

# <file system>       <mount point>   <type>    <options>       <dump>  <pass>
#Entry for /SeagateBUP :
UUID=[partition_UUID] /mnt/SeagateBUP ntfs-3g        noauto,user,rw,relatime,user_id=0,group_id=0,allow_other    0    0

<file system> is the partition to mount. In the old days, you used /dev/hdb1, then it became possible to mount partionlabels but using uuid's i safest.
command "lsblk -f", will list partitions with uuid.

<mount point>, is where to mount the partition.

<type> is what kind of file-system.

<options> is how to mount. "noauto", means not automatic. "user", to give normal user the right to mount. "rw", to give read and write permisssions. The other flags, can we skip for now, Read about them in "Debian handbook" (on the menu, Help... => Debian => Debian handbook. The link b elow, could also be good to read.
https://askubuntu.com/questions/113733/ … -etc-fstab

I'm still curious as to why my ~/.config/user-dirs.dirs has been modified after a shutdown restart?

Maybee som user error? I think it would be easier for you to static mounts...

My other curiosity is where is the 'Home' folder layout is stored?

Thunar bookmarks is besides defined in ~/.config/user-dirs.dirs, also stored in ~/.config/gtk-3.0/bookmarks

Last edited by rbh (2021-06-21 07:19:49)


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#24 2021-06-23 14:03:35

flyinsparks
Member
Registered: 2021-06-17
Posts: 13

Re: Directory/File changes

Hello All

Thanks for the replies eight.bit.al, rbh and brontosaurusrex sorry for the late reply work has a habit of getting in the way!

8bit I think my question was worded incorrectly what I want to know is where Thunar gets its info of what to display in the main pane when you click the icon 'Home' in the left pane.

XDG_PICTURES_DIR="$HOME/"
XDG_VIDEOS_DIR="$HOME/"
XDG_TEMPLATES_DIR="$HOME/Templates"
#XDG_PUBLICSHARE_DIR="$HOME/Public"
#XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_MUSIC_DIR="$HOME/"[code]
xdg-user-dirs-update --set FILENAME ~/filename
[/code]
XDG_DOCUMENTS_DIR="$HOME/"
XDG_DOWNLOAD_DIR="$HOME/"

This is still the result of ~/.config/user-dirs.dirs whenever you shutdown then restart no matter what you do with:

xdg-user-dirs-update --set FILENAME ~/filename

However if I edit ~/.config/gtk-3.0/bookmarks this does not get overwritten at boot time and the Thunar bookmarks, left pane, work! every time provided the drives are mounted.

rbh wrote:

flyinsparks wrote:

    [fstab]
    This looks a little too indepth for my comfort level at this time.

Fstab is not so hard to understand, but is one of the essentials to understand.

Take a look att the explaining line in /etc/fstab and the line I suggested you to use:

# <file system>       <mount point>   <type>    <options>       <dump>  <pass>
#Entry for /SeagateBUP :
UUID=[partition_UUID] /mnt/SeagateBUP ntfs-3g        noauto,user,rw,relatime,user_id=0,group_id=0,allow_other    0    0

<file system> is the partition to mount. In the old days, you used /dev/hdb1, then it became possible to mount partionlabels but using uuid's i safest.
command "lsblk -f", will list partitions with uuid.

<mount point>, is where to mount the partition.

<type> is what kind of file-system.

<options> is how to mount. "noauto", means not automatic. "user", to give normal user the right to mount. "rw", to give read and write permisssions. The other flags, can we skip for now, Read about them in "Debian handbook" (on the menu, Help... => Debian => Debian handbook. The link b elow, could also be good to read.
https://askubuntu.com/questions/113733/ … -etc-fstab

The above I'm guessing is where I will be able to read up and configure fstab so that at boot ALL drives are mounted.

Regards

Andy

Offline

#25 2021-06-23 14:35:09

deleted0
Guest

Re: Directory/File changes

flyinsparks wrote:

<snip>
8bit I think my question was worded incorrectly what I want to know is where Thunar gets its info of what to display in the main pane when you click the icon 'Home' in the left pane.

Just after I read rbh's reply to your question,
I realized I took the question too literally, a thing I do well. smile

8bit

#26 2021-06-23 20:21:38

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: Directory/File changes

flyinsparks wrote:

what I want to know is where
[...]

xdg-user-dirs-update --set FILENAME ~/filename

This is still the result of ~/.config/user-dirs.dirs whenever you shutdown then restart no matter what you do with:

Not realey what you asked for, but I must point out for you:

xdg-user-dirs-update --set FILENAME ~/filename

Is that realy your ~/.config/user-dirs.dirs? The line above should not be in the configfile! And not any closing code tag either.
It seems that BL user config files was recently updated. Then, your changes will be owerwritten. Take a look in ~/.cache/bunsen/bl-setup/log.

You should copy default configfile from /usr/share/bunsen/skel/.config/user-dirs.dirs. You do not need to change anything in user-dirs.dirs.

If you prefer to edit user-dirs.dirs, be prepared it can be overwritten. When restarting, after updating ../skel, the computer will ask for permission to overwrite. But, ~/.config/user-dirs.dirs, should not be overwritten after each restart.

rbh wrote:

<options> is how to mount. "noauto", means not automatic. "user", to give normal user the right to mount. "rw", to give read and write permisssions. The other flags, can we skip for now, Read about them in "Debian handbook" (on the menu, Help... => Debian => Debian handbook. The link b elow, could also be good to read.
https://askubuntu.com/questions/113733/ … -etc-fsta

flyinsparks wrote:

The above I'm guessing is where I will be able to read up and configure fstab so that at boot ALL drives are mounted.

If you want to disable Thunar automunt, read Thunar: disable automounting by default?. Read about fstab. If you want just your external usb disk be mounted at startup, erase flag "noauto". Else, it wil be mounted first when you klick it in thunar. I think that is better!

Take a look in your home-directory. Have you renamed ~/Documents etc to *.bak?
Have you created a softlink from your external /MountPath/Documents to ~?

Before you made an link

ln -s /media/my name/Seagate_Backup_Plus_Drive/Documents/ Documents Documents

I asked yo about that erlier. You have one "Documents" to much! No wonder you created a broken link.

The syntax for the command is: ln [options] Target linkname
If you are standing in your homedirectory, the link will be created there, id you do not give any path.
The target is directory "Documents" in your mounted external drive.
Option is -s (soft).


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#27 2021-06-24 07:46:47

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,657
Website

Re: Directory/File changes

rbh wrote:

If you prefer to edit user-dirs.dirs, be prepared it can be overwritten.

It's been my experience to date that editing ~/.config/user-dirs.dirs works fine except when the system cannot find the directory you've set, in which case it will overwrite with whatever it considers to be right. Also, be sure to use the exactly correct format, as described in the comments in that file.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#28 2021-07-07 10:16:16

flyinsparks
Member
Registered: 2021-06-17
Posts: 13

Re: Directory/File changes

Hello

I think this is my problem:


johnraff wrote:

It's been my experience to date that editing ~/.config/user-dirs.dirs works fine except when the system cannot find the directory you've set, in which case it will overwrite with whatever it considers to be right. Also, be sure to use the exactly correct format, as described in the comments in that file.

I've edited ~/.config/gtk-3.0/bookmarks and they stay the same no matter what so when I start up and mount the drives the Thunar shortcuts work.

So I've got work with fstab to get all my drives to mount at boot.

I think......


Regards

Andy

Offline

Board footer

Powered by FluxBB