【Bug】Ubuntu 18.04頂端面板如果取消「Application Menu」 [論壇 - Ubuntu 養蟲箱 - bug share]


正在瀏覽:   1 名遊客


 到底部   前一個主題   下一個主題  [無發表權] 請登錄或者註冊

(1) 2 »


【Bug】Ubuntu 18.04頂端面板如果取消「Application Menu」
會員五級
註冊日期:
2009/10/29 4:50
所屬群組:
已註冊使用者
等級: 41
HP : 202 / 1012
MP : 904 / 31364
EXP: 48
離線
Ubuntu 18.04頂端面板如果取消「Application Menu」,則「Application Menu」將會移到該軟體之視窗的標題列,但是「gnome-terminal」標題列的「Application Menu」圖示大小不正常,如附件。

附件:



png  Screenshot from 2019-10-01 23-28-11.png (326.71 KB)
16949_5d937695c1120.png 1920X1080 px

png  Screenshot from 2019-10-01 23-28-19.png (324.72 KB)
16949_5d93769d1b0ec.png 1920X1080 px

2019/10/1 23:54
應用擴展 工具箱
回覆: 【Bug】Ubuntu 18.04頂端面板如果取消「Application Menu」
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 35
HP : 172 / 861
MP : 598 / 20453
EXP: 45
離線
Xenomorph0525 寫到:
Ubuntu 18.04頂端面板如果取消「Application Menu」,則「Application Menu」將會移到該軟體之視窗的標題列,但是「gnome-terminal」標題列的「Application Menu」圖示大小不正常,如附件。


我目前不清楚您提到的發生狀況的癥結點在那,

所以在我的環境,我無法重現您說的狀況。


我先紀錄一下我剛剛在我的環境測試的結果。

在我的環境「Ubuntu 18.04」,

依照您所提到的,使用「gnome-tweaks」,

切換到「Top Bar」那個「頁籤」,

在「Application Menu」那個選項,從「On」切換到「Off」,

在我的環境,「icon」顯示的大小是正常的,並沒有看到異常的狀況。

================================================================================

然後稍微提一下,我的環境的設定,

在我的環境,我有額外安裝「gnome-icon-theme」和「numix-icon-theme」。

並且我的「icon-theme」是設定「Numix」。

其他相關的設定,請參考我設定的「Script」。


gsettings get org.gnome.desktop.wm.preferences theme
gsettings get org.gnome.desktop.interface cursor-theme
gsettings get org.gnome.desktop.interface icon-theme
gsettings get org.gnome.desktop.interface gtk-theme



在我的環境,顯示的結果


'NumixBlue'
'breeze_cursors'
'Numix'
'NumixBlue'



================================================================================

我若是將「gnome-icon-theme」先移除,再測試上面您提到的步驟,

則在「gnome-terminal」視窗標題列的圖示,就會從正常顯示,改成「?」的圖示

除了「icon-theme」之外,我猜測,您提到的狀況,會不會也跟「gtk-theme」有相關聯,

之前有一個討論案例「回覆: gedit畫面故障」,是跟「gtk-theme」有相關聯。

================================================================================

另外以下我做了一些簡單的探索,一併紀錄,

註: 以下是有安裝「gnome-icon-theme」的狀態。

================================================================================

## 探索「gnome-icon-theme

執行


$ dpkg -L gnome-icon-theme | grep gnome-terminal



顯示


/usr/share/icons/gnome/16x16/apps/gnome-terminal.png
/usr/share/icons/gnome/22x22/apps/gnome-terminal.png
/usr/share/icons/gnome/24x24/apps/gnome-terminal.png
/usr/share/icons/gnome/256x256/apps/gnome-terminal.png
/usr/share/icons/gnome/32x32/apps/gnome-terminal.png
/usr/share/icons/gnome/48x48/apps/gnome-terminal.png



================================================================================

## 探索「numix-icon-theme

執行


$ dpkg -L numix-icon-theme | grep gnome-terminal



沒有顯示

================================================================================

## 探索「/usr/share/icons/」

執行


$ find /usr/share/icons/ | grep gnome-terminal



顯示


