Add a script to restart fixes during the package upgrade #2

Closed
eSh wants to merge 3 commits from restart-scripts into main
Owner
No description provided.
eSh added 2 commits 2022-09-17 21:36:39 +00:00
rokosun requested changes 2022-09-18 10:38:02 +00:00
@ -0,0 +1,6 @@
post_upgrade() {
kill $(ps aux | grep '[f]ix-flatpaks-theming\|[f]ix-theming\|[f]ix-tweaked-desktop-files' | awk '{print $2}')
Owner

Here it might be better to use this command instead:

killall -r 'fix-(flatpaks-theming|theming|tweaked-desktop-files)'
Here it might be better to use this command instead: ```bash killall -r 'fix-(flatpaks-theming|theming|tweaked-desktop-files)' ```
eSh marked this conversation as resolved
rokosun reviewed 2022-09-18 10:52:22 +00:00
@ -0,0 +2,4 @@
kill $(ps aux | grep '[f]ix-flatpaks-theming\|[f]ix-theming\|[f]ix-tweaked-desktop-files' | awk '{print $2}')
fix-tweaked-desktop-files &
fix-theming &
fix-flatpaks-theming &
Owner

If the scripts don't work running as root then try running it like this:

sudo -u "$SUDO_USER" fix-tweaked-desktop-files &
sudo -u "$SUDO_USER" fix-theming &
sudo -u "$SUDO_USER" fix-flatpaks-theming &

Maybe it creates a sub-process under pacman and that causes some issues, so in that case its good to try this one too:

sudo -u "$SUDO_USER" setsid -f fix-tweaked-desktop-files
sudo -u "$SUDO_USER" setsid -f fix-theming
sudo -u "$SUDO_USER" setsid -f fix-flatpaks-theming
If the scripts don't work running as root then try running it like this: ```bash sudo -u "$SUDO_USER" fix-tweaked-desktop-files & sudo -u "$SUDO_USER" fix-theming & sudo -u "$SUDO_USER" fix-flatpaks-theming & ``` Maybe it creates a sub-process under pacman and that causes some issues, so in that case its good to try this one too: ```bash sudo -u "$SUDO_USER" setsid -f fix-tweaked-desktop-files sudo -u "$SUDO_USER" setsid -f fix-theming sudo -u "$SUDO_USER" setsid -f fix-flatpaks-theming ```
eSh marked this conversation as resolved
eSh added 1 commit 2022-09-18 10:58:33 +00:00
rokosun approved these changes 2022-09-18 10:59:57 +00:00
Owner

I'm still learning how these git features work, lol 😄

I'm still learning how these git features work, lol 😄
Author
Owner

I'm still learning how these git features work, lol 😄

You're doing very good 😄

> I'm still learning how these git features work, lol 😄 You're doing very good 😄
Owner

Does it work now? Or it still doesn't restart the scripts?

Does it work now? Or it still doesn't restart the scripts?
Author
Owner

Does it work now? Or it still doesn't restart the scripts?

Yeah, unfortunately, it doesn't 😞 We got some sudo usage issues while testing, @tio shared an output in the TROMjaro chat.

> Does it work now? Or it still doesn't restart the scripts? Yeah, unfortunately, it doesn't 😞 We got some `sudo` usage issues while testing, @tio shared an output in the TROMjaro chat.
eSh added the
invalid
label 2022-09-18 14:23:53 +00:00
Author
Owner

Unfortunately, this approach most probably won't work 😞 The reason is it's hard to control the scripts running on the user level from the root user or on the system level. I couldn't find any info about that so far, but we can return to this later. Closing for now.

Unfortunately, this approach most probably won't work 😞 The reason is it's hard to control the scripts running on the user level from the root user or on the system level. I couldn't find any info about that so far, but we can return to this later. Closing for now.
eSh closed this pull request 2022-09-18 15:56:27 +00:00
eSh deleted branch restart-scripts 2022-09-18 22:36:16 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TROMjaro/fixes-package#2
No description provided.