35 |
local command="${CLASS_ARGV[2]}" |
local command="${CLASS_ARGV[2]}" |
36 |
local icon="${CLASS_ARGV[3]}" |
local icon="${CLASS_ARGV[3]}" |
37 |
local filename="${CLASS_ARGV[4]}" |
local filename="${CLASS_ARGV[4]}" |
38 |
local xyres="${CLASS_ARGV[5]}" |
local xypos="${CLASS_ARGV[5]}" |
39 |
local widthheight="${CLASS_ARGV[6]}" |
local widthheight="${CLASS_ARGV[6]}" |
40 |
local deficon="${CLASS_ARGV[7]}" |
local deficon="${CLASS_ARGV[7]}" |
41 |
local i |
local i |
42 |
local xres |
local xpos |
43 |
local yres |
local ypos |
44 |
local iwidth |
local iwidth |
45 |
local iheight |
local iheight |
46 |
|
|
47 |
[[ -z ${action} ]] && help_idesk_icon && return 1 |
[[ -z ${action} ]] && help_idesk_icon && return 1 |
48 |
|
|
49 |
if [[ -n ${xyres} ]] |
if [[ -n ${xypos} ]] |
50 |
then |
then |
51 |
xres="${xyres%,*}" |
xpos="${xypos%,*}" |
52 |
yres="${xyres#*,}" |
ypos="${xypos#*,}" |
53 |
fi |
fi |
54 |
|
|
55 |
if [[ -n ${widthheight} ]] |
if [[ -n ${widthheight} ]] |
72 |
--command "${command}" \ |
--command "${command}" \ |
73 |
--icon "${icon}" \ |
--icon "${icon}" \ |
74 |
--filename "${filename}" \ |
--filename "${filename}" \ |
75 |
--xres "${xres}" \ |
--xpos "${xpos}" \ |
76 |
--yres "${yres}" \ |
--ypos "${ypos}" \ |
77 |
--icon-width "${iwidth}" \ |
--icon-width "${iwidth}" \ |
78 |
--icon-height "${iheight}" \ |
--icon-height "${iheight}" \ |
79 |
--default-icon "${deficon}" |
--default-icon "${deficon}" |