/usr/share/icons/elementary-xfce/apps/48/gnome-terminal.png
/usr/share/icons/elementary-xfce/apps/24/gnome-terminal.png
/usr/share/icons/elementary-xfce/apps/32/gnome-terminal.png
/usr/share/icons/elementary-xfce/apps/64/gnome-terminal.png
/usr/share/icons/elementary-xfce/apps/22/gnome-terminal.png
/usr/share/icons/elementary-xfce/apps/16/gnome-terminal.png
/usr/share/icons/elementary-xfce/apps/128/gnome-terminal.png
/usr/share/icons/Humanity/apps/48/gnome-terminal.svg
/usr/share/icons/Humanity/apps/48/gnome-terminal.xpm
/usr/share/icons/Humanity/apps/24/gnome-terminal.svg
/usr/share/icons/Humanity/apps/24/gnome-terminal.xpm
/usr/share/icons/Humanity/apps/32/gnome-terminal.svg
/usr/share/icons/Humanity/apps/32/gnome-terminal.xpm
/usr/share/icons/Humanity/apps/64/gnome-terminal.svg
/usr/share/icons/Humanity/apps/64/gnome-terminal.xpm
/usr/share/icons/Humanity/apps/22/gnome-terminal.svg
/usr/share/icons/Humanity/apps/22/gnome-terminal.xpm
/usr/share/icons/Humanity/apps/16/gnome-terminal.svg
/usr/share/icons/Humanity/apps/16/gnome-terminal.xpm
/usr/share/icons/Humanity/apps/128/gnome-terminal.svg
/usr/share/icons/Humanity/apps/128/gnome-terminal.xpm
/usr/share/icons/Tango/22x22/apps/gnome-terminal.png
/usr/share/icons/Tango/16x16/apps/gnome-terminal.png
/usr/share/icons/Tango/scalable/apps/gnome-terminal.svg
/usr/share/icons/Tango/24x24/apps/gnome-terminal.png
/usr/share/icons/Tango/32x32/apps/gnome-terminal.png
/usr/share/icons/gnome/22x22/apps/gnome-terminal.png
/usr/share/icons/gnome/16x16/apps/gnome-terminal.png
/usr/share/icons/gnome/256x256/apps/gnome-terminal.png
/usr/share/icons/gnome/48x48/apps/gnome-terminal.png
/usr/share/icons/gnome/24x24/apps/gnome-terminal.png




================================================================================

## 探索「/usr/share/icons/」是來自於那些套件。

執行下面指令,探索「/usr/share/icons/」是來自於那些套件。


$ dpkg -S /usr/share/icons/



因為上面執行的結果,顯示的「Package」是在同一行,執行下面指令,則會顯示一行一個「Package」


$ dpkg -S /usr/share/icons/ | awk -F ': ' '{print $1}' | sed 's/, /\n/g' | sort -u



執行下面指令,則是將有「icon-theme」名稱的挑出來


$ dpkg -S /usr/share/icons/ | awk -F ': ' '{print $1}' | sed 's/, /\n/g' | sort -u | grep icon-theme



顯示


adwaita-icon-theme
breeze-icon-theme
gnome-icon-theme
hicolor-icon-theme
humanity-icon-theme
lxde-icon-theme
numix-icon-theme
oxygen-icon-theme
tango-icon-theme
xubuntu-icon-theme



================================================================================

除了「/usr/share/icons/」這個資料夾,
還有一個資料夾「~/.local/share/icons/」也可以放「icon」。

這兩個連結我有紀錄在「[索引] 泛Ubuntu 安裝調校」。

另外關於在「gnome-shell」環境下的討論案例,
我之前紀錄比較多的是在「Ubuntu 17.10」,
後來「Ubuntu 18.04」也有一些討論案例。

================================================================================

以上提供參考

報告完畢


2019/10/27 17:21
應用擴展 工具箱
回覆: 【Bug】Ubuntu 18.04頂端面板如果取消「Application Menu」
會員五級
註冊日期:
2009/10/29 4:50
所屬群組:
已註冊使用者
等級: 41
HP : 202 / 1012
MP : 904 / 31364
EXP: 48
離線
samwhelp 寫到:

我目前不清楚您提到的發生狀況的癥結點在那,

所以在我的環境,我無法重現您說的狀況。


可以試試新增一個帳戶,看看預設狀態下是怎樣。

2019/10/27 19:16
應用擴展 工具箱
回覆: 【Bug】Ubuntu 18.04頂端面板如果取消「Application Menu」
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 35
HP : 172 / 861
MP : 598 / 20453
EXP: 45
離線
Xenomorph0525 寫到:
samwhelp 寫到:

我目前不清楚您提到的發生狀況的癥結點在那,

所以在我的環境,我無法重現您說的狀況。


可以試試新增一個帳戶,看看預設狀態下是怎樣。


以下紀錄剛剛測試的結果。

我剛剛根據「Ubuntu Basic Skill / 下指令的方式新增使用者」這篇

執行下面指令,新增一個新的使用者「cooker」


$ sudo adduser cooker



然後登出後,使用「cooker」登入,

分別測了登入「Ubuntu (X Window)」,「Ubuntu Wayland」,「GNOME Classic」,

一樣依照您提到的方式來測,在我的環境,icon 顯示都是正常的大小

看來要再找時間,要來灌一個新的環境在「Virtual Box」測測看,我還在探索相關的套件,目前先測到這。

================================================================================

## 登入「Ubuntu (X Window)」


gsettings get org.gnome.desktop.wm.preferences theme
gsettings get org.gnome.desktop.interface cursor-theme
gsettings get org.gnome.desktop.interface icon-theme
gsettings get org.gnome.desktop.interface gtk-theme



在我的環境,顯示的結果


'Adwaita'
'DMZ-White'
'ubuntu-mono-dark'
'Ambiance'



================================================================================

## 登入「Ubuntu Wayland」


gsettings get org.gnome.desktop.wm.preferences theme
gsettings get org.gnome.desktop.interface cursor-theme
gsettings get org.gnome.desktop.interface icon-theme
gsettings get org.gnome.desktop.interface gtk-theme



