Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Script behaviour that is attached to init at master exit
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1925
Location: Switzerland (Romandie)

PostPosted: Tue Feb 04, 2025 3:14 pm    Post subject: Reply with quote

setpriv seam to be the best solution in my case. I still have to change the scripts to get ride of the PID file, but to use FvwmPrompt to tell fvwm to set infostore variables with the PID of the scripts for use in the associated functions should do it.

Thanks You all, to debug this made me to do a lot of home work. 8)
_________________
"Confirm You are a robot." - the singularity
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1806
Location: South America

PostPosted: Wed Feb 05, 2025 12:54 pm    Post subject: Reply with quote

Which one was the script described in the OP that got reparented to process 1 when fvwm3 terminated? Is it in FVWM-Crystal's Git repository?
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1925
Location: Switzerland (Romandie)

PostPosted: Wed Feb 05, 2025 10:32 pm    Post subject: Reply with quote

GDH-gentoo wrote:
Which one was the script described in the OP that got reparented to process 1 when fvwm3 terminated? Is it in FVWM-Crystal's Git repository?


I just made some commits, more will follow later or tomorrow. They are here:
AutoHibernate
DeCheckMounts
ScreenLidSuspend

Edit: for now, only DeCheckMounts is started with the new wrapper fvwm function that use "Exec exec setpriv ...".
Edit2: I will first made that script and the fvwm ExecScript and KillExecScript functions to work with the infostore variables, that before porting these changes to the 2 other scripts.
_________________
"Confirm You are a robot." - the singularity
Back to top
View user's profile Send private message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1925
Location: Switzerland (Romandie)

PostPosted: Mon Feb 10, 2025 12:05 pm    Post subject: Reply with quote

I updated these scripts and the related fvwm functions on github. That seam to works fine on my desktop, but I still get strange issues on the laptop. That laptop is more powerful than the desktop and it get updated more often. These strange issues includes shell commands that don't gives the same result at the prompt and into a script.

So, I shifted on the desktop and on the laptop, I am doing a try with an emerge world and masking the ~amd64 versions of glibc, which will downgrade gcc14 to gcc13. I guess that, if that don't gives me a good working system, the less time consuming option would be to start from the scratch a fresh install on that laptop.
_________________
"Confirm You are a robot." - the singularity
Back to top
View user's profile Send private message
sublogic
Guru
Guru


Joined: 21 Mar 2022
Posts: 310
Location: Pennsylvania, USA

PostPosted: Mon Feb 10, 2025 11:35 pm    Post subject: Reply with quote

Dominique_71 wrote:
... I am doing a try with an emerge world and masking the ~amd64 versions of glibc, which will downgrade gcc14 to gcc13.
And also downgrade glibc, no ? Isn't that dangerous ?
15 year old thread here, but there you go.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum