xorgwizard call function from different script (using LunarPup)

Post here if you feel others can duplicate your so discovered "bug"

Moderator: Forum moderators

Post Reply
User avatar
AntonioPt
Posts: 306
Joined: Wed Aug 11, 2021 7:41 pm
Has thanked: 130 times
Been thanked: 55 times

xorgwizard call function from different script (using LunarPup)

Post by AntonioPt »

Hello all,

I was working in xorgwizard today, try to improve translation and to clean a bit better all so and i notice an odd issue.

When calling a second GUI from xorgwizard "My xorgwizard in a different path" i notice that the script is calling the function from the OS /usr/sbin/xorgwizard instead of mine can anyone explain me why this is happening ?

Gonna share a link of my website with a video of 6mb since i can't share it here for being to big
P.S. this is from LunarPup
[media]http://patinsemlinhaslalom.altervista.o ... wizard.mp4[/media]

@norgo @bigpup @nilsonmorales @rockedge @BarryK @josejp2424 @mikewalsh ... :) sorry if i mention too many but you guys are the ones at the top of my head :D and thxx in advance :)

Last edited by Wiz57 on Sat Mar 22, 2025 1:27 am, edited 2 times in total.

Why astronauts use Linux
Because you can't open windows in space

User avatar
AntonioPt
Posts: 306
Joined: Wed Aug 11, 2021 7:41 pm
Has thanked: 130 times
Been thanked: 55 times

Re: xorgwizard call function from different script (using LunarPup)

Post by AntonioPt »

Just realize today when i click in xorgwizard-cli OS frozen /LunarPup, FossaPup, Bookworm and maybe many others

Why astronauts use Linux
Because you can't open windows in space

User avatar
josejp2424
Posts: 264
Joined: Sun Jul 12, 2020 11:40 pm
Has thanked: 274 times
Been thanked: 172 times

Re: xorgwizard call function from different script (using LunarPup)

Post by josejp2424 »

AntonioPt wrote: Thu Mar 20, 2025 7:12 pm

Hello all,

I was working in xorgwizard today, try to improve translation and to clean a bit better all so and i notice an odd issue.

When calling a second GUI from xorgwizard "My xorgwizard in a different path" i notice that the script is calling the function from the OS /usr/sbin/xorgwizard instead of mine can anyone explain me why this is happening ?

Gonna share a link of my website with a video of 6mb since i can't share it here for being to big
P.S. this is from LunarPup
[media]http://patinsemlinhaslalom.altervista.o ... wizard.mp4[/media]

@norgo @bigpup @nilsonmorales @rockedge @BarryK @josejp2424 @mikewalsh ... :) sorry if i mention too many but you guys are the ones at the top of my head :D and thxx in advance :)

Those scripts have always been there. In addition to xorgwizard, there are also xorgwizard-cli, xorgwizard-automatic, and xserverwizard, which are symbolic links (symlinks) pointing to xorgwizard.

Greetings.

User avatar
AntonioPt
Posts: 306
Joined: Wed Aug 11, 2021 7:41 pm
Has thanked: 130 times
Been thanked: 55 times

Re: xorgwizard call function from different script (using LunarPup)

Post by AntonioPt »

yeah i know but there is bugs and i was wondering why it calls function out the script that im working, then xorgwizard-cli if you click on it will frozen machine lol

Anyway gonna see for solutions even if i have to do some from scratch :)

josejp2424 wrote: Sat Mar 22, 2025 5:20 pm
AntonioPt wrote: Thu Mar 20, 2025 7:12 pm

Hello all,

I was working in xorgwizard today, try to improve translation and to clean a bit better all so and i notice an odd issue.

When calling a second GUI from xorgwizard "My xorgwizard in a different path" i notice that the script is calling the function from the OS /usr/sbin/xorgwizard instead of mine can anyone explain me why this is happening ?

Gonna share a link of my website with a video of 6mb since i can't share it here for being to big
P.S. this is from LunarPup
[media]http://patinsemlinhaslalom.altervista.o ... wizard.mp4[/media]

@norgo @bigpup @nilsonmorales @rockedge @BarryK @josejp2424 @mikewalsh ... :) sorry if i mention too many but you guys are the ones at the top of my head :D and thxx in advance :)

Those scripts have always been there. In addition to xorgwizard, there are also xorgwizard-cli, xorgwizard-automatic, and xserverwizard, which are symbolic links (symlinks) pointing to xorgwizard.

Greetings.

Why astronauts use Linux
Because you can't open windows in space

User avatar
MochiMoppel
Posts: 1343
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 521 times

Re: xorgwizard call function from different script (using LunarPup)

Post by MochiMoppel »

AntonioPt wrote: Sat Mar 22, 2025 6:09 pm

xorgwizard-cli if you click on it will frozen machine

