mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
associated .hct and .zct files with ZoiteChat for easy Theme importation like there was in the Theme Manager that was removed.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
appdir = join_paths(get_option('datadir'), 'applications')
|
||||
metainfodir = join_paths(get_option('datadir'), 'metainfo')
|
||||
mimedir = join_paths(get_option('datadir'), 'mime', 'packages')
|
||||
desktop_utils = find_program('desktop-file-validate', required: false)
|
||||
|
||||
if get_option('gtk-frontend')
|
||||
@@ -42,6 +43,10 @@ if get_option('gtk-frontend')
|
||||
install_dir: appdir
|
||||
)
|
||||
|
||||
install_data('net.zoite.Zoitechat.mime.xml',
|
||||
install_dir: mimedir
|
||||
)
|
||||
|
||||
if desktop_utils.found()
|
||||
test('Validate net.zoite.Zoitechat.desktop', desktop_utils,
|
||||
args: [zoitechat_desktop]
|
||||
|
||||
@@ -11,7 +11,7 @@ Categories=GTK;Network;IRCClient;
|
||||
StartupNotify=true
|
||||
StartupWMClass=Zoitechat
|
||||
X-GNOME-UsesNotifications=true
|
||||
MimeType=x-scheme-handler/irc;x-scheme-handler/ircs;
|
||||
MimeType=x-scheme-handler/irc;x-scheme-handler/ircs;application/x-zoitechat-theme;application/x-hexchat-theme;
|
||||
Actions=SafeMode;
|
||||
|
||||
[Desktop Action SafeMode]
|
||||
|
||||
11
data/misc/net.zoite.Zoitechat.mime.xml
Normal file
11
data/misc/net.zoite.Zoitechat.mime.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
||||
<mime-type type="application/x-zoitechat-theme">
|
||||
<comment>ZoiteChat Theme</comment>
|
||||
<glob pattern="*.zct"/>
|
||||
</mime-type>
|
||||
<mime-type type="application/x-hexchat-theme">
|
||||
<comment>HexChat Theme</comment>
|
||||
<glob pattern="*.hct"/>
|
||||
</mime-type>
|
||||
</mime-info>
|
||||
Reference in New Issue
Block a user