<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.linuxsa.org/index.php?action=history&amp;feed=atom&amp;title=Libreoffoffice</id>
	<title>Libreoffoffice - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.linuxsa.org/index.php?action=history&amp;feed=atom&amp;title=Libreoffoffice"/>
	<link rel="alternate" type="text/html" href="https://wiki.linuxsa.org/index.php?title=Libreoffoffice&amp;action=history"/>
	<updated>2026-04-19T09:04:41Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://wiki.linuxsa.org/index.php?title=Libreoffoffice&amp;diff=564&amp;oldid=prev</id>
		<title>Evan：​/* diy icon */</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxsa.org/index.php?title=Libreoffoffice&amp;diff=564&amp;oldid=prev"/>
		<updated>2025-06-16T07:04:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;diy icon&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[category:devops]] &lt;br /&gt;
=deb=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mkdir /home/evan/data/apps/libreoffice&lt;br /&gt;
&lt;br /&gt;
  tar xvf LibreOffice_25.2.4_Linux_x86-64_deb.tar.gz&lt;br /&gt;
&lt;br /&gt;
cd LibreOffice_25.2.4.3_Linux_x86-64_deb/DEBS&lt;br /&gt;
&lt;br /&gt;
#也可以用root &lt;br /&gt;
 for f in *.deb; do dpkg-deb -x $f /home/evan/apps/libreoffice; done &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#run &lt;br /&gt;
 /home/evan/data/apps/libreoffice/opt/libreoffice25.2/program/soffice&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
图标问题  参考原来的 apt &lt;br /&gt;
root@myxps:/usr/share/applications# ll libreoffice6.4-base.desktop &lt;br /&gt;
lrwxrwxrwx 1 root root 42  6月 25  2020 libreoffice6.4-base.desktop -&amp;gt; /opt/libreoffice6.4/share/xdg/base.desktop&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
加几个ln  &lt;br /&gt;
&lt;br /&gt;
ln -s /home/evan/data/apps/libreoffice/opt/libreoffice25.2/share/xdg/base.desktop  /usr/share/applications/libreoffice25-base.desktop &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
➜  xdg pwd&lt;br /&gt;
/home/evan/data/apps/libreoffice/opt/libreoffice25.2/share/xdg&lt;br /&gt;
➜  xdg ls &lt;br /&gt;
base.desktop  calc.desktop  draw.desktop  impress.desktop  math.desktop  startcenter.desktop  writer.desktop  xsltfilter.desktop&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=diy icon=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 cat cicon.sh &lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# 定义路径和变量&lt;br /&gt;
APP_NAME=&amp;quot;LibreOffice 25.2&amp;quot;&lt;br /&gt;
EXEC_PATH=&amp;quot;/home/evan/data/apps/libreoffice/opt/libreoffice25.2/program/soffice&amp;quot;&lt;br /&gt;
ICON_PATH=&amp;quot;/home/evan/data/apps/libreoffice/opt/libreoffice25.2/share/config/images_classic/brand_logo.png&amp;quot;&lt;br /&gt;
#DESKTOP_FILE=&amp;quot;$HOME/.local/share/applications/libreoffice-custom.desktop&amp;quot;&lt;br /&gt;
DESKTOP_FILE=&amp;quot;/usr/share/applications/libreoffice.desktop&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# 创建 .desktop 文件内容&lt;br /&gt;
cat &amp;gt; &amp;quot;$DESKTOP_FILE&amp;quot; &amp;lt;&amp;lt;EOF&lt;br /&gt;
[Desktop Entry]&lt;br /&gt;
Name=$APP_NAME&lt;br /&gt;
Comment=LibreOffice from custom path&lt;br /&gt;
Exec=$EXEC_PATH&lt;br /&gt;
Icon=$ICON_PATH&lt;br /&gt;
Terminal=false&lt;br /&gt;
Type=Application&lt;br /&gt;
Categories=Office;WordProcessor;Spreadsheet;Presentation;&lt;br /&gt;
StartupNotify=true&lt;br /&gt;
EOF&lt;br /&gt;
&lt;br /&gt;
# 设置执行权限（有些桌面环境要求）&lt;br /&gt;
chmod +x &amp;quot;$DESKTOP_FILE&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;✅ LibreOffice 图标已创建：$DESKTOP_FILE&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
##我的改一下 差不多 这样&lt;br /&gt;
&lt;br /&gt;
[Desktop Entry]&lt;br /&gt;
Version=1.0&lt;br /&gt;
Terminal=false&lt;br /&gt;
Icon=libreoffice25.2-base&lt;br /&gt;
Icon=/home/evan/data/images/libre.jpeg&lt;br /&gt;
Type=Application&lt;br /&gt;
Categories=Office;Database;X-Red-Hat-Base;&lt;br /&gt;
Exec=/home/evan/data/apps/libreoffice/opt/libreoffice25.2/program/soffice %U&lt;br /&gt;
#Exec=libreoffice25.2 --base %U&lt;br /&gt;
MimeType=application/vnd.oasis.opendocument.base;application/vnd.sun.xml.base;&lt;br /&gt;
Name=LibreOffice 25.2 Base&lt;br /&gt;
GenericName=libreoffice25&lt;br /&gt;
GenericName[ab]=Адырқәа рбаза&lt;br /&gt;
GenericName[vi]=Phát triển cơ sở dữ liệu&lt;br /&gt;
GenericName[xh]=Database Development&lt;br /&gt;
GenericName[zh_CN]=libreoffice&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=LibreOffice as AppImage=&lt;br /&gt;
更加方便&lt;/div&gt;</summary>
		<author><name>Evan</name></author>
	</entry>
</feed>