The file has -cli in its name, indicating that it MUST be run from a terminal. I don't understand why you expect it to work when you do NOT run it from a terminal.
Please review your previous post. Same issue. Your mistake and not a bug.

However I do see a problem of the xorgwizard script, starting at line 12

Code: Select all

[ -z "$DISPLAY" -a -z "$WAYLAND_DISPLAY" ] && CLI=1
[ "$XDG_SESSION_TYPE" = 'wayland' ] && CLI=''
case $script in
	xorgwizard-cli) CLI=1 ;;
	xorgwizard-automatic) AUTOMATIC=1 ;;
esac

It seems to me that the line xorgwizard-cli) CLI=1 ;; shouldn't exist. It overrides the setting for the CLI variable of the first line, without checking if the necessary conditions are met. The line [ -z "$DISPLAY" -a -z "$WAYLAND_DISPLAY" ] && CLI=1 would sufficiently ensure that xorgwizard or xorgwizard-cli run in cli mode if invoked from a real terminal, not a console window or a GUI. In all other cases both scripts would run in GUI mode, avoiding the problem you encountered.

BTW: The file xorgwizard-automatic, also a symlink to xorgwizard, runs in GUI mode when clicked, so no harm done. However when run from a virtual console window it surprises with the message "If you are reading this, then you are at the console without X running. The usual thing now is to type 'xwin' to start X..."
The usual thing is to ignore this lie because I definitely can read this while running X :lol:

User avatar
AntonioPt
Posts: 306
Joined: Wed Aug 11, 2021 7:41 pm
Has thanked: 130 times
Been thanked: 55 times

Re: xorgwizard call function from different script (using LunarPup)

Post by AntonioPt »

MochiMoppel wrote: Sun Mar 23, 2025 2:10 am
AntonioPt wrote: Sat Mar 22, 2025 6:09 pm

xorgwizard-cli if you click on it will frozen machine

The file has -cli in its name, indicating that it MUST be run from a terminal. I don't understand why you expect it to work when you do NOT run it from a terminal.
Please review your previous post. Same issue. Your mistake and not a bug.

However I do see a problem of the xorgwizard script, starting at line 12

Code: Select all

[ -z "$DISPLAY" -a -z "$WAYLAND_DISPLAY" ] && CLI=1
[ "$XDG_SESSION_TYPE" = 'wayland' ] && CLI=''
case $script in
	xorgwizard-cli) CLI=1 ;;
	xorgwizard-automatic) AUTOMATIC=1 ;;
esac

It seems to me that the line xorgwizard-cli) CLI=1 ;; shouldn't exist. It overrides the setting for the CLI variable of the first line, without checking if the necessary conditions are met. The line [ -z "$DISPLAY" -a -z "$WAYLAND_DISPLAY" ] && CLI=1 would sufficiently ensure that xorgwizard or xorgwizard-cli run in cli mode if invoked from a real terminal, not a console window or a GUI. In all other cases both scripts would run in GUI mode, avoiding the problem you encountered.

BTW: The file xorgwizard-automatic, also a symlink to xorgwizard, runs in GUI mode when clicked, so no harm done. However when run from a virtual console window it surprises with the message "If you are reading this, then you are at the console without X running. The usual thing now is to type 'xwin' to start X..."
The usual thing is to ignore this lie because I definitely can read this while running X :lol:

Thxx for the feedback but i didn't change nutting this is the "Original code" :D this is why i was confused beside i all so notice if i run xorgwizard-cli machine frozen and its in all puppys or at least fossa, Lunar and bookworm since i test it in all :D

Why astronauts use Linux
Because you can't open windows in space

User avatar
MochiMoppel
Posts: 1343
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 521 times

Re: xorgwizard call function from different script (using LunarPup)

Post by MochiMoppel »

AntonioPt wrote: Sun Mar 23, 2025 3:39 pm

Thxx for the feedback but i didn't change nutting this is the "Original code"

???
I didn't say that you changed anything. My feedback refers to the "Original code". I only tried to explain that you use xorgwizard-cli in a way it should not be used.

User avatar
AntonioPt
Posts: 306
Joined: Wed Aug 11, 2021 7:41 pm
Has thanked: 130 times
Been thanked: 55 times

Re: xorgwizard call function from different script (using LunarPup)

Post by AntonioPt »

MochiMoppel wrote: Mon Mar 24, 2025 2:46 am
AntonioPt wrote: Sun Mar 23, 2025 3:39 pm

Thxx for the feedback but i didn't change nutting this is the "Original code"

???
I didn't say that you changed anything. My feedback refers to the "Original code". I only tried to explain that you use xorgwizard-cli in a way it should not be used.

yeah yeah sorry i didn't mean nutting wrong as well all good :) and thxx :)

Why astronauts use Linux
Because you can't open windows in space

Post Reply

Return to “Bug Reports”