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 10-11-2020, 03:06 PM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
what makes a disk icon appear on the desktop in Xfce?


what makes a disk icon appear on the desktop in Xfce? some process has be doing this. if i create a .desktop file with the appropriate settings in it in my ~/Desktop directory then those icons get added to the desktop (i've added over 200, some auto-generated). i'm curious how the icons for mountable disk space are handled.
 
Old 10-11-2020, 03:35 PM   #2
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
That's a configurable setting. Right-click on any unoccupied space on the desktop, select Desktop Settings, the Icons tab, and at the bottom there is an area called Default Icons. Tick the box of the ones you want displayed, uncheck the ones you don't.
 
Old 10-11-2020, 07:41 PM   #3
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
went there. it shows these: Home, Filesystem, Trash, Removable Devices. all appear to be selected and i do want these 4. i'm more asking about a particular removable device. i want to know what makes each of these show up. does it scan for devices or is a message sent to it? and where does it keep all the details about each device so that it knows what to do when a mount is requested by someone who is authorized? what about devices like plug-in devices, as opposed to permanent devices, as seen by non-sudo users?
 
Old 10-11-2020, 08:04 PM   #4
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
When a device is connected, an entry is made in /dev, which is the directory for devices. Disks are identified in /dev/disk. Explore your /dev directory and you may find more interesting details.
 
Old 10-12-2020, 05:36 PM   #5
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Code:
lt2a/skaperen /home/skaperen 30> sudo rls +b-l /dev
brw-rw----   1 root     disk            7,0 2020-10-10.06:41:14 /dev/loop0
brw-rw----   1 root     disk            7,1 2020-10-08.16:11:01 /dev/loop1
brw-rw----   1 root     disk            7,2 2020-10-08.16:11:01 /dev/loop2
brw-rw----   1 root     disk            7,3 2020-10-08.16:11:01 /dev/loop3
brw-rw----   1 root     disk            7,4 2020-10-08.16:11:01 /dev/loop4
brw-rw----   1 root     disk            7,5 2020-10-08.16:11:01 /dev/loop5
brw-rw----   1 root     disk            7,6 2020-10-08.16:11:01 /dev/loop6
brw-rw----   1 root     disk            7,7 2020-10-08.16:11:01 /dev/loop7
brw-rw----   1 root     disk            8,0 2020-10-12.18:23:33 /dev/sda
brw-rw----   1 root     disk            8,1 2020-10-12.18:23:33 /dev/sda1
brw-rw----   1 root     disk            8,2 2020-10-12.18:23:33 /dev/sda2
brw-rw----   1 root     disk            8,4 2020-10-12.18:23:33 /dev/sda4
brw-rw----   1 root     disk           8,16 2020-10-12.18:23:33 /dev/sdb
brw-rw----   1 root     disk           8,17 2020-10-12.18:23:33 /dev/sdb1
brw-rw----   1 root     disk           8,18 2020-10-12.18:23:33 /dev/sdb2
brw-rw----   1 root     disk           8,32 2020-10-12.18:23:33 /dev/sdc
brw-rw----   1 root     disk           8,33 2020-10-12.18:23:34 /dev/sdc1
brw-rw----   1 root     disk           8,34 2020-10-12.18:23:34 /dev/sdc2
brw-rw----   1 root     disk           8,36 2020-10-12.18:23:34 /dev/sdc4
lt2a/skaperen /home/skaperen 31>
i assume type c devices don't matter as file systems, so i used my rls program to list all the type b devices.
 
Old 10-12-2020, 06:29 PM   #6
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
I don't know what rls is. What OS/distro is that from? The prompt is also unfamiliar to me. If you're running something other than mainstream Linux, I have no idea how things are done on your system.
 
Old 10-12-2020, 08:28 PM   #7
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
rls is a program i created to list recursively in an easier way than ls or find. the +b option tells it to list only block devices.
Code:
lt2a/forums /home/forums 63> rls -h

rls version 0.9.0

syntax:
        rls  [options]  [names]

single letter options may be combined in a single command line token:
        -0 -1 -2 -3 -4 -5 -6 -7 -8 -9 maximum depth
        -a      append '/' to directory names
        -b      show blocks allocated
        -d -D   show date (-d for local, -D for UTC)
        -g -G   show group name (-G for group number)
        -h -H   show this help and quit
        -i      show inode
        -l      show long format
        -L      show number of links
        -m      show mode
        -n      append nanoseconds to time (if available)
        -N      append nanoseconds to time (if available)
        -p      show where link points to
        -q      output nothing
        -s      show size
        -S      show time/date as raw seconds
        -t -T   show time and date (-t for local, -T for UTC)
        -u -U   show user name (-U for number)
        -V      show version number and quit
        +a      select directories (ascending)
        +b      select block devices
        +c      select character devices
        +d      select directories (descending)
        +h +H   show this help and quit
        +f      select regular files
        +l      select symlinks
        +p      select pipes
        +s      select sockets
        +V      show version number and quit

assignment options must be in separate command line tokens:
        cd=<directory>  change to this directory (multiple)
        maxdepth=<num>  maximum recursion depth

lt2a/forums /home/forums 64>
 
Old 10-13-2020, 02:54 AM   #8
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
Quote:
Originally Posted by Skaperen View Post
what makes a disk icon appear on the desktop in Xfce? some process has be doing this.
One word:
gvfs (and the desktop manager - xfdesktop in your case).
Well, that's not the whole explanation but it's as good a starting point as any.
 
Old 10-13-2020, 12:52 PM   #9
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
so how does it get this information and how does it know which one if there is a request to mount it?
 
  


Reply



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
Doc and Pdf reader icons don't appear on Xfce desktop. avinash.rao Ubuntu 0 07-07-2009 10:02 PM
Desktop icon for flash drive not appear automatically masmoudi Linux - Desktop 3 05-25-2009 12:52 AM
cd r/w device icon doesn't appear on desktop hitlar Fedora 4 05-26-2006 09:27 PM
My Network Browsing desktop icon is gone > my network browsing desktop icon i kkempter SUSE / openSUSE 1 01-12-2006 12:14 PM
USB memory drive key works but icon doesn't appear on the desktop Youssef_C Mandriva 1 06-05-2005 02:18 PM

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

All times are GMT -5. The time now is 02:59 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
Open Source Consulting | Domain Registration