Tag Info

Hot answers tagged

6

If you want to do it Pythonic way. #!/bin/python import subprocess AUTOHIDE = subprocess.check_output (["/usr/bin/dconf", "read", "/org/compiz/profiles/unity/plugins/unityshell/launcher-hide-mode"]) if (AUTOHIDE==1): subprocess.call (["/usr/bin/dconf", "write", "/org/compiz/profiles/unity/plugins/unityshell/launcher-hide-mode", "0"]) else: ...


5

Try: gnome-session-quit For more options: gnome-session-quit --help According to the manual, the following options are supported: --logout Prompt the user to confirm logout. This is the default behavior. --power-off Prompt the user to confirm system power off. --reboot Prompt the user to confirm system reboot. ...


3

To get that exact dialog, the only way is through dbus, since gnome-sesion-quit only shows the generic four-options dialog. I got this by looking at dbus-monitor. This is the command: dbus-send --print-reply --dest="org.gnome.Shell" /org/gnome/SessionManager/EndSessionDialog org.gnome.SessionManager.EndSessionDialog.Open uint32:2 uint32:0 uint32:60 ...


3

Ubuntu 13.04 Get The Ubuntu Touch Feeling On The Unity Desktop With These Launcher Icons To use the Ubuntu Touch Launcher icons / assets on the desktop (Unity), download the icons from DeviantArt and extract the downloaded archive in your home folder. Then, to replace the Unity icons with the Ubuntu Touch-style icons, use the following command: cd ...


2

Install CCSM sudo apt-get install compizconfig-settings-manager And then run it in terminal (CTRL+ALT+T) ccsm Then search for "Ubuntu Unity Plugin". If it's not checked, check it. If it is checked you may have another issue. Try restarting compiz: kill -9 `pidof compiz` This will kill it, it should start up again, if it doesn't, CTRL+ALT+F2 and ...


2

If you use an acceleration graphics card alongside the default graphics card, it's possibly due to the installation of their drivers. A few updates of acceleration graphics cards drivers in systems that have two graphics card tend to present unstable behavior in some systems. I have an Nvidia card and an Intel card. It used to happen with me when I installed ...


2

I have an Asus U36SD using an "Optimus" (Intel + Nvidia GPUs) set-up. I had Ubuntu 12.04 working just fine, but upgrading to 12.10, this problem appeared and persisted in 13.04. I have managed to fix it trough the following steps: Install Nvidia drivers from https://edge.launchpad.net/~xorg-edgers/+archive/ppa. I would really prefer the stable PPA at ...


2

One way to do it simply is to create a custom shortcut. Access System Settings > Keyboard > Shortcuts > Custom shortcuts Then click '+' to add a new shortcut, and in the command box paste: dconf write /org/compiz/profiles/unity/plugins/unityshell/launcher-hide-mode 0 This will create a shortcut for showing the launcher. Now to hide the launcher, you ...


2

First, because you're about not to use terminal, I change sudo to gksu. And then, if you've created a script like this: #!/bin/sh gksu openvpn --config /home/ubuntu/Documents/vpnbook/vpnbook-euro2-udp25000.ovpn --auth-user-pass /home/ubuntu/Documents/vpnbook/password.txt and named it your-script.sh, you can create a file like this (taken from this ...


2

Same problem for me with Starcraft II launched throw playonlinux. There is first a application launcher: (WM_CLASS(STRING) = "Blizzard Launcher.exe", "Wine") and then the game itself: (WM_CLASS(STRING) = "SC2.exe", "Wine") I guess that wine is setting the class with the binary executable. I had a look in bamf code (bamf_matcher.c, ...


1

In a terminal, install the following: sudo apt-get install libgtkglext1 libc6 bzip2 zlib1g libexpat1 openssl libgtk2.0-0 libglade2-0 freeglut3 sqlite3 Then type openscam in the terminal to open it up. Source: OpenSCAM Install Guide. Though I've added the package libgtkglext1 because it also needs it.


1

Compare environment variables in terminal (env) and by running a script through desktop shortcut. Script #!/bin/sh env > ~/myenv Check if value of DBUS_SESSION_BUS_ADDRESS is different, because it seems to be the problem.


1

Getting a progress bar to work will (I believe) be hard, and will have to be implemented on a case by case basis for different applications (apt-get, dd, etc.). On the other hand, changing the icon when a prompt is available is easier. Assume that there exist two scripts iconprompt and iconnoprompt which change gnome-terminal's icon on execution. [I've ...


1

The script should read: #!/bin/bash cd $HOME/MCserver java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame After writing it, you should make it executable, so open a terminal and if the script is in a file called minecraft.sh (check if the casing is right, upper and lower case matter!): $ cd $HOME/MCserver $ chmod +x minecraft.sh ...


1

Get to a TTY (Control+Alt+F1), check if ubuntu-desktop is installed: $ apt-cache policy ubuntu-desktop ubuntu-desktop: Installed: (none) Candidate: 1.299 Version table: 1.299 0 500 http://archive.ubuntu.com/ubuntu/ raring/main amd64 Packages In my case it is not. I assume you've triggered a cascade removal of certain packages and that ...


1

When creating a .desktop file for your launcher you may want to give a path to the application's icon there: Icon=/full/path/to/icon In case you just want to change an icon to other than default you can do so by opening the Preferences menu with a right click on the .desktop file. This will show the following dialog: Click on the icon to open a file ...


1

I have used gnome (classic). After update to 12.04 any window or app window did not had task-bar with min/max buttons. I have logged off, on log off screen clicked on gnome/ubuntu sign and chose ubuntu and logged in and windows are backed to normal. Logged off again and switch to gnome (not gnome classic) and windows are normal.


1

When you are logged in on your administrator account, can you access a tty console by pressing CTRL+ALT+F1? If yes, run sudo apt-get update && apt-get dist-upgrade. When finished, reboot and log in again. If the problem remains, enter the tty console agin and try sudo apt-get install --reinstall unity and reboot again.



Only top voted, non community-wiki answers of a minimum length are eligible