在我的環境,顯示的結果


'Adwaita'
'DMZ-White'
'ubuntu-mono-dark'
'Ambiance'



================================================================================

## 登入「GNOME Classic」


gsettings get org.gnome.desktop.wm.preferences theme
gsettings get org.gnome.desktop.interface cursor-theme
gsettings get org.gnome.desktop.interface icon-theme
gsettings get org.gnome.desktop.interface gtk-theme



在我的環境,顯示的結果


'Adwaita'
'Adwaita'
'Adwaita'
'Adwaita'



================================================================================

## 探索「/usr/share/glib-2.0/schemas/」

執行


$ grep icon-theme /usr/share/glib-2.0/schemas/ -R -n



顯示


/usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml:100: <key name="icon-theme" type="s">
/usr/share/glib-2.0/schemas/10_ubuntu-settings.gschema.override:67:icon-theme = "ubuntu-mono-dark"
/usr/share/glib-2.0/schemas/10_ubuntu-settings.gschema.override:175:icon-theme = "Suru"
Binary file /usr/share/glib-2.0/schemas/gschemas.compiled matches




================================================================================

報告完畢


2019/10/27 20:19
應用擴展 工具箱
回覆: 【Bug】Ubuntu 18.04頂端面板如果取消「Application Menu」
會員五級
註冊日期:
2009/10/29 4:50
所屬群組:
已註冊使用者
等級: 41
HP : 202 / 1012
MP : 904 / 31364
EXP: 48
離線
samwhelp 寫到:

一樣依照您提到的方式來測,在我的環境,icon 顯示都是正常的大小

看來要再找時間,要來灌一個新的環境在「Virtual Box」測測看,我還在探索相關的套件,目前先測到這。



了解,辛苦了。 ^ ^

2019/10/27 20:27
應用擴展 工具箱
回覆: 【Bug】Ubuntu 18.04頂端面板如果取消「Application Menu」
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 35
HP : 172 / 861
MP : 598 / 20453
EXP: 45
離線
另外剛剛想到可以使用「lsof」來探索,雖然沒有特別的進展。

但還是補充紀錄一下剛剛測試的結果,提供參考。

================================================================================

## 使用「lsof」探索「gnome-terminal」

執行


$ ps aux | grep gnome-terminal



顯示


cooker 9457 2.5 0.4 573576 39628 ? Ssl 20:37 0:00 /usr/lib/gnome-terminal/gnome-terminal-server
cooker 9575 0.0 0.0 13072 1056 pts/0 S+ 20:37 0:00 grep --color=auto gnome-terminal



接著執行


$ lsof -p 9457 | grep icon



顯示


gnome-ter 9457 cooker mem REG 8,2 91796 281338 /usr/share/icons/gnome/icon-theme.cache
gnome-ter 9457 cooker mem REG 8,2 35684 277773 /usr/share/icons/hicolor/icon-theme.cache
gnome-ter 9457 cooker mem REG 8,2 35776 9047063 /usr/share/icons/Adwaita/icon-theme.cache
gnome-ter 9457 cooker mem REG 8,2 327184 9572027 /usr/share/icons/Humanity/icon-theme.cache
gnome-ter 9457 cooker mem REG 8,2 26816 9705422 /usr/share/icons/Humanity-Dark/icon-theme.cache
gnome-ter 9457 cooker mem REG 8,2 54224 277769 /usr/share/icons/ubuntu-mono-dark/icon-theme.cache




================================================================================

## 使用「lsof」探索「gnome-shell」

執行


$ ps aux | grep gnome-shell



顯示


cooker 9145 3.7 2.0 3370040 169600 tty2 Rl+ 20:36 0:20 /usr/bin/gnome-shell
cooker 9190 0.0 0.2 690184 20904 ? Sl 20:37 0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
cooker 9909 0.0 0.0 13072 2684 pts/0 S+ 20:46 0:00 grep --color=auto gnome-shell
gdm 15901 0.2 1.7 3268980 142096 tty1 Sl+ 12:18 1:03 /usr/bin/gnome-shell



接著執行


$ lsof -p 9145 | grep icon



顯示


gnome-she 9145 cooker mem REG 8,2 91796 281338 /usr/share/icons/gnome/icon-theme.cache
gnome-she 9145 cooker mem REG 8,2 35684 277773 /usr/share/icons/hicolor/icon-theme.cache
gnome-she 9145 cooker mem REG 8,2 35776 9047063 /usr/share/icons/Adwaita/icon-theme.cache
gnome-she 9145 cooker mem REG 8,2 327184 9572027 /usr/share/icons/Humanity/icon-theme.cache
gnome-she 9145 cooker mem REG 8,2 26816 9705422 /usr/share/icons/Humanity-Dark/icon-theme.cache
gnome-she 9145 cooker mem REG 8,2 54224 277769 /usr/share/icons/ubuntu-mono-dark/icon-theme.cache



接著執行


$ lsof -p 9145 | grep theme



顯示


