論壇 - 查看所有帖子

   查看所有帖子

 到底部   前一個主題   下一個主題

« 1 2 3 (4) 5 6 7 ... 19642 »


LINE:abc227777 台東叫女人#台東喝茶#台東學生妹#台東定點套房
會員一級
註冊日期:
2018/8/1 18:39
所屬群組:
已註冊使用者
等級: 1
HP : 0 / 0
MP : 0 / 2
EXP: 2
離線
LINE:abc227777 台東叫女人#台東喝茶#台東學生妹#台東定點套房

附件:



jpg  5c9d1ec270fdb1.07011365_副本.jpg (109.63 KB)
52728_5db70b59dd763.jpg 600X600 px

Ident: f50e9e1f6118cbd38ff4dec5e336d35a | 10/28 23:38:05
應用擴展 工具箱
主題 | 討論區


回覆: 【Bug】Ubuntu 18.04頂端面板如果取消「Application Menu」
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 35
HP : 170 / 850
MP : 580 / 18809
EXP: 3
離線
## 前置作業

執行下面指令,安裝「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

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

待續...

Ident: 181790b05c59d1054833dfe2293a8c18 | 10/28 0:12:41
應用擴展 工具箱
主題 | 討論區


回覆: 【Bug】Ubuntu 18.04頂端面板如果取消「Application Menu」
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 35
HP : 170 / 850
MP : 580 / 18809
EXP: 3
離線
註: 以下暫記

# 探索「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

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

待續...

Ident: 181790b05c59d1054833dfe2293a8c18 | 10/27 23:51:21
應用擴展 工具箱
主題 | 討論區


回覆: 【Bug】Ubuntu 18.04頂端面板如果取消「Application Menu」
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 35
HP : 170 / 850
MP : 580 / 18809
EXP: 3
離線
註: 以下暫記

使用「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」。

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

待續...

Ident: 181790b05c59d1054833dfe2293a8c18 | 10/27 23:44:30
應用擴展 工具箱
主題 | 討論區


回覆: 【Bug】Ubuntu 18.04頂端面板如果取消「Application Menu」
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 35
HP : 170 / 850
MP : 580 / 18809
EXP: 3
離線
另外剛剛想到可以使用「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



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

補充完畢


Ident: 181790b05c59d1054833dfe2293a8c18 | 10/27 20:58:27
應用擴展 工具箱
主題 | 討論區


回覆: 【Bug】Ubuntu 18.04頂端面板如果取消「Application Menu」
會員五級
註冊日期:
2009/10/29 4:50
所屬群組:
已註冊使用者
等級: 41
HP : 201 / 1009
MP : 898 / 29629
EXP: 36
離線
samwhelp 寫到:

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

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



了解,辛苦了。 ^ ^

Ident: 8f159d6762244c7bb6803b1501dad52e | 10/27 20:27:42
應用擴展 工具箱
主題 | 討論區


回覆: 【Bug】Ubuntu 18.04頂端面板如果取消「Application Menu」
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 35
HP : 170 / 850
MP : 580 / 18809
EXP: 3
離線
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




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

報告完畢


Ident: 181790b05c59d1054833dfe2293a8c18 | 10/27 20:19:06
應用擴展 工具箱
主題 | 討論區


回覆: 【Bug】Ubuntu 18.04頂端面板如果取消「Application Menu」
會員五級
註冊日期:
2009/10/29 4:50
所屬群組:
已註冊使用者
等級: 41
HP : 201 / 1009
MP : 898 / 29629
EXP: 36
離線
samwhelp 寫到:

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

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


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

Ident: 8f159d6762244c7bb6803b1501dad52e | 10/27 19:16:59
應用擴展 工具箱
主題 | 討論區


回覆: 【Bug】Ubuntu 18.04頂端面板如果取消「Application Menu」
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 35
HP : 170 / 850
MP : 580 / 18809
EXP: 3
離線
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」也有一些討論案例。

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

以上提供參考

報告完畢


