GUFW Segmentation fault

kde
firewall
gui

#11

tests :
load plasma ,

  • in konsole,tilix : PATH is false
  • but after, open a tty3 : PATH is good in tty3 no /bin at first

:crazy_face:

my Archlinux, PATH is always good ! same 2 /etc/profile


#12

same here. and then in tty which return the right /usr/bin…
where the ■■■■ it’s changed… it’s the same on arch @papajoke ?


#13

it comes from sddm.conf in /etc.
I guess it’s the kcm for plasma settings that put it. as the default setting in /usr don’t have /bin.

no it does not seems to add it… :thinking:

after removing the PATH line in the [user] goup in my /etc/sddm.conf
this is my new PATH output.

echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

and gufw works as expected.

@kdemeoz


Polkit and pkexec
Polkit and pkexec
Testing Manjaro 18 Illyria KDE
[Stable Update] 2018-05-07 - Kernels, Mesa, Glibc, PHP, Nvidia, Plasma5, Firefox
When is dolphin going to be updated to use polkit?
[Stable Update] 2018-05-17 - GCC8, Gimp, KDE, Gnome, Deepin, Firefox
#14

CONFIRMED!
Nice job :wink: Marked as solution too, and maybe someone will take care of this with the next update … or something :smiley:


#15

I created a pull request


#16

to add in wiki polkit break in plasma … (my english is too bad)


#17

done :wink:


#18

its again normal to have /etc/sddm.conf ? for me no ! view man sddm.conf

ps: i dont have with arch

NOW, i use /sddm.conf.d/ for personnal changes

