Chrome default, trigger preview plugins

master
Artem Proskurnev 3 years ago
parent f4cc73b0a5
commit 8af535e313
  1. 0
      kometa-std-desktop-1.3/Home.desktop
  2. 0
      kometa-std-desktop-1.3/brandicons.filetrigger
  3. 0
      kometa-std-desktop-1.3/chromium.json
  4. 0
      kometa-std-desktop-1.3/inkscape.xml
  5. 3
      kometa-std-desktop-1.3/kdeglobals
  6. 30
      kometa-std-desktop-1.3/previewplugins.filetrigger
  7. 0
      kometa-std-desktop-1.3/trash.desktop
  8. 0
      kometa-std-desktop-1.3/Документ.ott
  9. 0
      kometa-std-desktop-1.3/Презентация.otp
  10. 0
      kometa-std-desktop-1.3/Таблица.ots
  11. 22
      kometa-std-desktop.spec

@ -0,0 +1,3 @@
[General]
BrowserApplication=chromium.desktop
TerminalService=kf5-org.kde.konsole.desktop

@ -0,0 +1,30 @@
#!/bin/sh
#
# RPM filetrigger for kde5 preview plugins.
#
# Copyright (C) 2021 Artem Proskurnev <tema@proskurnevs.ru>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
mf='/usr/share/kf5/plasma/plasmoids/org.kde.desktopcontainment/contents/config/main.xml'
if egrep -qs $mf;
then
if [ -f $mf ];
then
cat $mf > /tmp/main.xml
f="/tmp/main.xml"
g="/tmp/group.xml"
t="/tmp/tempmain.xml"
gstart=$(cat $f | grep -n "<group" | egrep -o "^[0-9]+")
gend=$(cat $f | grep -n "</group>" | egrep -o "^[0-9]+")
awk "NR>=$gstart && NR<=$gend" $f > $g
awk "NR<$gstart" $f > $t
xmlstarlet edit -u "/group/entry[@name='previewPlugins']/default" -v "audiothumbnail,ffmpegthumbs,imagethumbnail,exrthumbnail,jpegthumbnail,windowsimagethumbnail,svgthumbnail,windowsexethumbnail,comicbookthumbnail,directorythumbnail,fontthumbnail,blenderthumbnail,rawthumbnail,ebookthumbnail" $g | awk "NR>1" >> $t
awk "NR>$gend" $f >> $t
sed -i "s/<default\/>/<default><\/default>/g" $t
mv -f $t $mf
fi
fi

@ -1,5 +1,5 @@
Name: kometa-std-desktop Name: kometa-std-desktop
Version: 1.1 Version: 1.3
Release: kometa1 Release: kometa1
Summary: Kometa default desktop settings Summary: Kometa default desktop settings
@ -25,23 +25,28 @@ Default settings for applications
%install %install
%define skeldir "/etc/skel" %define skeldir "/etc/skel"
%define skelconfigdir "/etc/skel/.config"
%define skeldesktopdir "/etc/skel/Рабочий стол" %define skeldesktopdir "/etc/skel/Рабочий стол"
%define ftdir "/usr/lib/rpm" %define ftdir "/usr/lib/rpm"
mkdir -p %buildroot%skeldir/.config/inkscape mkdir -p %buildroot%skelconfigdir
mkdir -p %buildroot%skeldir/.config/chromium/Default mkdir -p %buildroot%skelconfigdir/inkscape
mkdir -p %buildroot%skelconfigdir/chromium/Default
mkdir -p %buildroot%skeldesktopdir mkdir -p %buildroot%skeldesktopdir
mkdir -p %buildroot%ftdir mkdir -p %buildroot%ftdir
install -pm644 inkscape.xml %buildroot%skeldir/.config/inkscape/preferences.xml install -pm644 kdeglobals %buildroot%skelconfigdir
install -pm644 chromium.json %buildroot%skeldir/.config/chromium/Default/Preferences install -pm644 inkscape.xml %buildroot%skelconfigdir/inkscape/preferences.xml
install -pm644 chromium.json %buildroot%skelconfigdir/chromium/Default/Preferences
install -pm644 Home.desktop %buildroot%skeldesktopdir install -pm644 Home.desktop %buildroot%skeldesktopdir
install -pm644 trash.desktop %buildroot%skeldesktopdir install -pm644 trash.desktop %buildroot%skeldesktopdir
install -pm644 Документ.ott %buildroot%skeldesktopdir install -pm644 Документ.ott %buildroot%skeldesktopdir
install -pm644 Таблица.ots %buildroot%skeldesktopdir install -pm644 Таблица.ots %buildroot%skeldesktopdir
install -pm644 Презентация.otp %buildroot%skeldesktopdir install -pm644 Презентация.otp %buildroot%skeldesktopdir
install -pm755 brandicons.filetrigger %buildroot%ftdir install -pm755 brandicons.filetrigger %buildroot%ftdir
install -pm755 previewplugins.filetrigger %buildroot%ftdir
%files %files
"/etc/skel/.config/kdeglobals"
"/etc/skel/.config/inkscape/preferences.xml" "/etc/skel/.config/inkscape/preferences.xml"
"/etc/skel/.config/chromium/Default/Preferences" "/etc/skel/.config/chromium/Default/Preferences"
"/etc/skel/Рабочий стол/Home.desktop" "/etc/skel/Рабочий стол/Home.desktop"
@ -50,8 +55,15 @@ install -pm755 brandicons.filetrigger %buildroot%ftdir
"/etc/skel/Рабочий стол/Презентация.otp" "/etc/skel/Рабочий стол/Презентация.otp"
"/etc/skel/Рабочий стол/Таблица.ots" "/etc/skel/Рабочий стол/Таблица.ots"
"/usr/lib/rpm/brandicons.filetrigger" "/usr/lib/rpm/brandicons.filetrigger"
"/usr/lib/rpm/previewplugins.filetrigger"
%changelog %changelog
* Thu Feb 17 2022 Artem Proskurnev <tema@proskurnevs.ru> 1.3-kometa1
- KDE5 preview plugins
* Wed Feb 16 2022 Artem Proskurnev <tema@proskurnevs.ru> 1.2-kometa1
- Chromium - default
* Wed Dec 29 2021 Artem Proskurnev <tema@proskurnevs.ru> 1.1-kometa1 * Wed Dec 29 2021 Artem Proskurnev <tema@proskurnevs.ru> 1.1-kometa1
- Change Inkscape deafult theme. In a standard theme, icons are not visible on a dark background. Chromium <- yandex.ru - Change Inkscape deafult theme. In a standard theme, icons are not visible on a dark background. Chromium <- yandex.ru

Loading…
Cancel
Save