[SOLVED] Fedora 35+KDE, autostart: can't "pw-play" WAV file, from terminal - OK.
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Fedora 35+KDE, autostart: can't "pw-play" WAV file, from terminal - OK.
Hello!
After installing Fedora 35 I attempted to add in the "autostart" actions
the command "pw-play /path_to_file/startup_sound.wav" but for some reason, it doesn't
play at startup. If I issue the same command in a konsole - it plays OK.
What's the difference between using "pw-play" as autostart program to run
and using it in a normal command line way?
While reading about similar problems, someone noticed that his KDE speaker icon came "muted" and after few seconds became "unmuted".
After reading this I re-booted while looked at the speaker icon - on my KDE too, it first came "muted" and after 1-2 seconds became "unmuted".
So, here's some more info for those who understand (me not among them, at least now).
Please delete all empty entries from your .desktop file.
Not sure it matters, but I've never seen it like that, and it's pointless.
Also I'm not sure you can put shell commands in your Exec line like that; better create a mini script and Exec that.
If the "sleep" and "aplay" commands will become a shell command with an argument of starting a command
then this command can contain the two parts of "sleep" and "aplay". Currently the "sleep" is 15 seconds
and the sound appears about 2-3 seconds after the speaker icon changes from "mute" to "normal",
which means: F35+KDW+Xwayland takes about 12-13 seconds to start everything and to enable the sound.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.