Taskbar shortcut to a directory instead of a file? [SOLVED]

Booting, installing, newbie
Post Reply
Message
Author
liro

Taskbar shortcut to a directory instead of a file? [SOLVED]

#1 Post by liro »

This is a really basic question but I can't work out how to do it :roll: ...

In my /root/.jwmrc-tray file, the taskbar shortcuts are listed in this format:

<TrayButton popup="program_name" icon="/icons/icon.png">exec:program_name</TrayButton>

Instead of "exec:program_name", what would I have to put for the shortcut to open a specified directory when I click on it?

Thanks
Last edited by liro on Mon 10 Dec 2012, 15:52, edited 1 time in total.

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#2 Post by 8-bit »

How about <TrayButton popup="program_name" icon="/icons/icon.png">exec:program_name</TrayButton>
With exec:program_name being "exec:rox directory_name"

I tried it in a terminal with "rox /root/my-applications" and it opened that directory fine.

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

Taskbar shortcut to a directory instead of a file?

#3 Post by ETP »

Hi liro,

Working example:

Code: Select all

<TrayButton popup="Pictures and Wallpaper" icon="/usr/local/lib/X11/themes/faenza_lrx_new/qp-icon.png">exec:rox /usr/share/backgrounds</TrayButton>
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

liro

#4 Post by liro »

Thanks to you both, working now : ).

User avatar
Makoto
Posts: 1665
Joined: Fri 04 Sep 2009, 01:30
Location: Out wandering... maybe.

#5 Post by Makoto »

Just curious - would creating a symlink to the directory and pointing the exec: line to that symlink also work? :)
[ Puppy 4.3.1 JP, Frugal install ] * [ XenialPup 7.5, Frugal install ] * [XenialPup 64 7.5, Frugal install] * [ 4GB RAM | 512MB swap ]
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).

Post Reply