mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
generic: add X-KDE-HasTrayOption to .desktop files
for applications that do not create main window (e.g. create dialog window instead) the tray feature is not enabled Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
39b8ffd1a6
commit
ca9117d909
17 changed files with 52 additions and 52 deletions
|
@ -188,4 +188,4 @@ MimeType=inode/directory;
|
||||||
InitialPreference=10
|
InitialPreference=10
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
X-KDE-MediaPlayer=informationpanel
|
X-KDE-MediaPlayer=informationpanel
|
||||||
X-KDE-SysTray=true
|
X-KDE-HasTrayOption=true
|
||||||
|
|
|
@ -82,7 +82,6 @@ int main( int argc, char **argv )
|
||||||
KAboutData aboutData ("kate", 0, ki18n("Kate"), kateVersion,
|
KAboutData aboutData ("kate", 0, ki18n("Kate"), kateVersion,
|
||||||
ki18n( "Kate - Advanced Text Editor" ), KAboutData::License_LGPL_V2,
|
ki18n( "Kate - Advanced Text Editor" ), KAboutData::License_LGPL_V2,
|
||||||
ki18n( "(c) 2000-2013 The Kate Authors" ));
|
ki18n( "(c) 2000-2013 The Kate Authors" ));
|
||||||
aboutData.setOrganizationDomain("kde.org");
|
|
||||||
aboutData.addAuthor (ki18n("Christoph Cullmann"), ki18n("Maintainer"), "cullmann@kde.org", "http://www.cullmann.io");
|
aboutData.addAuthor (ki18n("Christoph Cullmann"), ki18n("Maintainer"), "cullmann@kde.org", "http://www.cullmann.io");
|
||||||
aboutData.addAuthor (ki18n("Anders Lund"), ki18n("Core Developer"), "anders@alweb.dk", "http://www.alweb.dk");
|
aboutData.addAuthor (ki18n("Anders Lund"), ki18n("Core Developer"), "anders@alweb.dk", "http://www.alweb.dk");
|
||||||
aboutData.addAuthor (ki18n("Joseph Wenninger"), ki18n("Core Developer"), "jowenn@kde.org", "http://stud3.tuwien.ac.at/~e9925371");
|
aboutData.addAuthor (ki18n("Joseph Wenninger"), ki18n("Core Developer"), "jowenn@kde.org", "http://stud3.tuwien.ac.at/~e9925371");
|
||||||
|
|
|
@ -121,7 +121,7 @@ MimeType=text/plain;
|
||||||
Exec=kate --icon '%i' --caption '%c' -b %U
|
Exec=kate --icon '%i' --caption '%c' -b %U
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
X-KDE-HasTempFileOption=true
|
X-KDE-HasTempFileOption=true
|
||||||
X-KDE-SysTray=true
|
X-KDE-HasTrayOption=true
|
||||||
Icon=kate
|
Icon=kate
|
||||||
X-DocPath=kate/index.html
|
X-DocPath=kate/index.html
|
||||||
Type=Application
|
Type=Application
|
||||||
|
|
|
@ -135,3 +135,4 @@ Comment[zh_CN]=书签组织和编辑器
|
||||||
Comment[zh_TW]=書籤組織編輯器
|
Comment[zh_TW]=書籤組織編輯器
|
||||||
X-DocPath=konqueror/index.html#bookmarks
|
X-DocPath=konqueror/index.html#bookmarks
|
||||||
Categories=Qt;KDE;Network;WebBrowser;
|
Categories=Qt;KDE;Network;WebBrowser;
|
||||||
|
X-KDE-HasTrayOption=true
|
||||||
|
|
|
@ -97,4 +97,3 @@ Name[zh_TW]=尋找檔案/資料夾
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
OnlyShowIn=KDE;
|
OnlyShowIn=KDE;
|
||||||
Categories=Qt;KDE;Core;
|
Categories=Qt;KDE;Core;
|
||||||
X-KDE-SysTray=true
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ Type=Application
|
||||||
X-DocPath=kinfocenter/index.html
|
X-DocPath=kinfocenter/index.html
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
OnlyShowIn=KDE;
|
OnlyShowIn=KDE;
|
||||||
|
X-KDE-HasTrayOption=true
|
||||||
|
|
||||||
Name=KInfoCenter
|
Name=KInfoCenter
|
||||||
Name[af]=Inligting Sentrum
|
Name[af]=Inligting Sentrum
|
||||||
|
|
|
@ -30,32 +30,32 @@
|
||||||
|
|
||||||
KicApp::KicApp() : KApplication()
|
KicApp::KicApp() : KApplication()
|
||||||
{
|
{
|
||||||
display = new KInfoCenter();
|
display = new KInfoCenter();
|
||||||
display->show();
|
display->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
KAboutData aboutKInfoCenter( "kinfocenter", 0, ki18n("KDE Info Center"),
|
KAboutData aboutData(
|
||||||
KDE_VERSION_STRING, ki18n("The KDE Info Center"), KAboutData::License_GPL,
|
"kinfocenter", 0, ki18n("KDE Info Center"),
|
||||||
ki18n("(c) 2009-2010, The KDE SC KInfocenter Development Team"));
|
KDE_VERSION_STRING, ki18n("The KDE Info Center"), KAboutData::License_GPL,
|
||||||
|
ki18n("(c) 2009-2010, The KDE SC KInfocenter Development Team")
|
||||||
|
);
|
||||||
|
aboutData.setProgramIconName("hwinfo");
|
||||||
|
|
||||||
QByteArray argv_0 = argv[0];
|
aboutData.addAuthor(ki18n("David Hubner"),ki18n("Current Maintainer"), "hubnerd@ntlworld.com");
|
||||||
KAboutData *aboutData = &aboutKInfoCenter;
|
aboutData.addAuthor(ki18n("Helge Deller"), ki18n("Previous Maintainer"), "deller@kde.org");
|
||||||
|
aboutData.addAuthor(ki18n("Matthias Hoelzer-Kluepfel"),KLocalizedString(), "hoelzer@kde.org");
|
||||||
|
aboutData.addAuthor(ki18n("Matthias Elter"),KLocalizedString(), "elter@kde.org");
|
||||||
|
aboutData.addAuthor(ki18n("Matthias Ettrich"),KLocalizedString(), "ettrich@kde.org");
|
||||||
|
aboutData.addAuthor(ki18n("Waldo Bastian"),KLocalizedString(), "bastian@kde.org");
|
||||||
|
aboutData.addAuthor(ki18n("Nicolas Ternisien"), KLocalizedString(), "nicolas.ternisien@gmail.com");
|
||||||
|
|
||||||
aboutData->addAuthor(ki18n("David Hubner"),ki18n("Current Maintainer"), "hubnerd@ntlworld.com");
|
KCmdLineOptions options;
|
||||||
aboutData->addAuthor(ki18n("Helge Deller"), ki18n("Previous Maintainer"), "deller@kde.org");
|
KCmdLineArgs::addCmdLineOptions( options );
|
||||||
aboutData->addAuthor(ki18n("Matthias Hoelzer-Kluepfel"),KLocalizedString(), "hoelzer@kde.org");
|
|
||||||
aboutData->addAuthor(ki18n("Matthias Elter"),KLocalizedString(), "elter@kde.org");
|
|
||||||
aboutData->addAuthor(ki18n("Matthias Ettrich"),KLocalizedString(), "ettrich@kde.org");
|
|
||||||
aboutData->addAuthor(ki18n("Waldo Bastian"),KLocalizedString(), "bastian@kde.org");
|
|
||||||
aboutData->addAuthor(ki18n("Nicolas Ternisien"), KLocalizedString(), "nicolas.ternisien@gmail.com");
|
|
||||||
|
|
||||||
KCmdLineOptions options;
|
KCmdLineArgs::init( argc, argv, &aboutData );
|
||||||
KCmdLineArgs::addCmdLineOptions( options );
|
|
||||||
|
|
||||||
KCmdLineArgs::init( argc, argv, aboutData );
|
KicApp Kic;
|
||||||
|
return Kic.exec();
|
||||||
KicApp Kic;
|
|
||||||
return Kic.exec();
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,13 +59,8 @@ int main(int argc, char **argv) {
|
||||||
ki18n("(c) 2022 Ivailo Monev")
|
ki18n("(c) 2022 Ivailo Monev")
|
||||||
);
|
);
|
||||||
|
|
||||||
aboutData.addAuthor(
|
aboutData.addAuthor(ki18n("Ivailo Monev"), ki18n("Maintainer"), "xakepa10@gmail.com");
|
||||||
ki18n("Ivailo Monev"),
|
|
||||||
ki18n("Maintainer"),
|
|
||||||
"xakepa10@gmail.com"
|
|
||||||
);
|
|
||||||
aboutData.setProgramIconName(QLatin1String("internet-mail"));
|
aboutData.setProgramIconName(QLatin1String("internet-mail"));
|
||||||
aboutData.setOrganizationDomain("kde.org");
|
|
||||||
|
|
||||||
KCmdLineArgs::init(argc, argv, &aboutData);
|
KCmdLineArgs::init(argc, argv, &aboutData);
|
||||||
KCmdLineOptions option;
|
KCmdLineOptions option;
|
||||||
|
|
|
@ -10,3 +10,4 @@ Categories=Qt;KDE;AudioVideo;Audio;Video;Player;TV;
|
||||||
MimeType=application/ogg;application/x-ogg;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/m4a;audio/x-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/ogg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg;video/x-mpeg2;video/mp4;video/msvideo;video/x-msvideo;video/ogg;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/x-fli;video/x-flv;video/x-theora;video/x-matroska;video/webm;audio/x-flac;audio/x-vorbis+ogg;video/x-ogm+ogg;audio/x-shorten;audio/x-ape;audio/x-wavpack;audio/x-tta;audio/AMR;audio/ac3;video/mp2t;audio/flac;audio/mp4;
|
MimeType=application/ogg;application/x-ogg;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/m4a;audio/x-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/ogg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg;video/x-mpeg2;video/mp4;video/msvideo;video/x-msvideo;video/ogg;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/x-fli;video/x-flv;video/x-theora;video/x-matroska;video/webm;audio/x-flac;audio/x-vorbis+ogg;video/x-ogm+ogg;audio/x-shorten;audio/x-ape;audio/x-wavpack;audio/x-tta;audio/AMR;audio/ac3;video/mp2t;audio/flac;audio/mp4;
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
X-KDE-MediaPlayer=kmediaplayer
|
X-KDE-MediaPlayer=kmediaplayer
|
||||||
|
X-KDE-HasTrayOption=true
|
||||||
|
|
|
@ -29,17 +29,15 @@
|
||||||
#include "kmediawindow.h"
|
#include "kmediawindow.h"
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
KAboutData aboutData("kmediaplayer", 0, ki18n("KMediaPlayer"),
|
KAboutData aboutData(
|
||||||
"1.1.0", ki18n("Simple media player for KDE."),
|
"kmediaplayer", 0, ki18n("KMediaPlayer"),
|
||||||
KAboutData::License_GPL_V2,
|
"1.1.0", ki18n("Simple media player for KDE."),
|
||||||
ki18n("(c) 2016 Ivailo Monev")
|
KAboutData::License_GPL_V2,
|
||||||
);
|
ki18n("(c) 2016 Ivailo Monev")
|
||||||
|
);
|
||||||
|
|
||||||
aboutData.addAuthor(ki18n("Ivailo Monev"),
|
aboutData.addAuthor(ki18n("Ivailo Monev"), ki18n("Maintainer"), "xakepa10@gmail.com");
|
||||||
ki18n("Maintainer"),
|
|
||||||
"xakepa10@gmail.com");
|
|
||||||
aboutData.setProgramIconName(QLatin1String("applications-multimedia"));
|
aboutData.setProgramIconName(QLatin1String("applications-multimedia"));
|
||||||
aboutData.setOrganizationDomain("kde.org");
|
|
||||||
|
|
||||||
KCmdLineArgs::init(argc, argv, &aboutData);
|
KCmdLineArgs::init(argc, argv, &aboutData);
|
||||||
KCmdLineOptions option;
|
KCmdLineOptions option;
|
||||||
|
|
|
@ -382,7 +382,7 @@ void BasicTab::setEntryInfo(MenuEntryInfo *entryInfo)
|
||||||
_execEdit->lineEdit()->setText(temp);
|
_execEdit->lineEdit()->setText(temp);
|
||||||
_systrayCB->setChecked(false);
|
_systrayCB->setChecked(false);
|
||||||
}
|
}
|
||||||
_systrayCB->setEnabled(df->desktopGroup().readEntry("X-KDE-SysTray", false));
|
_systrayCB->setEnabled(df->desktopGroup().readEntry("X-KDE-HasTrayOption", false));
|
||||||
|
|
||||||
_pathEdit->lineEdit()->setText(df->readPath());
|
_pathEdit->lineEdit()->setText(df->readPath());
|
||||||
_termOptEdit->setText(df->desktopGroup().readEntry("TerminalOptions"));
|
_termOptEdit->setText(df->desktopGroup().readEntry("TerminalOptions"));
|
||||||
|
|
|
@ -25,20 +25,22 @@
|
||||||
#include "knetattach.h"
|
#include "knetattach.h"
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
KAboutData about("knetattach", 0, ki18n("KDE Network Wizard"), "1.0",
|
KAboutData about(
|
||||||
ki18n("KDE Network Wizard"),
|
"knetattach", 0, ki18n("KDE Network Wizard"), "1.0",
|
||||||
KAboutData::License_GPL,
|
ki18n("KDE Network Wizard"),
|
||||||
ki18n("(c) 2004 George Staikos"));
|
KAboutData::License_GPL,
|
||||||
|
ki18n("(c) 2004 George Staikos")
|
||||||
|
);
|
||||||
|
|
||||||
about.addAuthor(ki18n("George Staikos"), ki18n("Primary author and maintainer"), "staikos@kde.org");
|
about.addAuthor(ki18n("George Staikos"), ki18n("Primary author and maintainer"), "staikos@kde.org");
|
||||||
|
|
||||||
KCmdLineArgs::init(argc, argv, &about);
|
KCmdLineArgs::init(argc, argv, &about);
|
||||||
KApplication a;
|
KApplication a;
|
||||||
|
|
||||||
KNetAttach na;
|
KNetAttach na;
|
||||||
a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
|
a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
|
||||||
na.show();
|
na.show();
|
||||||
|
|
||||||
return a.exec();
|
return a.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ Categories=Qt;KDE;System;TerminalEmulator;
|
||||||
Actions=NewWindow;
|
Actions=NewWindow;
|
||||||
X-DocPath=konsole/index.html
|
X-DocPath=konsole/index.html
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
|
X-KDE-HasTrayOption=true
|
||||||
|
|
||||||
Name=Konsole
|
Name=Konsole
|
||||||
Name[af]=Konsole
|
Name[af]=Konsole
|
||||||
|
|
|
@ -175,3 +175,4 @@ X-DocPath=ksysguard/index.html
|
||||||
Terminal=false
|
Terminal=false
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
Categories=Qt;KDE;System;
|
Categories=Qt;KDE;System;
|
||||||
|
X-KDE-HasTrayOption=true
|
||||||
|
|
|
@ -6,6 +6,7 @@ StartupNotify=true
|
||||||
Implements=org.kde.systemsettings
|
Implements=org.kde.systemsettings
|
||||||
SingleMainWindow=true
|
SingleMainWindow=true
|
||||||
NotShowIn=KDE;
|
NotShowIn=KDE;
|
||||||
|
X-KDE-HasTrayOption=true
|
||||||
|
|
||||||
GenericName=KDE System Settings
|
GenericName=KDE System Settings
|
||||||
GenericName[ar]=إعدادات نظام كدي
|
GenericName[ar]=إعدادات نظام كدي
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#include "SystemSettingsApp.h"
|
#include "SystemSettingsApp.h"
|
||||||
#include "SettingsBase.h"
|
#include "SettingsBase.h"
|
||||||
|
|
||||||
int main( int argc, char *argv[] )
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
// About data
|
// About data
|
||||||
KAboutData aboutData("systemsettings", 0, ki18n("System Settings"), KDE_VERSION_STRING, ki18n("Central configuration center for KDE."), KAboutData::License_GPL, ki18n("(c) 2009, Ben Cooksley"));
|
KAboutData aboutData("systemsettings", 0, ki18n("System Settings"), KDE_VERSION_STRING, ki18n("Central configuration center for KDE."), KAboutData::License_GPL, ki18n("(c) 2009, Ben Cooksley"));
|
||||||
|
|
|
@ -7,6 +7,7 @@ StartupNotify=true
|
||||||
Implements=org.kde.systemsettings
|
Implements=org.kde.systemsettings
|
||||||
SingleMainWindow=true
|
SingleMainWindow=true
|
||||||
OnlyShowIn=KDE;
|
OnlyShowIn=KDE;
|
||||||
|
X-KDE-HasTrayOption=true
|
||||||
|
|
||||||
GenericName=System Settings
|
GenericName=System Settings
|
||||||
GenericName[ar]=إعدادات النظام
|
GenericName[ar]=إعدادات النظام
|
||||||
|
|
Loading…
Add table
Reference in a new issue