On 31 Oct 2025 at 22:38, Samuel Sieb wrote:
Date sent: Fri, 31 Oct 2025 22:38:41 -0700
Subject: Re: Issue with Fedora 43 difference with gedit and
geany with root
user.
To: Community support for Fedora users
<[email protected]>
From: Samuel Sieb <[email protected]>
Send reply to: Community support for Fedora users
<[email protected]>
> On 10/31/25 10:23 PM, Michael D. Setzer II wrote:
> > On 31 Oct 2025 at 21:13, Samuel Sieb wrote:
> >> On 10/31/25 6:56 PM, Michael D. Setzer II via users wrote:
> >>> On 1 Nov 2025 at 1:20, Joe Average wrote:
> >>>> Michael D. Setzer II wrote:
> >>>>> Have generally used geany for editing lots of files with both regular
> >>>>> user and root user, but after upgrading a test machine it no longer
> >>>>> worked.
> >>>>> Running as regular user was fine, but runnings as root, would fail,
> >>>>> and would then mess up with regular user since it would create a
> >>>>> file .config/geany that was owned by root? Had to delete that file to
> >>>>> fix issue.
> >>>>
> >>>> just checked:
> >>>> become root: sudo -s
> >>>> geany 1.file 2.file
> >>>>
> >>>> create a directory /root/.config/geany (if not exists), what is owned by
> >>>> root
> >>>> users config's regarding geany isn't touched here
> >>>>
> >>>> geany is here installed via dnf not flatpak
> >>>
> >>> I'm root as su, and already have the .config/geany directory with
> >>> files. Get this.
> >> You should be using "sudo". You at least need to use the "-l" option
> >> for "su" if you're going to do that, so that you get a proper login
> >> shell and don't drag in the user environment.
> >>
> >> But still the more important question is why are you running "geany" as
> >> root in the first place?
> >
> > What should one use? Use geany for everything as a regular user,
> > so is very familiar.
> >
> > nano isn't bad, but doesn't have a lot of what geany adds.
> >
> > Definitely don't want to have to deal with vi or vim.
> >
> > Want to just edit text files. Has worked fine with many version of
> > Fedora.
> >
> > Had earlier user Redhat 9, Then Fedora core 1 thru Fedara 42.
> > don't recall went started using geany, but has been some time.
> >
> > If there is something better.
>
> I've never used geany, but the dnf info said it is an IDE, a code
> editor. You mentioned gedit and that made more sense, although I think
> that's deprecated now for the new gnome-text-editor. Either of those
> would seem to make more sense for your use.
>
gedit seems to do the same.
# gedit
Error creating proxy: The connection is closed (g-io-error-quark,
18)
Error creating proxy: The connection is closed (g-io-error-quark,
18)
Error creating proxy: The connection is closed (g-io-error-quark,
18)
Error creating proxy: The connection is closed (g-io-error-quark,
18)
Error creating proxy: The connection is closed (g-io-error-quark,
18)
(gedit:464561): Gtk-WARNING **: 23:44:27.368: Could not load a
pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could
not be found.
**
Gtk:ERROR:../gtk/gtkiconhelper.c:495:ensure_surface_for_gicon:
assertion failed (error == NULL): Failed to load
/usr/share/icons/Adwaita/scalable/status/image-missing.svg: Loader
process exited early with status '1'Command:
"bwrap" "--unshare-all" "--die-with-parent" "--chdir" "/" "--ro-bind"
"/usr" "/usr" "--dev" "/dev" "--ro-bind-try" "/etc/ld.so.cache"
"/etc/ld.so.cache" "--ro-bind-try" "/nix/store" "/nix/store" "--tmpfs"
"/tmp-home" "--tmpfs" "/tmp-run" "--clearenv" "--setenv" "HOME"
"/tmp-home" "--setenv" "XDG_RUNTIME_DIR" "/tmp-run" "--setenv"
"XDG_RUNTIME_DIR" "/run/user/1000" "--symlink" "/usr/lib" "/lib"
"--symlink" "/usr/lib64" "/lib64" "--ro-bind-try" "/etc/fonts/conf.d"
"/etc/fonts/conf.d" "--ro-bind-try" "/etc/fonts/fonts.conf"
"/etc/fonts/fonts.conf" "--ro-bind-try" "/usr/lib/fontconfig/cache"
"/usr/lib/fontconfig/cache" "--bind-try"
"/home/msetzerii/.cache/glycin/usr/libexec/glycin-loaders/2+/glycin-
svg"
"/home/msetzerii/.cache/glycin/usr/libexec/glycin-loaders/2+/glycin-
svg" "--setenv" "XDG_CACHE_HOME"
"/home/msetzerii/.cache/glycin/usr/libexec/glycin-loaders/2+/glycin-
svg" "--seccomp" "26" "/usr/libexec/glycin-loaders/2+/glycin-svg"
"--dbus-fd" "24" (gdk-pixbuf-error-quark, 0)
Bail out!
Gtk:ERROR:../gtk/gtkiconhelper.c:495:ensure_surface_for_gicon:
assertion failed (error == NULL): Failed to load
/usr/share/icons/Adwaita/scalable/status/image-missing.svg: Loader
process exited early with status '1'Command: "bwrap"
"--unshare-all" "--die-with-parent" "--chdir" "/" "--ro-bind" "/usr" "/usr"
"--dev" "/dev" "--ro-bind-try" "/etc/ld.so.cache" "/etc/ld.so.cache"
"--ro-bind-try" "/nix/store" "/nix/store" "--tmpfs" "/tmp-home"
"--tmpfs" "/tmp-run" "--clearenv" "--setenv" "HOME" "/tmp-home"
"--setenv" "XDG_RUNTIME_DIR" "/tmp-run" "--setenv"
"XDG_RUNTIME_DIR" "/run/user/1000" "--symlink" "/usr/lib" "/lib"
"--symlink" "/usr/lib64" "/lib64" "--ro-bind-try" "/etc/fonts/conf.d"
"/etc/fonts/conf.d" "--ro-bind-try" "/etc/fonts/fonts.conf"
"/etc/fonts/fonts.conf" "--ro-bind-try" "/usr/lib/fontconfig/cache"
"/usr/lib/fontconfig/cache" "--bind-try"
"/home/msetzerii/.cache/glycin/usr/libexec/glycin-loaders/2+/glycin-
svg"
"/home/msetzerii/.cache/glycin/usr/libexec/glycin-loaders/2+/glycin-
svg" "--setenv" "XDG_CACHE_HOME"
"/home/msetzerii/.cache/glycin/usr/libexec/glycin-loaders/2+/glycin-
svg" "--seccomp" "26" "/usr/libexec/glycin-loaders/2+/glycin-svg"
"--dbus-fd" "24" (gdk-pixbuf-error-quark, 0)
Aborted (core dumped) gedit
gnome-text-editor seems very primitive. No options.
Sometimes it opens ok, but sometimes get this on screen, and can
only close the terminal window.
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
Did redirect to 2>
and got
libEGL warning: DRI3 error: Could not get DRI3 device
libEGL warning: Ensure your X server supports DRI3 to get
accelerated rendering
(gnome-text-editor:465005): Gtk-WARNING **: 23:52:55.163:
Unable to acquire session bus: The connection is closed
vulkan: No DRI3 support detected - required for presentation
Note: you can probably enable DRI3 in your Xorg config
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
With Fedora 42 the gnome-text-editor seems to open fine, but 43
has issues?
So, seems both geany and gedit seem broken.
Seems my script works
cat /sbin/ge
#!/usr/bin/bash
if [ "$EUID" = "0" ] ; then
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY
geany $1 $2 $3 $4 $5 $6
fi
#!/usr/bin/bash
if [ "$EUID" -ne "0" ] ; then
geany $1 $2 $3 $4 $5 $6
fi
So, still an issue. Thanks for info. Never heard of the
gnome-text-editor, but had use gedit before.
> --
> _______________________________________________
> users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/[email protected]
> Do not reply to spam, report it:
> https://pagure.io/fedora-infrastructure/new_issue
+------------------------------------------------------------+
Michael D. Setzer II - Computer Science Instructor (Retired)
mailto:[email protected]
mailto:[email protected]
mailto:[email protected]
Guam - Where America's Day Begins
G4L Disk Imaging Project maintainer
http://sourceforge.net/projects/g4l/
+------------------------------------------------------------+
--
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue