I guess I should install wl-shell, because I’m on Wayland, right?

|
p87726 2022-09-05 13:25:36
I use HDD, so I need to have a good animation during boot
gnolooo 2022-09-05 13:28:45
hi guys, i recently wrote a script but i have a minor problem, at a certain point i need to type sudo password but it would be better for me to type the password at the beginning instead of waiting for the script to go on. i could execute the script as sudo, or i could put the line [ “$UID” -eq 0 ] || exec sudo bash “$0” “$@” at the beginning of the script, but I need to do some operations in my home, to which in the script i refer as $HOME. Obviously if I run the script as sudo, my $HOME is no longer /home/username (which is where i need to work) but /root. How can I achieve that?
tomazcanabrava 2022-09-05 13:36:32
sudo -E
tomazcanabrava 2022-09-05 13:36:47
-E, –preserve-env preserve user environment when running command
–preserve-env=list preserve specific environment variables
p87726 2022-09-05 13:37:43
tomazcanabrava 2022-09-05 13:36:47
-E, –preserve-env preserve user environment when running command
–preserve-env=list preserve specific environment variables

Wow. Linux seems to have the solution for everything 😅

tomazcanabrava 2022-09-05 13:40:09
p87726 2022-09-05 13:37:43
Wow. Linux seems to have the solution for everything 😅

since the 70’s hacking things on top of broken things to make things work.

gnolooo 2022-09-05 14:15:39
tomazcanabrava 2022-09-05 13:36:32
sudo -E

So if I run sudo -E myscript i preserve my environment?
I read that sudo -u myuser myscript should do the same, but actually executing the script with sudo -u is just like not using sudo

tomazcanabrava 2022-09-05 14:19:30
gnolooo 2022-09-05 14:15:39
So if I run sudo -E myscript i preserve my environment?
I read that sudo -u myuser myscript should do the same, but actually executing the script with sudo -u is just like not using sudo

sudo -u runs as the user specified
sudo -E runs as root, with the current user environment

tomazcanabrava 2022-09-05 14:19:48
and, of course, do not use sudo if you don’t need it. this is *really* easy to break your system.
gnolooo 2022-09-05 14:19:57
tomazcanabrava 2022-09-05 14:19:30
sudo -u runs as the user specified
sudo -E runs as root, with the current user environment

Okk thank you very much

gnolooo 2022-09-05 14:20:33
tomazcanabrava 2022-09-05 14:19:48
and, of course, do not use sudo if you don’t need it. this is *really* easy to break your system.

I know but I just need a couple of commands to use sudo in my script, out of 10-15 total commands

EgidioCaprino 2022-09-05 14:21:58
Hi all 👋 I’m getting this issue when starting Free Download Manager in KDE with Wayland. It works on Xorg.
% fdm
Failed to load client buffer integration: wayland-egl

qt.qpa.wayland: No shell integration named “xdg-shell” found
qt.qpa.wayland: No shell integration named “xdg-shell-v6” found
qt.qpa.wayland: No shell integration named “wl-shell” found
qt.qpa.wayland: No shell integration named “ivi-shell” found
qt.qpa.wayland: Loading shell integration failed.
qt.qpa.wayland: Attempted to load the following shells (“xdg-shell”, “xdg-shell-v6”, “wl-shell”, “ivi-shell”)
Do you know how I could fix it?

tomazcanabrava 2022-09-05 14:24:28
install any of those missing commands.
EgidioCaprino 2022-09-05 14:28:45
I guess I should install wl-shell, because I’m on Wayland, right? But I can’t find it
bacteriostat 2022-09-05 14:30:09
EgidioCaprino 2022-09-05 14:21:58
Hi all 👋 I’m getting this issue when starting Free Download Manager in KDE with Wayland. It works on Xorg.
% fdm
Failed to load client buffer integration: wayland-egl

qt.qpa.wayland: No shell integration named “xdg-shell” found
qt.qpa.wayland: No shell integration named “xdg-shell-v6” found
qt.qpa.wayland: No shell integration named “wl-shell” found
qt.qpa.wayland: No shell integration named “ivi-shell” found
qt.qpa.wayland: Loading shell integration failed.
qt.qpa.wayland: Attempted to load the following shells (“xdg-shell”, “xdg-shell-v6”, “wl-shell”, “ivi-shell”)
Do you know how I could fix it?

Do you have xdg-utils installed?

EgidioCaprino 2022-09-05 14:31:00
Yes, I have all of these
% pacman -Qs xdg
local/libcanberra 1:0.30+r2+gc0620e4-1
A small and lightweight implementation of the XDG Sound Theme Specification
local/xdg-dbus-proxy 0.1.4-1
Filtering proxy for D-Bus connections
local/xdg-desktop-portal 1.15.0-1
Desktop integration portals for sandboxed apps
local/xdg-desktop-portal-kde 5.25.4-1 (plasma)
A backend implementation for xdg-desktop-portal using Qt/KF5
local/xdg-user-dirs 0.18-1
Manage user directories like ~/Desktop and ~/Music
local/xdg-utils 1.1.3+21+g1a58bc2-1
Command line tools that assist applications with a variety of desktop integration tasks
bacteriostat 2022-09-05 14:32:13
EgidioCaprino 2022-09-05 14:31:00
Yes, I have all of these
% pacman -Qs xdg
local/libcanberra 1:0.30+r2+gc0620e4-1
A small and lightweight implementation of the XDG Sound Theme Specification
local/xdg-dbus-proxy 0.1.4-1
Filtering proxy for D-Bus connections
local/xdg-desktop-portal 1.15.0-1
Desktop integration portals for sandboxed apps
local/xdg-desktop-portal-kde 5.25.4-1 (plasma)
A backend implementation for xdg-desktop-portal using Qt/KF5
local/xdg-user-dirs 0.18-1
Manage user directories like ~/Desktop and ~/Music
local/xdg-utils 1.1.3+21+g1a58bc2-1
Command line tools that assist applications with a variety of desktop integration tasks

No clue then.

jonathn 2022-09-05 14:51:29
EgidioCaprino 2022-09-05 14:21:58
Hi all 👋 I’m getting this issue when starting Free Download Manager in KDE with Wayland. It works on Xorg.
% fdm
Failed to load client buffer integration: wayland-egl

qt.qpa.wayland: No shell integration named “xdg-shell” found
qt.qpa.wayland: No shell integration named “xdg-shell-v6” found
qt.qpa.wayland: No shell integration named “wl-shell” found
qt.qpa.wayland: No shell integration named “ivi-shell” found
qt.qpa.wayland: Loading shell integration failed.
qt.qpa.wayland: Attempted to load the following shells (“xdg-shell”, “xdg-shell-v6”, “wl-shell”, “ivi-shell”)
Do you know how I could fix it?

Is kwayland-integration installed?

shabang_68 2022-09-05 15:13:12
archlinuxgroup-612333.jpg
Does anybody know where the ArchLinux image has to reside to fix this in gnome desktop?
p87726 2022-09-05 15:29:35
I have upgraded, but still this problem does not seem to have solved. So for now, I am using the AppImage package of Libreoffice.
darksecretz 2022-09-05 15:47:38
p87726 2022-09-05 15:29:35
I have upgraded, but still this problem does not seem to have solved. So for now, I am using the AppImage package of Libreoffice.

Have you tired reinstalling ?

p87726 2022-09-05 15:54:44
darksecretz 2022-09-05 15:47:38
Have you tired reinstalling ?

Yes, already did that

jonathn 2022-09-05 16:01:09
Are you using fresh or still?
JF049 2022-09-05 16:01:09
shabang_68 2022-09-05 15:13:12
archlinuxgroup-612333.jpg
Does anybody know where the ArchLinux image has to reside to fix this in gnome desktop?