gnome-she 9145 cooker mem REG 8,2 91796 281338 /usr/share/icons/gnome/icon-theme.cache
gnome-she 9145 cooker mem REG 8,2 35684 277773 /usr/share/icons/hicolor/icon-theme.cache
gnome-she 9145 cooker mem REG 8,2 35776 9047063 /usr/share/icons/Adwaita/icon-theme.cache
gnome-she 9145 cooker mem REG 8,2 327184 9572027 /usr/share/icons/Humanity/icon-theme.cache
gnome-she 9145 cooker mem REG 8,2 26816 9705422 /usr/share/icons/Humanity-Dark/icon-theme.cache
gnome-she 9145 cooker mem REG 8,2 54224 277769 /usr/share/icons/ubuntu-mono-dark/icon-theme.cache
gnome-she 9145 cooker mem REG 8,2 466933 9072480 /usr/share/gnome-shell/gnome-shell-theme.gresource



================================================================================

補充完畢


2019/10/27 20:58
應用擴展 工具箱
回覆: 【Bug】Ubuntu 18.04頂端面板如果取消「Application Menu」
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 35
HP : 172 / 861
MP : 598 / 20453
EXP: 45
離線
註: 以下暫記

使用「gtk icon」當關鍵字查詢

可以找到兩個頁面

* https://developer.gnome.org/gtk3/stable/gtk3-icon-browser.html
* https://developer.gnome.org/gtk3/stable/GtkIconTheme.html

================================================================================

## 查詢「gtk3-icon-browser」來自那個「Package」

執行


$ apt-file search gtk3-icon-browser



顯示


app-install-data: /usr/share/app-install/desktop/gtk-3-examples:gtk3-icon-browser.desktop
gtk-3-examples: /usr/bin/gtk3-icon-browser
gtk-3-examples: /usr/share/applications/gtk3-icon-browser.desktop
gtk-3-examples: /usr/share/man/man1/gtk3-icon-browser.1.gz
libgtk-3-doc: /usr/share/doc/libgtk-3-doc/gtk3/gtk3-icon-browser.html
papirus-icon-theme: /usr/share/icons/Papirus/16x16/apps/gtk3-icon-browser.svg
papirus-icon-theme: /usr/share/icons/Papirus/22x22/apps/gtk3-icon-browser.svg
papirus-icon-theme: /usr/share/icons/Papirus/24x24/apps/gtk3-icon-browser.svg
papirus-icon-theme: /usr/share/icons/Papirus/32x32/apps/gtk3-icon-browser.svg
papirus-icon-theme: /usr/share/icons/Papirus/48x48/apps/gtk3-icon-browser.svg
papirus-icon-theme: /usr/share/icons/Papirus/64x64/apps/gtk3-icon-browser.svg



================================================================================

## 安裝「gtk-3-examples」

執行下面指令,安裝「gtk-3-examples」。


$ sudo apt-get install gtk-3-examples



================================================================================

## 執行「gtk3-icon-browser

執行


$ gtk3-icon-browser



會顯示一個視窗。

接著使用「terminal」當關鍵字查詢,

就可以找到「utilities-terminal」。

================================================================================

## 使用「utilities-terminal」當關鍵字,探索「/usr/share/icons/」

執行


$ find /usr/share/icons/ | grep utilities-terminal



顯示


