gnome

Xrandr displaying “Failed to get size of gamma for output default”

白昼怎懂夜的黑 提交于 2019-12-23 19:12:35
问题 My Sys specs : **Intel i7-8700k (Coffe-lake),Mother board : ROG(Maximus X Hero) OS :Ubuntu-Gnome 16.04** I booted My new PC with Ubutnu-Gnome16.04 , after installation the screen resolution is 1024x768(4:3) --and screen is shown "Unknown Display". I havent installed anything in my new OS.My Monitor-CPU connecting Cable is DP(Pin Cable). I have tried with "Force create new resolution": a)cvt 1366 768 60 b)xrandr --newmode "< >" Then Error throws as : "xrandr : Failed to get size of gamma for

vnc无法显示桌面

半城伤御伤魂 提交于 2019-12-23 17:43:08
转载 以下是我的正确配置,解决上述问题,附带说明: 修改后的~/.vnc/xstartup #!/bin/sh # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS # exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & # x-window-manager & export DESKTOP_SESSION= Ubuntu -2d #这个 ubuntu-2d 参考 /usr/share/gnome-session/sessions/ 下的文件名设置成不同的值 export GDMSESSION=ubuntu-2d export STARTUP="/usr/bin/gnome

How to clear both clipboards securely in Gnome, from Python?

佐手、 提交于 2019-12-23 12:57:42
问题 Gnome desktop has 2 clipboards, the X.org (saves every selection) and the legacy one (CTRL+C). I am writing a simple python script to clear both clipboards, securely preferably, since it may be done after copy-pasting a password. The code that I have seen over here is this: # empty X.org clipboard os.system("xclip -i /dev/null") # empty GNOME clipboard os.system("touch blank") os.system("xclip -selection clipboard blank") Unfortunately this code creates a file named blank for some reason, so

How do I disable the GNOME desktop screen lock? [closed]

浪子不回头ぞ 提交于 2019-12-23 09:59:35
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . How do I stop my GNOME desktop from locking the screen after a few minutes of idle time? I already tried the official manual at Red Hat and tried to use gconf-editor and gconftool-2 to set /apps/panel/global/disable_log_out and /apps/panel/global/disable_lock_screen . No luck. 回答1: On newer distributions of Linux,

GTK::Socket and Gtk::Plug unexpected behaviour under Gnome and FVWM2

不羁的心 提交于 2019-12-23 03:56:13
问题 The following code works fine if run within FVWM2. But if you change desktop to Gnome, then the embedded window is destroyed instead of being embedded. Why is that? What am I missing?... The code follows but basically all it does is fork. In the child, we create a VPython window an let it idle forever. In the parent, we create a GTK window, find out what the window ID of the child window is, and try to embed it vis a GTK::Socket. Note that the VPython part maybe irrelevant to this. #!/usr/bin

git and po and pot files: I don't know how to stop large diffs in my commits, workflow suggestions?

♀尐吖头ヾ 提交于 2019-12-23 03:50:10
问题 I want to submit a PR to a github-hosted project (timeshift) that uses po and pot files for translation. I have never encountered these before. One of my changes is to UI (this is backup software and I've added an option to skip jobs when the machine is on battery). The .pot file appears to be the 'master'. It is generated by a script, it seems. My change has been detected and correctly two strings have been added to the .pot file. the script to make the project then generates a lot of .po

Can a GNOME application be automated? How?

前提是你 提交于 2019-12-22 09:19:42
问题 Can a GNOME application be automated? I.e., can I programatically interact with its user inteface? How? 回答1: While specifically designed to test GUIs, dogtail provides the functionality you are looking for. 回答2: While I don't know much about it, try looking into ATK. I know there was a project a while back called facade (part of FVWM?) that used ATK to figure out the logical elements of an application and interact with and modify them. 回答3: You should take a look at DBus. 来源: https:/

Gnome-terminal not starting due to error in python script related to GI

烂漫一生 提交于 2019-12-21 04:38:06
问题 When I run gnome-terminal, I get the following error: Traceback (most recent call last): File "/usr/bin/gnome-terminal", line 9, in <module> from gi.repository import GLib, Gio File "/usr/local/lib/python3.4/dist-packages/gi/__init__.py", line 39 print url This looks odd to me, because the script is located in a python 3.4 installation but is calling print as if it was a python2 script (which is why the error occurs). I tried to reinstall the package gi with pip3, but it keeps installing this

How do I get the active window on Gnome Wayland?

你。 提交于 2019-12-20 09:28:43
问题 Background: I'm working on a piece of software called ActivityWatch that logs what you do on your computer. Basically an attempt at addressing some of the issues with: RescueTime, selfspy, arbtt, etc. One of the core things we do is log information about the active window (class and title). In the past, this has been done using on Linux using xprop and now python-xlib without issue. But now we have a problem: Wayland is on the rise, and as far as I can see Wayland has no notion of an active

在Ubuntu GNOME 14.04上安装GNOME 3.12

荒凉一梦 提交于 2019-12-19 18:35:41
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 安装GNOME 3.12特色应用:nome-weather, gnome-maps, gnome-photos和gnome-music: sudo apt-get update sudo apt-get install gnome-weather gnome-maps gnome-photos gnome-music 安装GNOME 3.12: sudo add-apt-repository ppa:gnome3-team/gnome3-staging sudo apt-get update sudo apt-get dist-upgrade 一、安装 sudo apt-get install gnome-shell sudo apt-get install gnome-tweak-tool 二、安装好后,发现下次重新登陆仍没能直接登陆到gnome3,以下为设置ubuntu11.10开机默认进入到gnome-shell: sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-shell 如果要换回,则把其中的gnome-shell替换为ubuntu 来源: oschina 链接: https://my.oschina.net/u/223460/blog