From ca613ba0ed65ea975bc516fb0c48fcd32aa6d055 Mon Sep 17 00:00:00 2001 From: Yessiest Date: Thu, 18 Nov 2021 02:32:34 +0400 Subject: [PATCH] Fixes for behaviour of os.execute in lua versions >5.1 --- libs/pam.so | Bin 34912 -> 31928 bytes libs/thumbnail.lua | 15 ++++++++++++--- modules/awesomerc.lua | 12 +++++++++++- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/libs/pam.so b/libs/pam.so index 182f05f8c54eea73a6facd24f1a13acdd8b39220..e35c601946e27bd5d400626499ecc4b3606489f3 100644 GIT binary patch literal 31928 zcmeHwdw7)9wfCEF5ic=;f}&U*5fl_7ASzzaT$nJ?+zc56l`{;P~zJC4V zJl}a9UY^N%*Ke=2_S$RjcfWh~9`?T5TUL^tmF37a%DLVlu43UtE!c6|d<;LLYU z#ou$CPqOUjRMK&G1!pTrsFSC7%3}=Odgu=>5C1iE!wkg>we>i^DlMNuXPl;Rp|;*w zByGA~rEh9Vr(4(=$Jwf>=w(BU^!k@8`Tph%N(I5yujx3&I^-jLwvmBh=xhZ$LNoRH zv|c8iruBqU9&|1KeYEZ$$*)T5-M&QG$)vM%xr9o7H$#u&^7meOTCiH@=T;A`qm-af zoju3WgCwe+MHPN0%gO2?Urxq{u58WQ@)LoRIg9TB<3LGJRhG zT8U3JJ}1w7`lN~PpE_#qt^U*Q@f>}(_wK)pJ@buot~>bF=Vm_Gy74!kx$%jC-+c6Z z*=lFjFQy#1bm;m&JpICr#b^9i)`nXiJGbzPnn~~NFZpg@RA0-Vj-HYIL+{+hPrUoe zBY!TrUuQKeSqpT+Fe#%DwBhhP1a3HdlM7Du=^4iUwFu;Jc6=^)y9@p$RNQcOa$NAa zE_jKH|5IG@9dN<#MOlaQ=T(<{N4eN}#l@e8T=0IEd^fw;|GbO*VHdp8CEstjl(qVcZ`et`7Y1VPhI@E!^NL2 z7x_=S$alE-bBzl=)5XpYT;zZ3f?wxiXNrq_(xqIp5NA(jrGu|^kq@}o|2A}ntFM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|# z3jd*ISMQ11E~vb4 z$X*2xR@TyM)J^OK;s&jsn6wU^c~#C@vW}ZaFNlYA_0$4{;gFpIdj&=GI;Zq6a1D?2gpS=npb%jA|4g#Y-ny`2#d*K7vEVqYdm9JaMY_QOd zn|hg9VKQkE#e_99vmN6xQL!_-=h zGI2>r9a6mh6p&i=(q3&)uciB&2y%R)8uPZW|*y#FFk^RM{aX9%||yyetg!r$T z=H~T430RGvZJ$1!)r6svHGg&eHKl%R+dIl$)3;_AQ{K_#Ym^=%*!Fr}NmD)luJx1a z-=gew`v~3OiZ+?VN)I}2?eB&pdp#eeDZPVkZ^`A~kz~JpsnpiAE6E_a{5Gh|IZ$c0 zHE>m}< w0HWthbgt0#*5en6b?j`Y{y21CV)G;&Ke}8gmG_WC*#}#s#%Eel(PaDo1rD=pEC2ui diff --git a/libs/thumbnail.lua b/libs/thumbnail.lua index fdc792c..e1ea4a8 100644 --- a/libs/thumbnail.lua +++ b/libs/thumbnail.lua @@ -1,17 +1,26 @@ -- A small utility function to generate thumbnails for images local spawn = require("awful.spawn") local thumbnailer = {} +-- annoying shit but that's what happens +if _VERSION ~= "Lua 5.1" then + execute = function(comm) + return select(3,os.execute(comm)) + end +else + execute = os.execute +end thumbnailer.generate = function(path,thumb_path,height) assert(type(path) == "string", "argumenr #1 (path) is not a string") assert(type(thumb_path) == "string", "argument #2 (thumbnail path) is not a string") assert(type(height) == "number","argument #3 (height) is not a number") - if os.execute("ls "..path) ~= 0 then + require("naughty").notify({text = tostring(path).." "..tostring(thumb_path.." ")..tostring(height)}) + if execute("ls "..path) ~= 0 then return false, "unable to access image directory" end - if os.execute("ls "..thumb_path) == 0 then + if execute("ls "..thumb_path) == 0 then return true end - if os.execute("mkdir "..thumb_path) ~= 0 then + if execute("mkdir "..thumb_path) ~= 0 then return false, "unable to create thumbnail directory" end spawn("mogrify -thumbnail x"..tostring(height).." -path '"..thumb_path.."' '"..path.."'/*.{jpg,png}") diff --git a/modules/awesomerc.lua b/modules/awesomerc.lua index aa228dc..5f3b7a0 100644 --- a/modules/awesomerc.lua +++ b/modules/awesomerc.lua @@ -3,6 +3,16 @@ -- It's like cron's @reboot but with additional awesomewm specific features local awful = require("awful") local rcfile = io.open(global.config_dir.."rc.lua") +local execute +-- why thank you lua changes, i appreciate this shit. +-- (luajit is deprecated my ASS, find me a faster version then) +if _VERSION ~= "Lua 5.1" then + execute = function(comm) + return select(3,os.execute(comm)) + end +else + execute = os.execute +end local execd = {} -- load persistent file for "o" tag local execd_file = io.open("/tmp/awesomerc.started","r") @@ -25,7 +35,7 @@ local function check_pid(prg) break end end - if os.execute("pgrep "..prgname) == 0 then + if execute("pgrep "..prgname) == 0 then return true else return false