panel plugin naming conventions

Brian J. Tarricone bjt23 at
Wed May 16 20:34:42 CEST 2007

On Wed, 16 May 2007 11:25:20 -0700 Grant McWilliams wrote:

>It also is being used in panels.xml as an identifier it looks like. I
>was a little confused because the order wasn't being stored in the
>diskperf-4343434343.rc files. I see it's in panels.xml like this
> <item name="diskperf" id="11793370246"/>
>So I come back to my first question, what's the best way to create this
>number using the shell?

For your case, if you're creating them programmatically via a shell
script, you'd want to do something like:

for i in 0 1 2 3 4 ; do  # assuming creating 5 plugins
    touch diskperf-`date +%s`$i.rc

>So if I'm following you correctly I just need to make sure that if I
>use date +'%s' that I add a digit [1-9] to the end and make sure it
>doesn't already exist?

Yep.  Or, since presumably the low numbers won't ever occur naturally
(until unix time wraps around in 2038, anyway), you could just start
numbering at 100 or something.  Note that the default panel config
shipped with the panel just uses single-digit numbers (which you
probably don't want to step on).


More information about the Xfce4-dev mailing list