Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37550369
en ru br
ALT Linux repositórios
S:1.0.14-alt1

Group :: Desktop gráfico/XFce
RPM: xfce4-panel-profiles

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: xfce4-panel-profiles-1.0.14-alt1.patch
Download


 Makefile.in.in                                     |  1 +
 data/layouts/SL-10/config.txt                      | 44 +++++++++++
 .../SL-10/launcher-5/xfce4-web-browser.desktop     | 17 +++++
 data/layouts/SL-10/whiskermenu-13.rc               | 88 ++++++++++++++++++++++
 xfce4-panel-profiles/xfce4-panel-profiles.py       | 14 +---
 5 files changed, 154 insertions(+), 10 deletions(-)
diff --git a/Makefile.in.in b/Makefile.in.in
index cdb05c6..9d6c68d 100644
--- a/Makefile.in.in
+++ b/Makefile.in.in
@@ -46,6 +46,7 @@ layouts:
 	cd data/layouts/xubuntu-14.04; tar $(TAROPTS) -cvjf "../Xubuntu 14.04 (Trusty).tar.bz2" *
 	cd data/layouts/xubuntu-18.04; tar $(TAROPTS) -cvjf "../Xubuntu 18.04 (Bionic).tar.bz2" *
 	cd data/layouts/openSUSE-Leap-15.x; tar $(TAROPTS) -cvjf "../openSUSE Leap 15.x.tar.bz2" *
+	cd data/layouts/SL-10; tar $(TAROPTS) -cvjf "../Simply Linux 10.tar.bz2" *
 
 install: all xfce4-panel-profiles.1
 	install -d $(DESTDIR)/$(PREFIX)/bin
