1

I am trying to set up a large number (30) of headless Raspberries and I want to change (turn off) the "Show available options..." setting of the File Manager.

I know how to do it form the GUI, from the PCManFM of the File Manager, but I want to do it from the command line (or changing the file that holds the setting).

What is the command to change this or (even better) what is the file that holds this setting of the File Manager?

GUI way:

enter image description here

8
  • 1
    On my PiOS 64-bit the pcmanfm config is in ~/.config/pcmanfm/LXDE-pi/pcmanfm.conf. No idea if that setting is actually in that file
    – Dirk
    Oct 26, 2022 at 15:03
  • "the PCManFM of the File Manager" -> Just in case there is some confusion: PCManFM is the "File Manager".
    – goldilocks
    Oct 26, 2022 at 15:15
  • @Dirk Nothing there. Not even in the /etc/xdg/lxsession/LXDE* dirs... pcmanfm has some options, but didn't find anything even remote relevant...
    – Gik
    Oct 26, 2022 at 15:48
  • It's the 'autostart' entry in the [Volumes] section in pcmanfm.conf
    – Dirk
    Oct 26, 2022 at 18:07
  • 1
    You confuse me by saying your Pi's are headless, then asking a question about a GUI. What OS are you using, is it the Lite version?
    – Peter bill
    Nov 6, 2022 at 16:45

1 Answer 1

1

Seems to work in my Raspberry Pi OS.

File content of ~/.config/pcmanfm/LXDE-pi/pcmanfm.conf is:-

[config]
bm_open_method=0

[volume]
mount_on_startup=0
mount_removable=0
autorun=0

[ui]
always_show_tabs=0
max_tab_chars=32
win_width=943
win_height=653
splitter_pos=288
media_in_new_tab=0
desktop_folder_new_win=0
change_tab_on_drop=1
close_on_unmount=1
focus_previous=0
side_pane_mode=dirtree
view_mode=list
show_hidden=0
show_thumbs=0
sort=name;ascending;
columns=name;size;mtime;
toolbar=newtab;navigation;home;
show_statusbar=1
pathbar_mode_buttons=0
prefs_app=SUDO_ASKPASS=/usr/lib/pipanel/pwdpip.sh pipanel
common_bg=0

The relevant command is autorun=0
NOTE the file does not exist unless you save changes (although you could copy the default) /etc/xdg/pcmanfm/default/pcmanfm.conf or /etc/xdg/pcmanfm/LXDE-pi/pcmanfm.conf.

1
  • Yup, thats it! Thanks! The only problem is that the value does not "stick". If you change it and go to look for the change in the GUI it reverts back, but thats not a big problem, a reboot will fix it.
    – Gik
    Nov 15, 2022 at 13:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.