kde

How do you get the icon, MIME type, and application associated with a file in the Linux Desktop?

♀尐吖头ヾ 提交于 2019-11-27 01:07:11
问题 Using C++ on the Linux desktop, what is the best way to get the icon, the document description and the application "associated" with an arbitrary file/file path? I'd like to use the most "canonical" way to find icons, mime-type/file type descriptions and associated applications on both KDE and gnome and I'd like to avoid any "shelling out" to the command line and "low-level" routines as well as avoiding re-inventing the wheel myself (no parsing the mime-types file and such). Edits and Notes:

How to disable automatic mnemonics in a Qt application on KDE?

故事扮演 提交于 2019-11-26 21:40:32
问题 In any Qt application on KDE when I add a QPushButton in designer and check it's text by: void MainWindow::on_pushButton_clicked() { qDebug()<<ui->pushButton->text(); } The output is preceded by an & : &PushButton This behavior does not exist on Windows. It seems that Qt applications on KDE automatically add shortcuts to all push buttons, which is not desired for me. I should note that the ampersands are not created by designer and you can not see them in the .ui file. Actually when the

KDE4/5 命令执行漏洞 (CVE-2019-14744) 简析

为君一笑 提交于 2019-11-26 17:12:31
作者: HACHp1@知道创宇404实验室 日期: 2019/08/08 原文链接 漏洞简介 KDE Frameworks是一套由KDE社群所编写的库及软件框架,是KDE Plasma 5及KDE Applications 5的基础,并使用GNU通用公共许可证进行发布。其中所包含的多个独立框架提供了各种常用的功能,包括了硬件集成、文件格式支持、控件、绘图功能、拼写检查等。KDE框架目前被几个Linux发行版所采用,包括了Kubuntu、OpenMandriva、openSUSE和OpenMandriva。 2019年7月28日Dominik Penner(@zer0pwn)发现了KDE framework版本<=5.60.0时存在命令执行漏洞。 2019年8月5日Dominik Penner在Twitter上披露了该漏洞,而此时该漏洞还是0day漏洞。此漏洞由KDesktopFile类处理.desktop或.directory文件的方式引起。如果受害者下载了恶意构造的.desktop或.directory文件,恶意文件中注入的bash代码就会被执行。 2019年8月8日,KDE社区终于在发布的更新中修复了该漏洞;在此之前的三天内,此漏洞是没有官方补丁的。 一些八卦 在Dominik Penner公开此漏洞时,并没有告诉KDE社区此漏洞