diff --git a/data/layouts/SL-10/config.txt b/data/layouts/SL-10/config.txt
new file mode 100644
index 0000000..ef33976
--- /dev/null
+++ b/data/layouts/SL-10/config.txt
@@ -0,0 +1,44 @@
+/configver 2
+/panels [<1>]
+/panels/panel-1/length uint32 100
+/panels/panel-1/plugin-ids [<13>, <2>, <3>, <4>, <5>, <6>, <7>, <15>, <1>, <9>, <10>, <11>, <12>, <8>, <16>, <14>]
+/panels/panel-1/position 'p=12;x=379;y=741'
+/panels/panel-1/position-locked true
+/panels/panel-1/size uint32 28
+/plugins/plugin-1 'xkb'
+/plugins/plugin-1/caps-lock-indicator true
+/plugins/plugin-1/display-name uint32 1
+/plugins/plugin-1/display-scale uint32 60
+/plugins/plugin-1/display-tooltip-icon true
+/plugins/plugin-1/display-type uint32 2
+/plugins/plugin-10 'separator'
+/plugins/plugin-10/style uint32 1
+/plugins/plugin-11 'pulseaudio'
+/plugins/plugin-11/enable-keyboard-shortcuts true
+/plugins/plugin-12 'separator'
+/plugins/plugin-12/style uint32 1
+/plugins/plugin-13 'whiskermenu'
+/plugins/plugin-14 'actions'
+/plugins/plugin-14/appearance uint32 0
+/plugins/plugin-14/items [<'-lock-screen'>, <'-switch-user'>, <'-separator'>, <'-suspend'>, <'-hibernate'>, <'-separator'>, <'-shutdown'>, <'-restart'>, <'-separator'>, <'+logout'>, <'-logout-dialog'>]
+/plugins/plugin-15 'separator'
+/plugins/plugin-15/expand true
+/plugins/plugin-15/style uint32 0
+/plugins/plugin-16 'places'
+/plugins/plugin-2 'separator'
+/plugins/plugin-2/style uint32 1
+/plugins/plugin-3 'showdesktop'
+/plugins/plugin-4 'separator'
+/plugins/plugin-4/style uint32 1
+/plugins/plugin-5 'launcher'
+/plugins/plugin-5/items [<'xfce4-web-browser.desktop'>]
+/plugins/plugin-6 'pager'
+/plugins/plugin-6/rows uint32 2
+/plugins/plugin-7 'tasklist'
+/plugins/plugin-7/flat-buttons true
+/plugins/plugin-7/switch-workspace-on-unminimize false
+/plugins/plugin-8 'clock'
+/plugins/plugin-8/digital-layout uint32 3
+/plugins/plugin-8/digital-time-font 'Droid Sans 12'
+/plugins/plugin-9 'systray'
+/plugins/plugin-9/show-frame false
diff --git a/data/layouts/SL-10/launcher-5/xfce4-web-browser.desktop b/data/layouts/SL-10/launcher-5/xfce4-web-browser.desktop
new file mode 100644
index 0000000..9ab1979
--- /dev/null
+++ b/data/layouts/SL-10/launcher-5/xfce4-web-browser.desktop
@@ -0,0 +1,17 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Exec=exo-open --launch WebBrowser %u
+TryExec=exo-open --launch WebBrowser %u
+Icon=org.xfce.webbrowser
+StartupNotify=true
+Terminal=false
+Categories=Network;X-XFCE;X-Xfce-Toplevel;
+OnlyShowIn=XFCE;
+X-XFCE-MimeType=x-scheme-handler/http;x-scheme-handler/https;
+X-AppStream-Ignore=True
+Name=Web Browser
+Name[ru]=Веб-браузер
+Comment=Browse the web
+Comment[ru]=Смотреть в Интернете
+X-XFCE-Source=file:///usr/share/slinux-style/applications/xfce4-web-browser.desktop
diff --git a/data/layouts/SL-10/whiskermenu-13.rc b/data/layouts/SL-10/whiskermenu-13.rc
new file mode 100644
index 0000000..e21ba11
--- /dev/null
+++ b/data/layouts/SL-10/whiskermenu-13.rc
@@ -0,0 +1,88 @@
+favorites=xfce4-terminal-emulator.desktop,xfce4-file-manager.desktop,xfce4-mail-reader.desktop,xfce4-web-browser.desktop
+recent=org.xfce.mousepad.desktop,cpu-x.desktop,xfce4-file-manager.desktop,xfce4-terminal-emulator.desktop
+button-icon=slinux
+button-single-row=false
+show-button-title=false
+show-button-icon=true
+launcher-show-name=false
+launcher-show-description=true
+launcher-show-tooltip=true
+launcher-icon-size=2
+hover-switch-category=false
+category-show-name=true
+category-icon-size=1
+sort-categories=false
+view-mode=2
+default-category=0
+recent-items-max=10
+favorites-in-recent=true
+position-search-alternate=false
+position-commands-alternate=false
+position-categories-alternate=false
+position-categories-horizontal=false
+stay-on-focus-out=false
+profile-shape=0
+confirm-session-command=true
+menu-width=400
+menu-height=530
+menu-opacity=100
+command-settings=xfce4-settings-manager
+show-command-settings=true
+command-lockscreen=xflock4
+show-command-lockscreen=true
+command-switchuser=xfce4-session-logout --switch-user
+show-command-switchuser=true
+command-logoutuser=xfce4-session-logout --logout --fast
+show-command-logoutuser=false
+command-restart=xfce4-session-logout --reboot --fast
+show-command-restart=false
+command-shutdown=xfce4-session-logout --halt --fast
+show-command-shutdown=false
+command-suspend=xfce4-session-logout --suspend
+show-command-suspend=false
+command-hibernate=xfce4-session-logout --hibernate
+show-command-hibernate=false
+command-logout=xfce4-session-logout
+show-command-logout=true
+command-menueditor=menulibre
+show-command-menueditor=true
+command-profile=
+show-command-profile=false
+search-actions=6
+
+[action0]
+name=Man-страницы
+pattern=#
+command=exo-open --launch TerminalEmulator man %s
+regex=false
+
+[action1]
+name=Поиск в Интернете
+pattern=?
+command=exo-open --launch WebBrowser https://duckduckgo.com/?q=%u
+regex=false
+
+[action2]
+name=Поиск файлов
+pattern=-
+command=catfish --path=~ --start %s
+regex=false
+
+[action3]
+name=Википедия
+pattern=!w
+command=exo-open --launch WebBrowser https://en.wikipedia.org/wiki/%u
+regex=false
+
+[action4]
+name=Выполнить в терминале
+pattern=!
+command=exo-open --launch TerminalEmulator %s
+regex=false
+
+[action5]
+name=Открыть URI
+pattern=^(file|http|https):\\/\\/(.*)$
+command=exo-open \\0
+regex=true
+
diff --git a/xfce4-panel-profiles/xfce4-panel-profiles.py b/xfce4-panel-profiles/xfce4-panel-profiles.py
index 1a897de..602d89e 100644
--- a/xfce4-panel-profiles/xfce4-panel-profiles.py
+++ b/xfce4-panel-profiles/xfce4-panel-profiles.py
@@ -28,16 +28,10 @@ import warnings
 
 import gi
 gi.require_version('Gtk', '3.0')
-# Try to import the new Libxfce4ui gir name (since 4.15.7)
-# if it does not exists, try the old libxfce4ui
-try:
-  gi.require_version('Libxfce4ui', '2.0')
-  from gi.repository import Libxfce4ui as libxfce4ui
-  from gi.repository import Libxfce4util as libxfce4util
-except ValueError:
-  gi.require_version('libxfce4ui', '2.0')
-  from gi.repository import libxfce4ui
-  from gi.repository import libxfce4util
+
+gi.require_version('Libxfce4ui', '2.0')
+from gi.repository import Libxfce4ui as libxfce4ui
+from gi.repository import Libxfce4util as libxfce4util
 
 from gi.repository import Gtk, GLib, Gio
 
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009