Zenity function

i wanted to put this code on a list zenity but it never worsk, how would i be able to do that?

cd /home/mint
ls -d */

Are you trying to see the things that are somehow lower level than root? That won't work.

What are you actually trying to do?

im trying to put the code cd /home/mint
ls -d within a zenity list so that it can be displayed, but some how i always get a syntax error

Your syntax is wrong. The error spelled this out

ls -d */

is incorrect. If you wish to make it work then you may want to do this

ls -d /*

I tried to explain in my last post that you were looking the wrong way as in in behind root. You cannot do that.