WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] Any pcmanfm users help me with desktop icons please?  (Read 3500 times)

aus9

  • Guest
Moderators please move if in wrong sub-forum.

OK TC64, I have the repo versions of pcmanfm and its deps running.
Bonus points for reading....you can have clickable Desktop icons me thinks for most WMs on TC64

I am aware of using ~/X.d/something (to auto start this app in wall paper mode)

but my current steps are as follows

1) copy original desktops from /tmp/tcloop etc.....and copy to my Desktop dir
I have a persistent home dir with sufficient storage so the duplication is not an issue for me.

2)
Code: [Select]
tce-load -i pcmanfm
pcmanfm --desktop &
(press enter to get back to prompt)

3) I can then set the wallpaper....but I actually set the wallpaper on hackedbox

The screenshot shows the Desktop icons which are clickable and can be made executable
Also screenie shows pcmanfm opened to /usr/local/share/applications where there are more clickable icons

Trouble is....I make them executable....full reboot and I have to repeat all over again.

I need to know where I should be looking for pcmanfm config as its clearly not working.

Extra....I know where the socket is....and any troubles I can delete it or exit to prompt delete and start afresh

Code: [Select]
ls -al .cache/ | grep pcm
srwxr-xr-x    1 tc       staff            0 Jul 13 08:47 pcmanfm-socket--0

https://imgur.com/zFAsFm2

any clues where to look thanks?
« Last Edit: July 13, 2020, 04:44:10 AM by Rich »

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 390
Re: Any pcmanfm users help me with desktop icons please?
« Reply #1 on: July 13, 2020, 02:12:47 AM »
Hi aus9,

Sorry if it doesn't work ;).
I think you should do `pcmanfm --desktop -w {background-image} &`.
Then do `pcmanfm --desktop-pref` to open preferences of desktop mode on pcmanfm.

After this, do
`find / -maxdepth 99 -mmin -$((10)) -type f` so that you can find your config file.
Add these to bootlocal.sh (only if they work) and else try this `nano ~/.config/user-dirs.dirs`.

Config files may be one of
       ~/.config/pcmanfm/default/pcmanfm.conf
       ~/.config/pcmanfm/default/desktop-items-0.conf

You should also add this file to filetool.lst for making it persistent even after reboots. But as you are a persistent user, I don't think you need this.

-w option and config files are borrowed from :
http://manpages.ubuntu.com/manpages/bionic/en/man1/pcmanfm.1.html
nano command borrowed from here :
https://wiki.lxde.org/en/PCManFM
« Last Edit: July 13, 2020, 02:28:48 AM by Sashank999 »

aus9

  • Guest
Re: Any pcmanfm users help me with desktop icons please?
« Reply #2 on: July 13, 2020, 03:18:58 AM »
@Sashank999

I forgot to add the following to original post.

1) home Desktop are read write executable already
2) /usr/local/share/applications are ram drive DUH!

edit
The find command appears for me to only output sys dir.
« Last Edit: July 13, 2020, 03:25:40 AM by aus9 »

aus9

  • Guest
Re: Any pcmanfm users help me with desktop icons please?
« Reply #3 on: July 13, 2020, 03:33:16 AM »
the first file looked goodish
Quote
------forum does not show first line its square brackets enclosing *
wallpaper_mode=center
wallpaper_common=0
wallpapers_configured=2
wallpaper0=/home/tc/1wallpapers/photo.jpg
wallpaper1=/home/tc/1wallpapers/4.jpg
desktop_bg=#000000
desktop_fg=#ffffff
desktop_shadow=#000000
desktop_font=Sans 12
show_wm_menu=1
sort=mtime;ascending;
show_documents=0
show_trash=1
show_mounts=0

/home/tc/.config/pcmanfm/default/desktop-items-0.conf

It shows I have set 2 wallpapers ....I stopped at making more for each work space.
show_wm_menu=1.....it preferred....it gives me back the context window manager menu
PLUS I get access to the desktop preferences thru the menu.

next file
Quote
/home/tc/.config/pcmanfm/default/pcmanfm.conf
[config]
bm_open_method=0

[volume]
mount_on_startup=1
mount_removable=1
autorun=1

[ui]
always_show_tabs=0
max_tab_chars=32
win_width=640
win_height=480
maximized=1
splitter_pos=251
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=places
view_mode=icon
show_hidden=0
sort=name;ascending;
toolbar=newtab;navigation;home;
show_statusbar=1
pathbar_mode_buttons=0

I am pretty sure this is the same file that interacts when in pcmanfm we click on
Edit -> Preferences as I just tested changing view mode from icon to list
and file contents changes accordingly

« Last Edit: July 13, 2020, 03:37:45 AM by aus9 »

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 390
Re: Any pcmanfm users help me with desktop icons please?
« Reply #4 on: July 13, 2020, 03:39:02 AM »
Hi aus9,

I'm sorry I forgot to add sudo for the find command. Did you test the commands with -w or --wallpaper ?

I also recommend you to look at the manpage here : http://manpages.ubuntu.com/manpages/bionic/en/man1/pcmanfm.1.html

aus9

  • Guest
Re: Any pcmanfm users help me with desktop icons please?
« Reply #5 on: July 13, 2020, 03:49:22 AM »
Hi

that man page is a good link but does not have any new files that I can peek into.
I might be forced to try another distro myself and see what I hope to see.

BTW, posting the socket helped, because I could not do some things without exit to console and deleting socket
YMMV

Quote
Did you test the commands with -w
yep

-w /pathway2/specific.jpg

but OP method is IMHO better
« Last Edit: July 13, 2020, 03:57:48 AM by aus9 »

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 390
Re: Any pcmanfm users help me with desktop icons please?
« Reply #6 on: July 13, 2020, 04:31:57 AM »
Hi aus9,

Well, if you have a clear commands list which can be executed to get the required configuration, then you could just add it to bootlocal.sh.

aus9

  • Guest
Re: Any pcmanfm users help me with desktop icons please?
« Reply #7 on: July 13, 2020, 04:40:23 AM »
Solution was  there in pulldown Edit -> Preferences (first TAB called General)
tick the box for "Don't ask options on launch executable file"

tested for icons under Desktop and /usr/local/share/applications

@Rich
Please mark as solved.

woo hoo found the config line.....
Quote
quick_exec=1

from ~/.config/libfm/libfm.conf
« Last Edit: July 13, 2020, 04:53:29 AM by aus9 »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11213
Re: [Solved] Any pcmanfm users help me with desktop icons please?
« Reply #8 on: July 13, 2020, 04:45:12 AM »
Hi aus9
Please mark as solved.
Done.

aus9

  • Guest
Re: [Solved] Any pcmanfm users help me with desktop icons please?
« Reply #9 on: July 13, 2020, 04:58:33 AM »
thanks Rich

extra to tidy up one test.

exit to console load and get into hackedbox with current libfm config line as above.
clicking "wallpaper" or Desktop icons works now as expected.

Phew, time for a beer