انجمنهای فارسی اوبونتو
کمک و پشتیبانی => میزکارهای فانتزی و ۳ بعدی => نویسنده: #elahe# در 03 فروردین 1395، 06:10 بظ
-
من کانکی رو از اینجا دانلود کردم
http://gnome-look.org/content/show.php/Conky+lua?content=139024
فایلها رو تغییر نام دادم و جابجا کردم و یکی دو جایی که نیاز به ادیت داشت رو ادیت کردم
ولی وقتی از ترمینال اجراش میکنم همچین خطایی میده:
Conky: llua_do_call: function conky_clock_rings execution failed: attempt to call a nil value
اون فانکشنی هم که بهش گیر داده اینه:
function conky_clock_rings()
local function setup_rings(cr,pt)
local str=''
local value=0
str=string.format('${%s %s}',pt['name'],pt['arg'])
str=conky_parse(str)
value=tonumber(str)
pct=value/pt['max']
draw_ring(cr,pct,pt)
end
-
تغییر:
value=tonumber(str)
pct=value/pt['max']
به:
value=tonumber(str)
if (value == nil) then value = 0 end
pct=value/pt['max']
منبع: http://ubuntuforums.org/showthread.php?t=1280453&p=8089170#post8089170
-
قبلا سرچ کردم و این جوابها رو دیدم تو اسک اوبونتو و ....
ولی راه حل این نبود
مسیرها رو عوض کردم و اون خطا رفع شد
حالا کالنکی رو که اجرا میکنم تو دابل بافر گیر میکنه و خودم باید ترمینال رو متوقف کنم
فکر کنم اون سایتی که ازش سرویس میگیره مشکل داره!
Conky: desktop window (1c00026) is subwindow of root window (2dd)
Conky: window type - override
Conky: drawing to created window (0x3200001)
Conky: drawing to double buffer
^CConky: received SIGINT or SIGTERM to terminate. bye!