Reinstall the gnome-control-center package, its image is actually built-in in the binary
https://bbs.archlinux.org/viewtopic.php?id=239159

vexedmoth 2022-09-05 16:02:52
Hi guys, should I keep running bluetooth.service at the background all time? I wonder if is better to enable it only when I use it to avoid consuming resources.
shabang_68 2022-09-05 16:03:18
JF049 2022-09-05 16:01:09
archlinuxgroup-612333.jpg
Reinstall the gnome-control-center package, its image is actually built-in in the binary
https://bbs.archlinux.org/viewtopic.php?id=239159

reinstall didn’t work

jonathn 2022-09-05 16:03:35
vexedmoth 2022-09-05 16:02:52
archlinuxgroup-612333.jpg
Hi guys, should I keep running bluetooth.service at the background all time? I wonder if is better to enable it only when I use it to avoid consuming resources.

If you don’t mind starting services only when you need them then that’s a perfectly viable approach.

p87726 2022-09-05 16:04:10
jonathn 2022-09-05 16:01:09
archlinuxgroup-612333.jpg
Are you using fresh or still?

Still. But tried the fresh version too. Same problem

EgidioCaprino 2022-09-05 16:04:18
jonathn 2022-09-05 14:51:29
archlinuxgroup-612333.jpg
Is kwayland-integration installed?

Yes, I have it already 😔
% pacman -Qs wayland
local/kwayland 5.97.0-1 (kf5)
Qt-style Client and Server library wrapper for the Wayland libraries
local/kwayland-integration 5.25.4-1 (plasma)
Provides integration plugins for various KDE frameworks for the wayland windowing system
local/layer-shell-qt 5.25.4-1 (plasma)
Qt component to allow applications to make use of the Wayland wl-layer-shell protocol
local/lib32-wayland 1.21.0-1
A computer display server protocol
local/libva 2.15.0-2
Video Acceleration (VA) API for Linux
local/plasma-wayland-session 5.25.4-1
Plasma Wayland session
local/qt5-wayland 5.15.5+kde+r38-3 (qt qt5)
Provides APIs for Wayland
local/qt6-wayland 6.3.1-1 (qt6)
Provides APIs for Wayland
local/sddm 0.19.0-8
QML based X11 and Wayland display manager
local/wayland 1.21.0-1
A computer display server protocol
local/wayland-protocols 1.26-1
Specifications of extended Wayland protocols
local/wayland-utils 1.0.0-2
Wayland tools to display information about current compositor
local/xorg-xwayland 22.1.3-1 (xorg)
run X clients under wayland

EgidioCaprino 2022-09-05 16:05:29
vexedmoth 2022-09-05 16:02:52
archlinuxgroup-612333.jpg
Hi guys, should I keep running bluetooth.service at the background all time? I wonder if is better to enable it only when I use it to avoid consuming resources.

If you’re on a laptop that works off charger, it’s better to start it manually

jonathn 2022-09-05 16:05:40
p87726 2022-09-05 16:04:10
archlinuxgroup-612333.jpg
Still. But tried the fresh version too. Same problem

That suggests something else going on, outside of LibreOffice itself, e.g. have you installed additional plugins/extensions/

p87726 2022-09-05 16:05:48
jonathn 2022-09-05 16:01:09
archlinuxgroup-612333.jpg
Are you using fresh or still?

archlinuxgroup-612355.jpg
Error with fresh

p87726 2022-09-05 16:06:06
jonathn 2022-09-05 16:05:40
archlinuxgroup-612333.jpg
That suggests something else going on, outside of LibreOffice itself, e.g. have you installed additional plugins/extensions/

No

vexedmoth 2022-09-05 16:06:50
EgidioCaprino 2022-09-05 16:05:29
archlinuxgroup-612333.jpg
If you’re on a laptop that works off charger, it’s better to start it manually

Okay tnx

‌ㅤ 2022-09-05 16:13:16
can someone build this package? i’m getting errors. https://github.com/fangfufu/httpdirfs
|