Ident: 181790b05c59d1054833dfe2293a8c18 | 10/27 17:21:20
應用擴展 工具箱
主題 | 討論區


回覆: ubuntu1804 (server版)硬碟掛載-就是無法掛載
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 35
HP : 170 / 850
MP : 580 / 18809
EXP: 3
離線
國一生 寫到:
我的系統是ubuntu 1804 (server版本)
想要掛載隨身碟,但怎麼爬文就是無法解決,請問大家這是什麼問題呢??文如下

root@ubun1804:/# fdisk -l

...略...

Disk /dev/sdb: 7.5 GiB, 8054112256 bytes, 15730688 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

#mkidr /mnt/usb
#mount /dev/sdb /mnt/usb

mount: /mnt/usb: wrong fs type, bad option, bad superblock on /dev/sdb, missing codepage or helper program, or other error.

#


請先確認您的「USB 隨身碟」,事先已經有做「磁碟分割」和「格式化」。

以我的環境「Ubuntu 18.04」為例,我的「USB 隨身碟」是在「/dev/sdc」。

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

## 使用「fdisk」觀察

執行


$ sudo fdisk -l /dev/sdc



顯示


Disk /dev/sdc: 7.5 GiB, 8032092160 bytes, 15687680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x30f7592d

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdc1        2048 15685631 15683584  7.5G  b W95 FAT32



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

## 使用「lsblk」觀察

執行


$ lsblk /dev/sdc



顯示


NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sdc      8:32   1  7.5G  0 disk
└─sdc1   8:33   1  7.5G  0 part




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

## 建立掛載資料夾

執行下面指令,建立資料夾「/mnt/usb」


$ sudo mkdir -p /mnt/usb



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

## 執行掛載

執行下面指令,將「/dev/sdc1」掛載到「/mnt/usb」這個資料夾。


$ sudo mount /dev/sdc1 /mnt/usb



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

## 使用「lsblk」確認掛載是否成功

執行


$ lsblk /dev/sdc



顯示


NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sdc      8:32   1  7.5G  0 disk
└─sdc1   8:33   1  7.5G  0 part /mnt/usb



或是執行


$ lsblk /dev/sdc1



顯示

NAME MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sdc1   8:33   1  7.5G  0 part /mnt/usb



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

## 使用「mount」確認掛載是否成功

執行


$ mount | grep sdc



顯示


/dev/sdc1 on /mnt/usb type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)




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

## 使用「findmnt」確認掛載是否成功

執行


$ findmnt /mnt/usb



或是執行


$ findmnt /dev/sdc1



顯示


TARGET SOURCE FSTYPE OPTIONS
/mnt/usb /dev/sdc1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro



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

可以到「鳥哥的 Linux 私房菜 - 基礎學習篇目錄 / 第二部分 Linux 檔案、目錄與磁碟格式」,找到跟磁碟操作相關的章節。

可以找到「第七章、Linux 磁碟與檔案系統管理」。

例如可以閱讀

* 7.1.1 磁碟組成與分割的複習
* 7.3 磁碟的分割、格式化、檢驗與掛載
* 7.3.1 觀察磁碟分割狀態
* 7.3.5 檔案系統掛載與卸載
* 7.1.7 掛載點的意義 (mount point)


另外還可以閱讀「第二章、主機規劃與磁碟分割 / 2.2 磁碟分割」。

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

* $ man fdisk
* $ man lsblk
* $ man mount
* $ man umount
* $ man findmnt
* $ man systemd-mount

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

* https://help.ubuntu.com/community/Mount
* https://help.ubuntu.com/community/Mount/USB
* https://wiki.archlinux.org/index.php/File_systems#Mount_a_file_system

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

已將此篇連結紀錄到下面兩個討論串

* [索引] 硬碟掛載與檔案系統
* Ubuntu 18.04 LTS (Bionic Beaver) Released

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

以上提供參考

報告完畢


Ident: 347ad9b627445b3e799184f9c71f678b | 10/25 19:05:08
應用擴展 工具箱
主題 | 討論區



« 1 2 3 (4) 5 6 7 ... 19642 »