/usr/share/icons/HighContrast/22x22/apps/utilities-terminal.png
/usr/share/icons/HighContrast/16x16/apps/utilities-terminal.png
/usr/share/icons/HighContrast/256x256/apps/utilities-terminal.png
/usr/share/icons/HighContrast/scalable/apps/utilities-terminal.svg
/usr/share/icons/HighContrast/48x48/apps/utilities-terminal.png
/usr/share/icons/HighContrast/24x24/apps/utilities-terminal.png
/usr/share/icons/HighContrast/32x32/apps/utilities-terminal.png
/usr/share/icons/Adwaita/scalable/apps/utilities-terminal-symbolic.svg
/usr/share/icons/breeze-dark/apps/48/utilities-terminal.svg
/usr/share/icons/breeze-dark/apps/32/utilities-terminal.svg
/usr/share/icons/breeze-dark/apps/64/utilities-terminal.svg
/usr/share/icons/breeze-dark/apps/22/utilities-terminal.svg
/usr/share/icons/breeze-dark/apps/16/utilities-terminal.svg
/usr/share/icons/oxygen/base/22x22/apps/utilities-terminal.png
/usr/share/icons/oxygen/base/16x16/apps/utilities-terminal.png
/usr/share/icons/oxygen/base/128x128/apps/utilities-terminal.png
/usr/share/icons/oxygen/base/48x48/apps/utilities-terminal.png
/usr/share/icons/oxygen/base/64x64/apps/utilities-terminal.png
/usr/share/icons/oxygen/base/32x32/apps/utilities-terminal.png
/usr/share/icons/elementary-xfce/apps/48/utilities-terminal.png
/usr/share/icons/elementary-xfce/apps/48/Etermutilities-terminal.png
/usr/share/icons/elementary-xfce/apps/24/utilities-terminal.png
/usr/share/icons/elementary-xfce/apps/24/Etermutilities-terminal.png
/usr/share/icons/elementary-xfce/apps/symbolic/utilities-terminal-symbolic.svg
/usr/share/icons/elementary-xfce/apps/32/utilities-terminal.png
/usr/share/icons/elementary-xfce/apps/32/Etermutilities-terminal.png
/usr/share/icons/elementary-xfce/apps/64/utilities-terminal.png
/usr/share/icons/elementary-xfce/apps/64/Etermutilities-terminal.png
/usr/share/icons/elementary-xfce/apps/22/utilities-terminal.png
/usr/share/icons/elementary-xfce/apps/22/Etermutilities-terminal.png
/usr/share/icons/elementary-xfce/apps/16/utilities-terminal.png
/usr/share/icons/elementary-xfce/apps/16/Etermutilities-terminal.png
/usr/share/icons/elementary-xfce/apps/128/utilities-terminal.png
/usr/share/icons/elementary-xfce/apps/128/Etermutilities-terminal.png
/usr/share/icons/Humanity/apps/48/Etermutilities-terminal.svg
/usr/share/icons/Humanity/apps/48/utilities-terminal.svg
/usr/share/icons/Humanity/apps/24/Etermutilities-terminal.svg
/usr/share/icons/Humanity/apps/24/utilities-terminal.svg
/usr/share/icons/Humanity/apps/32/Etermutilities-terminal.svg
/usr/share/icons/Humanity/apps/32/utilities-terminal.svg
/usr/share/icons/Humanity/apps/64/Etermutilities-terminal.svg
/usr/share/icons/Humanity/apps/64/utilities-terminal.svg
/usr/share/icons/Humanity/apps/22/Etermutilities-terminal.svg
/usr/share/icons/Humanity/apps/22/utilities-terminal.svg
/usr/share/icons/Humanity/apps/16/Etermutilities-terminal.svg
/usr/share/icons/Humanity/apps/16/utilities-terminal.svg
/usr/share/icons/Humanity/apps/128/Etermutilities-terminal.svg
/usr/share/icons/Humanity/apps/128/utilities-terminal.svg
/usr/share/icons/Tango/22x22/apps/utilities-terminal.png
/usr/share/icons/Tango/16x16/apps/utilities-terminal.png
/usr/share/icons/Tango/scalable/apps/utilities-terminal.svg
/usr/share/icons/Tango/24x24/apps/utilities-terminal.png
/usr/share/icons/Tango/32x32/apps/utilities-terminal.png
/usr/share/icons/gnome/22x22/apps/utilities-terminal.png
/usr/share/icons/gnome/16x16/apps/utilities-terminal.png
/usr/share/icons/gnome/256x256/apps/utilities-terminal.png
/usr/share/icons/gnome/48x48/apps/utilities-terminal.png
/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
/usr/share/icons/gnome/32x32/apps/utilities-terminal.png
/usr/share/icons/breeze/apps/48/utilities-terminal.svg
/usr/share/icons/breeze/apps/32/utilities-terminal.svg
/usr/share/icons/breeze/apps/64/utilities-terminal.svg
/usr/share/icons/breeze/apps/22/utilities-terminal.svg
/usr/share/icons/breeze/apps/16/utilities-terminal.svg



================================================================================

## 探索「gnome-terminal」

執行


$ grep 'icon' -i -n $(dpkg -L gnome-terminal | grep desktop)



顯示


/usr/share/applications/gnome-terminal.desktop:7:Icon=utilities-terminal
/usr/share/applications/org.gnome.Terminal.desktop:7:Icon=utilities-terminal



可以了解到「gnome-terminal Desktop Entry」 的「Icon」是採用「utilities-terminal」。

================================================================================

## 再次使用「gnome-terminal」當關鍵字,探索「/usr/share/icons/」

執行


$ ls -l $(find /usr/share/icons/ | grep gnome-terminal)



顯示


lrwxrwxrwx 1 root root 22 Apr 14 2018 /usr/share/icons/elementary-xfce/apps/128/gnome-terminal.png -> utilities-terminal.png
lrwxrwxrwx 1 root root 22 Apr 14 2018 /usr/share/icons/elementary-xfce/apps/16/gnome-terminal.png -> utilities-terminal.png
lrwxrwxrwx 1 root root 22 Apr 14 2018 /usr/share/icons/elementary-xfce/apps/22/gnome-terminal.png -> utilities-terminal.png
lrwxrwxrwx 1 root root 22 Apr 14 2018 /usr/share/icons/elementary-xfce/apps/24/gnome-terminal.png -> utilities-terminal.png
lrwxrwxrwx 1 root root 22 Apr 14 2018 /usr/share/icons/elementary-xfce/apps/32/gnome-terminal.png -> utilities-terminal.png
lrwxrwxrwx 1 root root 22 Apr 14 2018 /usr/share/icons/elementary-xfce/apps/48/gnome-terminal.png -> utilities-terminal.png
lrwxrwxrwx 1 root root 22 Apr 14 2018 /usr/share/icons/elementary-xfce/apps/64/gnome-terminal.png -> utilities-terminal.png
lrwxrwxrwx 1 root root 22 Mar 18 2018 /usr/share/icons/gnome/16x16/apps/gnome-terminal.png -> utilities-terminal.png
lrwxrwxrwx 1 root root 22 Mar 18 2018 /usr/share/icons/gnome/22x22/apps/gnome-terminal.png -> utilities-terminal.png
lrwxrwxrwx 1 root root 22 Mar 18 2018 /usr/share/icons/gnome/24x24/apps/gnome-terminal.png -> utilities-terminal.png
lrwxrwxrwx 1 root root 22 Mar 18 2018 /usr/share/icons/gnome/256x256/apps/gnome-terminal.png -> utilities-terminal.png
lrwxrwxrwx 1 root root 22 Mar 18 2018 /usr/share/icons/gnome/32x32/apps/gnome-terminal.png -> utilities-terminal.png
lrwxrwxrwx 1 root root 22 Mar 18 2018 /usr/share/icons/gnome/48x48/apps/gnome-terminal.png -> utilities-terminal.png
lrwxrwxrwx 1 root root 22 Apr 29 2018 /usr/share/icons/Humanity/apps/128/gnome-terminal.svg -> utilities-terminal.svg
lrwxrwxrwx 1 root root 22 Apr 29 2018 /usr/share/icons/Humanity/apps/128/gnome-terminal.xpm -> utilities-terminal.svg
lrwxrwxrwx 1 root root 22 Apr 29 2018 /usr/share/icons/Humanity/apps/16/gnome-terminal.svg -> utilities-terminal.svg
lrwxrwxrwx 1 root root 22 Apr 29 2018 /usr/share/icons/Humanity/apps/16/gnome-terminal.xpm -> utilities-terminal.svg
lrwxrwxrwx 1 root root 22 Apr 29 2018 /usr/share/icons/Humanity/apps/22/gnome-terminal.svg -> utilities-terminal.svg
lrwxrwxrwx 1 root root 22 Apr 29 2018 /usr/share/icons/Humanity/apps/22/gnome-terminal.xpm -> utilities-terminal.svg
lrwxrwxrwx 1 root root 22 Apr 29 2018 /usr/share/icons/Humanity/apps/24/gnome-terminal.svg -> utilities-terminal.svg
lrwxrwxrwx 1 root root 22 Apr 29 2018 /usr/share/icons/Humanity/apps/24/gnome-terminal.xpm -> utilities-terminal.svg
lrwxrwxrwx 1 root root 22 Apr 29 2018 /usr/share/icons/Humanity/apps/32/gnome-terminal.svg -> utilities-terminal.svg
lrwxrwxrwx 1 root root 22 Apr 29 2018 /usr/share/icons/Humanity/apps/32/gnome-terminal.xpm -> utilities-terminal.svg
lrwxrwxrwx 1 root root 22 Apr 29 2018 /usr/share/icons/Humanity/apps/48/gnome-terminal.svg -> utilities-terminal.svg
lrwxrwxrwx 1 root root 22 Apr 29 2018 /usr/share/icons/Humanity/apps/48/gnome-terminal.xpm -> utilities-terminal.svg
lrwxrwxrwx 1 root root 22 Apr 29 2018 /usr/share/icons/Humanity/apps/64/gnome-terminal.svg -> utilities-terminal.svg
lrwxrwxrwx 1 root root 22 Apr 29 2018 /usr/share/icons/Humanity/apps/64/gnome-terminal.xpm -> utilities-terminal.svg
lrwxrwxrwx 1 root root 22 Jul 10 2017 /usr/share/icons/Tango/16x16/apps/gnome-terminal.png -> utilities-terminal.png
lrwxrwxrwx 1 root root 22 Jul 10 2017 /usr/share/icons/Tango/22x22/apps/gnome-terminal.png -> utilities-terminal.png
lrwxrwxrwx 1 root root 22 Jul 10 2017 /usr/share/icons/Tango/24x24/apps/gnome-terminal.png -> utilities-terminal.png
lrwxrwxrwx 1 root root 22 Jul 10 2017 /usr/share/icons/Tango/32x32/apps/gnome-terminal.png -> utilities-terminal.png
lrwxrwxrwx 1 root root 22 Jul 10 2017 /usr/share/icons/Tango/scalable/apps/gnome-terminal.svg -> utilities-terminal.svg



執行


$ file $(find /usr/share/icons/ | grep gnome-terminal)



顯示


