gnome

Ubuntu各个版本的介绍

夙愿已清 提交于 2020-01-04 07:54:55
Ubuntu各个版本的介绍 Ubuntu的版本比较多,而且基于ubuntu的衍生版也很多,让人容易混淆,也让很多人不知道自己适合哪一个,在这里简单比较一下ubuntu的各个版本的特点:   介绍ubuntu版本之前先说一说与ubuntu有关的一些知识:   Ubuntu的版本号命名规则:   ubuntu的版本命名规则非常简单易记:   前两位数字为发行时的年份年份的最后两位数字,后两位为发行的月份,中间以一个英文小数点隔开。   例如现在ubuntu的最新版是10.10,则代表了是在2010年10月份发行的。   上一个版本是10.04,则代表了是在2010年4月份发行的。   Ubuntu的代号命名   :   Ubuntu的代号名非常有趣可爱,固定是形容词再加上动物名称,而且这个形容词和动物名的英文单词的第一个字母都是相同的。   Ubuntu 4.10 – Warty Warthog (多疣的疣猪)   Ubuntu 5.04 – Hoary Hedgehog (白发的刺猬)   Ubuntu 5.10 – Breezy Badger (活泼的獾)   Ubuntu 6.06 – Dapper Drake (整洁的公鸭)   Ubuntu 6.10 – Edgy Eft (尖利的小蜥蜴)   Ubuntu 7.04 – Feisty Fawn (烦躁不安的小鹿)  

How can I get the thumbnail that nautilus uses for a given file?

别说谁变了你拦得住时间么 提交于 2020-01-01 09:33:17
问题 Nautilus shows me a thumbnail of a file, if its an image it will show me a preview, if its a video it will show a frame from the video, if its a document it will show me the application icon. How can I access the image? I see they are cached in ~/.thumbnail/ however they are all given unique names. 回答1: the thumbnail filename is an md5 of the filename. However the filename is the absolute URI to the image (without a newline). So you need to do: echo -n 'file:///home/yuzem/pics/foo.jpg' |

Discover what window is active on Gnome/Linux/Ubuntu from Python?

六眼飞鱼酱① 提交于 2020-01-01 03:31:38
问题 Is there any way to get a list of all windows that are open at present and see what window is at the top (i.e. active?) from Python? This is using Gnome on Ubuntu Linux. wnck looks like it might do this, but it's very lacking in documentation. 回答1: import wnck screen = wnck.screen_get_default() window_list = screen.get_windows() active_window = screen.get_active_window() See also Get active window title in X, and WnckScreen in the documentation. Other questions containing wnck have useful

How to set my application's desktop icon for Linux: KDE, Gnome etc?

自作多情 提交于 2019-12-31 21:25:26
问题 I have a cross platform program that runs on Windows, Linux and Macintosh. My windows version has an Icon but I don't know how to make have one for my Linux build. Is there a standard format for KDE, Gnome etc. or will I have to do something special for each one? My app is in c++ and distributed as source so the end user will compile it with gcc. If I can have the icon embedded directly inside my exe binary that would be the best. 回答1: For Gnome and Kde, you would probably want to include a

Ubuntu18.04 一些好用的扩展

谁说胖子不能爱 提交于 2019-12-30 12:01:10
原文:https://www.lulinux.com/archives/2589 一些好用的扩展: United:https://www.gnome-look.org/p/1167950/ dynamic top bar:https://extensions.gnome.org/extension/885/dynamic-top-bar/ Media Player Indicator:监测和切换音乐,音乐达人必备。(视频3'58") Open Weather:显示天气情况。(视频3'12") System-monitor:监测硬件情况。(视频3'10") Screenshot Tool:一个面板按钮随时截图,爽! modern-calc:右侧滑入滑出的计算器,装逼必备。(视频3'38") Random_Walls:随时可以切换桌面壁纸。(视频3'16") Web search Dialog:一组快捷键随时打开一个对话框即时搜索web。(视频1'55") 当然,还有视频中暂时没有用到的诸多好用扩展如dash-to-panel,dropdown-terminal,shelltile,taskbar,bottom-panel等等…… TOC] 提示:archlinux及其衍生版本用户可使用aur helper工具搜索关键字进行下载安装以下扩展、主题、图标等。 shell扩展

Writing to stdin from PHP?

眉间皱痕 提交于 2019-12-30 09:00:23
问题 In linux I want to run a gnome zenity progress bar window from PHP. How zenity works is like this: linux-shell$ zenity --display 0:1 --progress --text='Backing up' --percentage=0 10 50 100 So the first command opens the zenity progress bar at 0 percent. Zenity then takes standard input numbers as the progress bar percentage (so it will go from 10% to 50% to 100% when you type those numbers in). I can't figure out how to get PHP to type in those numbers though, I have tried: exec($cmd); echo

Writing to stdin from PHP?

自作多情 提交于 2019-12-30 09:00:08
问题 In linux I want to run a gnome zenity progress bar window from PHP. How zenity works is like this: linux-shell$ zenity --display 0:1 --progress --text='Backing up' --percentage=0 10 50 100 So the first command opens the zenity progress bar at 0 percent. Zenity then takes standard input numbers as the progress bar percentage (so it will go from 10% to 50% to 100% when you type those numbers in). I can't figure out how to get PHP to type in those numbers though, I have tried: exec($cmd); echo

Java: JFrame.setLocationRelativeTo(null) not centering the window on Ubuntu 10.04 / gnome 2.30.2 with OpenJDK 1.6.0_18

我的梦境 提交于 2019-12-29 08:34:20
问题 Sample code: JFrame jFrame = new JFrame("Test"); jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); jFrame.setLocationRelativeTo(null); jFrame.setSize(600, 600); jFrame.pack(); // jFrame.setLocationRelativeTo(null); // same results jFrame.setVisible(true); Is this the OpenJDK's fault? I recall hearing it wasn't as good as Sun's, but since it became the standard for Ubuntu or whatever I decided to go along with it. The program is probably gonna run on windows, so I suppose I'm gonna have

Getting keyboard modifiers state using Gnome libs (GDK) fetches initial state only

佐手、 提交于 2019-12-29 08:06:43
问题 I'm trying to get the current keyboard modifiers state through gnome GDK or GTK library in aim to implement an accessibility gnome shell extension that shows that state. I know how to get thier state using xlib, but there is not full binding for gnome gjs. The code below get only the initial state. It does not update state. /* * compiling: gcc `pkg-config --cflags gdk-3.0` -o gdk_mod gdk_mod.c `pkg-config --libs gdk-3.0` */ #include <gdk/gdk.h> int main (int argc, char **argv) { gdk_init(

ubuntu 16.0升级18.0的一点小问题

淺唱寂寞╮ 提交于 2019-12-27 22:56:54
最后卡在installing snap gnome xxx上了。 卡了两小时,估计凉了,于是直接结束掉。 但是之后并没有什么错误,可以正常使用,毕竟真正的系统更新已经完事了。 反正很迷吧,推测那条未完成指令的意思是,用snap来安装gnome全家桶,为防有什么错误,我特意用apt-get又装了一遍gnome全家桶,感觉应该没问题了吧? 特意记下来,以后真炸了能知道这个事,就这样。 来源: CSDN 作者: Rachelint 链接: https://blog.csdn.net/Rachelint/article/details/103738755