ls /etc/sddm.conf.d/*;cat /etc/sddm.conf.d/*
/etc/sddm.conf.d/theme.conf  /etc/sddm.conf.d/user.conf
[Theme]
# Current theme name
Current=breeze

# Cursor theme used in the greeter
CursorTheme=Adwaita
[Users]

# Remember the session of the last successfully logged in user
RememberLastSession=true

# Remember the last successfully logged in user
RememberLastUser=true

# When logging in as the same user twice, restore the original session, rather than create a new one
ReuseSession=true

#19

to be honnest I don’t really understand the “new” policy about config files in /usr , /etc, etc.
for me if you modify the config that seems normal to be in /etc.

maybe the default config for the distro should be in /usr but not the same file as the package so…

does the module of plasma will use it if it exist? as for now it still use /etc/sddm.conf
then it’s problematic I think to have “both” that manjaro use “/sddm.conf.d” to set the “default theme etc” and aferwards the kcm module sddm.conf.


#20

yes, plasma create a new file /etc/sddm.conf
BUT
/etc/sddm.conf.d/* override this file

its a arch way :laughing:


#21

it’s few release ago that sddm introduce /etc/sddm.conf.d If I’m not wrong, until the KCM follow it what’s the best? :blush:

in release 0.16.0.
but it seems with the github that the last one parsed is sddm.conf so it should be possible to manjaro devs to use sddm.conf.d

Configuration is loaded in the following order:

All files in /usr/lib/sddm/sddm.conf.d in alphabetical order
All files in /etc/sddm.conf.d in alphabetical order
Finally from /etc/sddm.conf for compatibility

#22

I have no /etc/sddm.conf.d in any of my testing and unstable installs
In /usr/lib/sddm/sddm.conf.d the sddm.conf is the same as the /etc/sddm.conf.pacnew i found only in one of two testing installs i have …
Edit: and is different in the other install, right at the

[Users]
# Default $PATH for logged in users
DefaultPath=/usr/local/sbin:/usr/local/bin:/usr/bin

that seems to be correct …


#23

Hey, i saw my name there… blush!

I am right now part-way into the DL of this update on Tower, & it’s night time here already, so i shall try this solution tomorrow.

However right now i just wanna exclaim… you people are amazingly excellent. How wonderful it was for me to watch the energy & enthusiasm you all exhibited investigating & troubleshooting this problem a couple of us discovered earlier. Great community… gawd i’m pleased to have found Manjaro :slight_smile:


#24

for a quick fix

[ -f /etc/sddm.conf ] && sudo sed -i -re 's/^(DefaultPath=\/bin.*)/# \1/i' /etc/sddm.conf

Timeshift doesn't open
Gufw / ufw startet in KDE nicht mehr
#25

From the source:

Meaning, /etc/sddm.conf to rule them all! :wink:

Currently Archlinux PKGBUILD does:

# Move sddm.conf to /usr/lib https://bugs.archlinux.org/task/56609
  mkdir "$pkgdir"/usr/lib/sddm/sddm.conf.d
  mv "$pkgdir"/{etc/sddm.conf,usr/lib/sddm/sddm.conf.d}

# Don't set PATH in sddm.conf
  sed -r 's|DefaultPath=.*|DefaultPath=/usr/local/sbin:/usr/local/bin:/usr/bin|g' -i "$pkgdir"/usr/lib/sddm/sddm.conf.d/sddm.conf
# Unset InputMethod https://github.com/sddm/sddm/issues/952
  sed -e "/^InputMethod/s/qtvirtualkeyboard//" -i "$pkgdir"/usr/lib/sddm/sddm.conf.d/sddm.conf

The resulting default in /usr/lib/sddm/sddm.conf.d/sddm.conf is

[Autologin]
# Whether sddm should automatically log back into sessions when they exit
Relogin=false

# Name of session file for autologin session (if empty try last logged in)
Session=

# Username for autologin session
User=


[General]
# Halt command
HaltCommand=/usr/bin/systemctl poweroff

# Input method module
InputMethod=

# Initial NumLock state. Can be on, off or none.
# If property is set to none, numlock won't be changed
# NOTE: Currently ignored if autologin is enabled.
Numlock=none

# Reboot command
RebootCommand=/usr/bin/systemctl reboot


[Theme]
# Current theme name
Current=

# Cursor theme used in the greeter
CursorTheme=

# Number of users to use as threshold
# above which avatars are disabled
# unless explicitly enabled with EnableAvatars
DisableAvatarsThreshold=7

# Enable display of custom user avatars
EnableAvatars=true

# Global directory for user avatars
# The files should be named <username>.face.icon
FacesDir=/usr/share/sddm/faces

# Theme directory path
ThemeDir=/usr/share/sddm/themes


[Users]
# Default $PATH for logged in users
DefaultPath=/usr/local/sbin:/usr/local/bin:/usr/bin

# Comma-separated list of shells.
# Users with these shells as their default won't be listed
HideShells=

# Comma-separated list of users that should not be listed
HideUsers=

# Maximum user id for displayed users
MaximumUid=60000

# Minimum user id for displayed users
MinimumUid=1000

# Remember the session of the last successfully logged in user
RememberLastSession=true

# Remember the last successfully logged in user
RememberLastUser=true

# When logging in as the same user twice, restore the original session, rather than create a new one
ReuseSession=false


[Wayland]
# Enable Qt's automatic high-DPI scaling
EnableHiDPI=false

# Path to a script to execute when starting the desktop session
SessionCommand=/usr/share/sddm/scripts/wayland-session

# Directory containing available Wayland sessions
SessionDir=/usr/share/wayland-sessions

# Path to the user session log file
SessionLogFile=.local/share/sddm/wayland-session.log


[X11]
# Path to a script to execute when starting the display server
DisplayCommand=/usr/share/sddm/scripts/Xsetup

# Path to a script to execute when stopping the display server
DisplayStopCommand=/usr/share/sddm/scripts/Xstop

# Enable Qt's automatic high-DPI scaling
EnableHiDPI=false

# The lowest virtual terminal number that will be used.
MinimumVT=1

# Arguments passed to the X server invocation
ServerArguments=-nolisten tcp

# Path to X server binary
ServerPath=/usr/bin/X

# Path to a script to execute when starting the desktop session
SessionCommand=/usr/share/sddm/scripts/Xsession

# Directory containing available X sessions
SessionDir=/usr/share/xsessions

# Path to the user session log file
SessionLogFile=.local/share/sddm/xorg-session.log

# Path to the Xauthority file
UserAuthFile=.Xauthority

# Path to xauth binary
XauthPath=/usr/bin/xauth

# Path to Xephyr binary
XephyrPath=/usr/bin/Xephyr

In any case our current override of DefaultPath doesn’t seem to make any sense. Let’s remove it as in @scachemaille PR. Thank you.


#26

I just finished my update via Tty my install went well although I was a little uneasy with all the negative feed back from this update. I checked as soon as it was complete and GUFW started fine for me. I checked my path and it was already as suggested in the solution. So, lucky me no fiddling required. I also had a pleasant surprise as soon as it was done. I’d been fighting with my mouse for a while now and thinking it was just getting old. As soon as the install was done I realized wow my mouse is like brand new again. Somebody got that fix right anyways. Whew glad that ones over with. Now the pacnew files to deal with.


#27

A bit late, I know but I was very busy for work even though it is +30 degrees here.
I just wanted to tell that the solution also works for me.

There is just one question though:
I’ve got a thousands plus items in the /bin folder which now is no longer part of $PATH. Could it happen now that something else does not work cause it relies on /bin being in $PATH? What if /bin is at the end of the path variable. Obviously Gufw doesn’t need it, it uses one of the other directories, so it’s not in the way, is it?
A program which should need it can still find it eventhough it is at the end (or somewhere in the middle).
How about that?


#28

all is pointing to /usr/bin and it should not be a problem… you would have seen before,
as the sddm path was “active” only after the update of filesystem as they changed the way it initialize PATH variable… before it was simply redefined and the sddm definition was just overridden. then there was already no /bin in your PATH


#29

/bin and /usr/bin/ are the same directories

ls -l /bin
lrwxrwxrwx 1 root root 7 27.04.2018 13:51 /bin -> usr/bin/

just polkit want a absolute path (/usr/bin/timeshift) and want /usr/bin not /bin (view actions in /usr/share/polkit-1/actions/*)

grep "exec.path.*bin" /usr/share/polkit-1/actions/*.policy

sorry tbg : missclick, was for DeMus


#30

I’ll wait till “the next update…or something” :wink: .

It’ll come for sure. Patience is a virtue :slight_smile: