YAD Development - Issues with Trying to Run YAD Functionality with Embedded Shell Script

For discussions about programming, and for programming questions and advice


Moderator: Forum moderators

Post Reply
rottenMILKweiler84
Posts: 17
Joined: Fri Nov 08, 2024 9:25 pm
Been thanked: 2 times

YAD Development - Issues with Trying to Run YAD Functionality with Embedded Shell Script

Post by rottenMILKweiler84 »

Hello,

I was trying to work through examples of working with YAD. Particularly an example of embedded shell script functionality within a YAD interface.

View this part of a YAD guide to see what I am referring to:
https://yad-guide.ingk.se/notification/ ... ation.html

When trying this (on my NoblePup32 system), I often get an error that says that the version needs to be X11 to run this functionality. I try adding an additional command to force this version, and I just don't get any output from the command (like you'd expect). Below is a github comment that recommended this:

https://github.com/v1cont/yad/issues/10 ... -716888480

Whenever I have tried this additional argument, all I get is a black console screen, and nothing seems to have occurred, i.e. no YAD interactive buttons, and no shell functionality.

Thank you for the help,
rottenMILKweiler84

User avatar
rockedge
Site Admin
Posts: 7021
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 3147 times
Been thanked: 2933 times
Contact:

Re: YAD Development - Issues with Trying to Run YAD Functionality with Embedded Shell Script

Post by rockedge »

It sounds like there is some conflict with X11 and possibly Wayland.....?? I have not seen this error yet so hard to say but X11 is the graphics system that makes the screen. Wayland is the replacement for X11 and operates in a different way.

I am just throwing some ideas out here to get the ball rolling. Check to see what Noblepup32 is using!

User avatar
fredx181
Posts: 3385
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 437 times
Been thanked: 1484 times
Contact:

Re: YAD Development - Issues with Trying to Run YAD Functionality with Embedded Shell Script

Post by fredx181 »

@rottenMILKweiler84

When trying this (on my NoblePup32 system), I often get an error that says that the version needs to be X11 to run this functionality.

AFAIK Noblepup32 doesn't use wayland, or does the version you use ?
Check with: echo $XDG_SESSION_TYPE in terminal.
Outcome for me is x11 not wayland, and the yad examples work ok for me (EDIT: also the one with the tabs from github issue).

EDIT: If it's on EndeavorOs (as you wrote here https://forum.puppylinux.com/viewtopic. ... 12#p140212), then I guess that the problem cannot be solved before yad has full wayland support.

rottenMILKweiler84
Posts: 17
Joined: Fri Nov 08, 2024 9:25 pm
Been thanked: 2 times

Re: YAD Development - Issues with Trying to Run YAD Functionality with Embedded Shell Script

Post by rottenMILKweiler84 »

rockedge wrote: Fri Jan 17, 2025 2:00 pm

It sounds like there is some conflict with X11 and possibly Wayland.....?? I have not seen this error yet so hard to say but X11 is the graphics system that makes the screen. Wayland is the replacement for X11 and operates in a different way.

I am just throwing some ideas out here to get the ball rolling. Check to see what Noblepup32 is using!

rockedge,

Thank you for your input! I will definitely do some simple command line commands to see what is running!

Yeah I realize I should be checking both systems, my apologies.

Been in the process of a move and I haven't started out with bringing everything up with me.

Hope you have a great weekend,
rottenMILKweiler84

rottenMILKweiler84
Posts: 17
Joined: Fri Nov 08, 2024 9:25 pm
Been thanked: 2 times

Re: YAD Development - Issues with Trying to Run YAD Functionality with Embedded Shell Script

Post by rottenMILKweiler84 »

fredx181 wrote: Fri Jan 17, 2025 2:20 pm

@rottenMILKweiler84

When trying this (on my NoblePup32 system), I often get an error that says that the version needs to be X11 to run this functionality.

AFAIK Noblepup32 doesn't use wayland, or does the version you use ?
Check with: echo $XDG_SESSION_TYPE in terminal.
Outcome for me is x11 not wayland, and the yad examples work ok for me (EDIT: also the one with the tabs from github issue).

EDIT: If it's on EndeavorOs (as you wrote here https://forum.puppylinux.com/viewtopic. ... 12#p140212), then I guess that the problem cannot be solved before yad has full wayland support.

Hi fredx181,

Thanks for joining the discussion!

When I do 'echo $XDG_SESSION_TYPE' on my EndeavorOS, I do get wayland as my response on my EndeavorOS PC.

I might try to do some YAD in my ubuntu vm on my windows pc for now, as I don't currently have my NoblePup32 system with me at this time.

Thanks for the help and have a relaxing weekend,
rottenMILKweiler84

EDIT:
I'm also somewhat curious/want to get my terminology right, the 'XDG_SESSION_TYPE' is an environment variable for X?

User avatar
rockedge
Site Admin
Posts: 7021
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 3147 times
Been thanked: 2933 times
Contact:

Re: YAD Development - Issues with Trying to Run YAD Functionality with Embedded Shell Script

Post by rockedge »

I'm also somewhat curious/want to get my terminology right, the 'XDG_SESSION_TYPE' is an environment variable for X?

Yes it is. :thumbup: :geek:

Post Reply

Return to “Programming”