/usr/share/icons/elementary-xfce/apps/48/gnome-terminal.png: symbolic link to utilities-terminal.png
/usr/share/icons/elementary-xfce/apps/24/gnome-terminal.png: symbolic link to utilities-terminal.png
/usr/share/icons/elementary-xfce/apps/32/gnome-terminal.png: symbolic link to utilities-terminal.png
/usr/share/icons/elementary-xfce/apps/64/gnome-terminal.png: symbolic link to utilities-terminal.png
/usr/share/icons/elementary-xfce/apps/22/gnome-terminal.png: symbolic link to utilities-terminal.png
/usr/share/icons/elementary-xfce/apps/16/gnome-terminal.png: symbolic link to utilities-terminal.png
/usr/share/icons/elementary-xfce/apps/128/gnome-terminal.png: symbolic link to utilities-terminal.png
/usr/share/icons/Humanity/apps/48/gnome-terminal.svg: symbolic link to utilities-terminal.svg
/usr/share/icons/Humanity/apps/48/gnome-terminal.xpm: symbolic link to utilities-terminal.svg
/usr/share/icons/Humanity/apps/24/gnome-terminal.svg: symbolic link to utilities-terminal.svg
/usr/share/icons/Humanity/apps/24/gnome-terminal.xpm: symbolic link to utilities-terminal.svg
/usr/share/icons/Humanity/apps/32/gnome-terminal.svg: symbolic link to utilities-terminal.svg
/usr/share/icons/Humanity/apps/32/gnome-terminal.xpm: symbolic link to utilities-terminal.svg
/usr/share/icons/Humanity/apps/64/gnome-terminal.svg: symbolic link to utilities-terminal.svg
/usr/share/icons/Humanity/apps/64/gnome-terminal.xpm: symbolic link to utilities-terminal.svg
/usr/share/icons/Humanity/apps/22/gnome-terminal.svg: symbolic link to utilities-terminal.svg
/usr/share/icons/Humanity/apps/22/gnome-terminal.xpm: symbolic link to utilities-terminal.svg
/usr/share/icons/Humanity/apps/16/gnome-terminal.svg: symbolic link to utilities-terminal.svg
/usr/share/icons/Humanity/apps/16/gnome-terminal.xpm: symbolic link to utilities-terminal.svg
/usr/share/icons/Humanity/apps/128/gnome-terminal.svg: symbolic link to utilities-terminal.svg
/usr/share/icons/Humanity/apps/128/gnome-terminal.xpm: symbolic link to utilities-terminal.svg
/usr/share/icons/Tango/22x22/apps/gnome-terminal.png: symbolic link to utilities-terminal.png
/usr/share/icons/Tango/16x16/apps/gnome-terminal.png: symbolic link to utilities-terminal.png
/usr/share/icons/Tango/scalable/apps/gnome-terminal.svg: symbolic link to utilities-terminal.svg
/usr/share/icons/Tango/24x24/apps/gnome-terminal.png: symbolic link to utilities-terminal.png
/usr/share/icons/Tango/32x32/apps/gnome-terminal.png: symbolic link to utilities-terminal.png
/usr/share/icons/gnome/22x22/apps/gnome-terminal.png: symbolic link to utilities-terminal.png
/usr/share/icons/gnome/16x16/apps/gnome-terminal.png: symbolic link to utilities-terminal.png
/usr/share/icons/gnome/256x256/apps/gnome-terminal.png: symbolic link to utilities-terminal.png
/usr/share/icons/gnome/48x48/apps/gnome-terminal.png: symbolic link to utilities-terminal.png
/usr/share/icons/gnome/24x24/apps/gnome-terminal.png: symbolic link to utilities-terminal.png
/usr/share/icons/gnome/32x32/apps/gnome-terminal.png: symbolic link to utilities-terminal.png



觀察到「gnome-terminal」都是「symbolic link」到「utilities-terminal」。

================================================================================

待續...

2019/10/27 23:44
應用擴展 工具箱
回覆: 【Bug】Ubuntu 18.04頂端面板如果取消「Application Menu」
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 35
HP : 172 / 861
MP : 598 / 20453
EXP: 45
離線
註: 以下暫記

# 探索「Source Package: gnome-terminal

================================================================================

## 下載「Source Package: gnome-terminal

執行下面指令,下載「Source Package: gnome-terminal


$ apt-get source gnome-terminal



會解開到資料夾「gnome-terminal-3.28.2」。

================================================================================

## 使用「utilities-terminal」當關鍵字,探索「gnome-terminal-3.28.2」這個資料夾

執行


$ grep 'utilities-terminal' gnome-terminal-3.28.2 -R -n



顯示


gnome-terminal-3.28.2/src/terminal-nautilus.c:94:#define TERMINAL_ICON_NAME "utilities-terminal"
gnome-terminal-3.28.2/src/terminal-app.h:29:#define GNOME_TERMINAL_ICON_NAME "utilities-terminal"
gnome-terminal-3.28.2/.pc/50_add_unity_quicklist.patch/org.gnome.Terminal.desktop.in.in:7:Icon=utilities-terminal
gnome-terminal-3.28.2/.pc/01_onlyshowin.patch/org.gnome.Terminal.desktop.in.in:7:Icon=utilities-terminal
gnome-terminal-3.28.2/org.gnome.Terminal.desktop.in.in:7:Icon=utilities-terminal
gnome-terminal-3.28.2/ChangeLog:42372:    Use the utilities-terminal icon from icon theme. Bug #126081 and bug #342804.



================================================================================

## 使用「GNOME_TERMINAL_ICON_NAME」當關鍵字,探索「gnome-terminal-3.28.2」這個資料夾

執行


$ grep 'GNOME_TERMINAL_ICON_NAME' gnome-terminal-3.28.2 -R -n



顯示


