gnome

Linux Mint 安装Ubuntu 磁盘实用工具

一个人想着一个人 提交于 2019-12-16 19:01:24
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Ubuntu下有个很好用的磁盘实用工具 ,查看其运行的命令是 palimpsest ; 在Linux Mint 下默认没有安装 ,想要使用 利用ubuntu的源自动安装就行了。关键是软件包的名字 ,这里有个小技巧,直接在终端运行命令: palimpsest 然后 系统提示 没有安装: The program 'palimpsest' is currently not installed. You can install it by typing: sudo apt-get install gnome-disk-utility 下面那句就是我们想要的了,输入到终端,安装完就可以用了! sudo apt-get install gnome-disk-utility OK! 来源: oschina 链接: https://my.oschina.net/u/100572/blog/8598

How to detect a user logged in through GUI in Linux

牧云@^-^@ 提交于 2019-12-14 03:55:42
问题 I would like to capture the user name logged in through GUI in my program. My program is running as a daemon from root login. If a non root user logs in through GUI my program should be notified. I am pasting my current program which calls a perl script making use of system call to check who is the current user logged in. I am pasting my perl script too for reference. #include <X11/Xlib.h> #include <X11/Xos.h> #include <X11/Xfuncs.h> #include <X11/Xutil.h> #include <X11/Xatom.h> int main() {

Which languages does libpeas support?

試著忘記壹切 提交于 2019-12-13 07:25:35
问题 The plugin description for a libpeas plugin contains a line determining the Loader and with this the programming language the plugin is written in. It seems the documentation includes not list of available languages. Inspecting the git repository of the project, a top-level directory "Loaders" can be found listing entries for c, gjs, seed and python. It is unclear also if the python version expected is 2 or 3. These are by far fewer languages that the related gobject introspection provides

how to save Drawing area's content after resizing window at cairo

此生再无相见时 提交于 2019-12-13 04:53:22
问题 how can I change the below code so the contents and drawings at the Drawing-area won't clean after changing window's size. I want to copy smaller surface content to top left corner of the bigger content and for copying bigger surface to smaller surface there should be some data loss code is from gtk+-3.0 reference manual #include <gtk/gtk.h> /* Surface to store current scribbles */ static cairo_surface_t *surface = NULL; static void clear_surface (void) { cairo_t *cr; cr = cairo_create

Emacs: How to view sftp folders

感情迁移 提交于 2019-12-12 16:26:58
问题 I'm running Ubuntu and playing with Emacs for the first time but unfortunately it doesn't seem to see any sftp folders I currently have mounted. These folder are visible to nautilus and gedit. Can any experienced emac users point me in the right direction? 回答1: I'm not sure how to get Emacs to pick up specifically those servers that have been mounted under Nautilus. However (and hopefully this meets your needs), you can still view and edit remote files and directories using Tramp if you know

How to choose the graphic toolkit for PyQt

半城伤御伤魂 提交于 2019-12-12 09:43:22
问题 I'm developing an PyQt application for my clients. The problem is that my default graphical is Gnome and my client KDE. So there is some difference I can not contrôle. How can I force the pyQt to choose the good graphical system (Gnome) instead of the default system (KDE)? 回答1: Use QApplication::setStyle ( QStyle * style ) with one of these values as parameter: plastique cde motif sgi windows cleanlooks mac 回答2: app.setStyle(QStyleFactory.create("plastique")) is the way to go 来源: https:/

Android Device Monitor not found JDK Path

若如初见. 提交于 2019-12-12 09:35:00
问题 I'm using Arch Linux with Gnome. I open Android Studio by the desktop item. The code editor works fine, the device manager starts correctly and the app run like a charm, but when I try to open the Device Monitor, I get this error: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Monitor. No Java virtual machine was found after searching the following locations: /home/grams/Android/Sdk/tools/lib/monitor-x86_64/jre/bin/java java in your current

How can I change the title bar of a gnome theme to black

房东的猫 提交于 2019-12-12 08:55:05
问题 Update: I tried changing the top line in my gtkrc2.0 file to this gtk-color-scheme = "base_color:#000000\nfg_color:#000000\ntooltip_fg_color:#000000\nselected_bg_color:#000000\nselected_fg_color:#000000\ntext_color:#000000\nbg_color:#000000\ntooltip_bg_color:#000000" but that didn't seem to help either. I'm making some tweaks to my desktop (Ubuntu 14.04 with Gnome-shell 3.9.90) and I want to get my title bar black. By title bar I mean the thing you double click on to maximize the window or

Open gnome terminal programmatically and execute commands after bashrc was executed

可紊 提交于 2019-12-12 07:12:15
问题 I try to build a little script to start my development environment. For that task I try to open a gnome terminal with several tabs where automatically the rails server and autotest is started. But gnome-terminal --tab -e "rails server" --tab --tab does not work ("error creating the child process"). Also gnome-terminal --tab -e "bash -c \"rails server\"" --tab --tab` does not work. Any suggestions how to solve that problem? 回答1: Here is a nice trick we worked out at Superuser Add a eval "$BASH

Idea treats 'Ctrl + Slash' as 'Ctrl + Period' in hotkeys

雨燕双飞 提交于 2019-12-12 06:38:55
问题 So I've just migrated to Fedora Linux and ran over this problem when using my Idea. I have a notebook (no numpad) and I previously used the very same Idea (Ultimate, latest) with Win10 on this very same notebook and did not experience this. I use default English layout. In the lower row of QWERTY, to the right there is / button which is also ? with shift. It works as expected anywhere else, but in Idea, when I use it as a CTRL + / shortcut it actually treats it as a Ctrl + . Thus, instead of