|
Registered Member
|
Hello,
I'm using the i3 window manager together with a number of KDE applications, mostly kmail and dolphin. I do not use kalarm currently. Versions are: Qt: 5.5.1 KDE Frameworks: 5.19.0 KAlarm: 2.11.4-5ak on Arch Linux. Other settings regarding KDE is that $QT_QPA_PLATFORMTHEME = qt5ct. Otherwise no KDE5 application had any icons. 1) kalarm crashes with an segmentation fault whenenver I quit it. The (useless) backtrace is:
The crash also happens when I use KDE desktop environment. 2) I do not want kalarm to be started when I log in. The respective option is disabled. It also stays disabled after a restart. Still. kalarm starts when I login. This does not happen when using KDE. I deleted all configuration files I could find, but nothing changed. There is no kalarm related file in ~/.config/autostart. Thanks! |
|
KDE Developer
|
In relation to the autostart issue, KAlarm is autostarted if ~/.config/kalarmrc contains "Autostart=true" in the [General] section. This is used by kalarm.autostart.desktop (which could be in various locations). Setting Autostart=false should fix it, but since you say that it works correctly under KDE, there may be something else (such as session restoration) which is starting it. I'm not familiar with the i3 window manager, so don't know what it might be doing.
KAlarm author
|
|
Registered Member
|
Well, there is no Autostart option in kalarmrc
(just deleted the file and that's exactly what kalarm created when started and the option to not autostart was set) i3 is just a window manager, it does not do any session restauration or alike. /etc/xdg/autostart/kalarm.autostart.desktop contains
|
|
Registered Member
|
Maybe it's that switch statement
in kalarmmap.cpp. Maybe it's missing a Preferences::setAutoStart(false); in case of KMessageBox::No? But that was just quick glance at the code.... |
|
KDE Developer
|
The line you quote in kalarm.autostart.desktop, and the code in kalarmapp.cpp, have been unchanged for a several years, and normally work correctly. kalarm.autostart.desktop is designed for all users (whether they are root is irrelevant).
The default value for AutoStart in kalarmrc is false, so your kalarmrc contents are correct if you don't want KAlarm to be started at login using the KDE's default autostart mechanism. Other mechanisms which could be starting KAlarm at login include session restoration, a specific entry in your desktop's autostart list, or via a script.
KAlarm author
|
|
Registered Member
|
I use dex https://github.com/jceb/dex/ to autostart the files. It does find /etc/xdg/autostart/kalarm.autostart.desktop and evaluates it.
As far as I understand the .desktop file specification https://specifications.freedesktop.org/ ... 01s05.html the Hidden attribute is intended to deactivate a autostart file. /etc/xdg/autostart/kalarm.autostart.desktop does not have Hidden set. The only thing which sounds like it is connected to a disabled autostart is X-KDE-autostart-condition=kalarmrc:General:AutoStart:false and the respective key in ~/.config/kalarmrc is actually set to False. T However, I haven't found X-KDE-autostart-condition anywhere in the Free Desktop standards. How do you expect it to work on standard compliant parsers? Obviously it works correctly with the KDE desktop file parser. I hope you intend your app to also work outside of KDE, don't you? |
|
KDE Developer
|
Yes, I would prefer that autostart would work with non-KDE desktops as well. Using X-KDE-autostart-condition is the standard way for KDE applications, which is why KAlarm uses it. If use of a Hidden attribute would make it work in other environments, I would be happy to implement that in addition. Have you tested that out on your system?
KAlarm author
|
|
Registered Member
|
Hey,
Copying the file from /etc/xdg/autostart to ~/.config/autostart makes it overwrite the global settings. Adding a Hidden=true disables it. I've tested it only with dex, but I'm sure it also works with KDE, since I have other files there, that are disabled that way. The X-KDE-autostart-condition is a clever idea (automatic connection to a specific config section), but it's ignorant to the the greater Linux ecosystem, which consists of numerous desktop / window managers. Thanks for being open to that! |
|
KDE Developer
|
Autostarting on non-KDE desktops, even when you have disabled it, has now been fixed using the Hidden attribute. The fix has been applied to the 4.14 branch (which is unlikely to ever get another official release by KDE), and it will also be in KDE Applications 16.04.1, which should be released next month.
Thanks for your useful suggestions on this.
KAlarm author
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]