gnome-terminal-3.28.2/src/terminal-util.c:247:                         "logo-icon-name", GNOME_TERMINAL_ICON_NAME,
gnome-terminal-3.28.2/src/terminal-app.h:29:#define GNOME_TERMINAL_ICON_NAME "utilities-terminal"
gnome-terminal-3.28.2/src/terminal-app.c:747:  gtk_window_set_default_icon_name (GNOME_TERMINAL_ICON_NAME);
gnome-terminal-3.28.2/.pc/60_add_lp_handler.patch/src/terminal-util.c:247:                         "logo-icon-name", GNOME_TERMINAL_ICON_NAME,



================================================================================

* https://developer.gnome.org/gtk3/stable/GtkWindow.html#gtk-window-set-default-icon-name

================================================================================

待續...

2019/10/27 23:51
應用擴展 工具箱
回覆: 【Bug】Ubuntu 18.04頂端面板如果取消「Application Menu」
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 35
HP : 172 / 861
MP : 598 / 20453
EXP: 45
離線
## 前置作業

執行下面指令,安裝「python3-gi」和「gir1.2-gtk-3.0


$ sudo apt-get install python3-gi gir1.2-gtk-3.0



* https://pygobject.readthedocs.io/en/latest/getting_started.html
* https://python-gtk-3-tutorial.readthedocs.io/en/latest/introduction.html
* https://lazka.github.io/pgi-docs/#Gtk-3.0

================================================================================

使用「pygtk app menu」當關鍵字,

可以查詢到下面這個頁面

* https://python-gtk-3-tutorial.readthedocs.io/en/latest/application.html

裡面有一個範例,這個範例有實做「app menu (application menu)」

這個範例,假設存成檔案「test.py」。

其中有一段程式碼,如下


def do_activate(self):
	# We only allow a single window and raise any existing ones
	if not self.window:
		# Windows are associated with the application
		# when the last one is closed the application shuts down
		self.window = AppWindow(application=self, title="Main Window")

	self.window.present()



請加入一行「self.window.set_icon_name("utilities-terminal")」,也就是改成如下


def do_activate(self):
	# We only allow a single window and raise any existing ones
	if not self.window:
		# Windows are associated with the application
		# when the last one is closed the application shuts down
		self.window = AppWindow(application=self, title="Main Window")
		self.window.set_icon_name("utilities-terminal")

	self.window.present()



接著執行


$ python3 test.py



在我的環境測試,該程式視窗的標題列的「icon」一樣是正常顯示的。

您可以測測看這個範例,看看是否在您的環境,也會發生您在「#1」提到的狀況


================================================================================

* https://github.com/sebp/PyGObject-Tutorial/blob/master/source/application.txt
* https://github.com/sebp/PyGObject-Tutorial/blob/master/examples/application_example.py
* https://github.com/sebp/PyGObject-Tutorial/blob/master/images/application_example.png

================================================================================

* https://lazka.github.io/pgi-docs/#Gtk-3.0/classes/Window.html#Gtk.Window.set_icon_name
* https://lazka.github.io/pgi-docs/#Gtk-3.0/classes/Window.html#Gtk.Window.set_default_icon
* https://developer.gnome.org/gtk3/stable/GtkWindow.html#gtk-window-set-icon-name
* https://developer.gnome.org/gtk3/stable/GtkWindow.html#gtk-window-set-default-icon-name

================================================================================

* https://python-gtk-3-tutorial.readthedocs.io/en/latest/application.html
* https://wiki.gnome.org/HowDoI/ApplicationMenu
* https://gitlab.gnome.org/GNOME/Initiatives/wikis/App-Menu-Retirement

================================================================================

待續...

2019/10/28 0:12
應用擴展 工具箱
回覆: 【Bug】Ubuntu 18.04頂端面板如果取消「Application Menu」
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 35
HP : 172 / 861
MP : 598 / 20453
EXP: 45
離線
## 測試回報

剛剛到下面這一頁

* http://releases.ubuntu.com/18.04/

下載

* http://releases.ubuntu.com/18.04/ubuntu-18.04.3-desktop-amd64.iso

在「Virtual Box」安裝一個新的系統 (minimal install)


果然就出現樓主在「#1」提到的情況

================================================================================

## 登入「Ubuntu (X Window)」


gsettings get org.gnome.desktop.wm.preferences theme
gsettings get org.gnome.desktop.interface cursor-theme
gsettings get org.gnome.desktop.interface icon-theme
gsettings get org.gnome.desktop.interface gtk-theme



顯示的結果


'Adwaita'
'DMZ-White'
'ubuntu-mono-dark'
'Ambiance'



================================================================================

然後使用「#9」,提到的範例來測,

我有測了兩個不同的「icon」,也是同樣的情形

* self.window.set_icon_name("utilities-terminal")
* self.window.set_icon_name("folder")


================================================================================

報告完畢

2019/10/29 7:19
應用擴展 工具箱

(1) 2 »

 [無發表權] 請登錄或者註冊


可以查看帖子.
不可發帖.
不可回覆.
不可編輯自己的帖子.
不可刪除自己的帖子.
不可發起投票調查.
不可在投票調查中投票.
不可上傳附件.
不可不經審核直接發帖.