The system shutdown of Cairo-Dock is invalid.

Source: Internet
Author: User
Tags cairo

Text background

After Cairo-Dock is set to automatically start upon startup, the Shutdown option in the System menu bar is invalid. You can use the command line to shut down the system.

Search Process

I was disappointed with the results found by google this time, so I had to go to Baidu.

Find a method in Baidu Post Bar (http://tieba.baidu.com/p/3034339092? See_lz = 1), but I still failed.

Enter the following command in the command line

gnome-session-properties
Find Cairo-Dock, double-click or edit, and you can see it in the command
 cairo-dock
Change
 cairo-dock -w 5
Then I found a (http://blog.csdn.net/tecn14/article/details/27876089) on CSDN, And it was funny that his method was to use the shutdown button on cairo-dock, which is no different from the command line.

Later, I found several, said at/usr/lib/cairo-dock-launcher-API-daemon (64-bit System for/usr/lib/x86_64-linux-gnu/cairo-dock- launcher-API-daemon) but there is no such location in my system.

Later, on the ubuntu Forum (http://forum.ubuntu.org.cn/viewtopic.php? T = 460382) find a good method:

Edit/usr/lib/i386-linux-gnu/cairo-dock-launcher-API-daemon

sudo vi  /usr/lib/i386-linux-gnu/cairo-dock/cairo-dock-launcher-API-daemon

But the following directly said in how many lines to add what content, the two pictures referenced cannot be displayed normally, so I found a reference (http://blog.sina.com.cn/s/blog_82fc65ea0101k1m8.html)

In 33 rows, that is, import values, values. add one row before service: from time import sleep is in row 241, that is, ULWatcher (): Add one row before service: sleep (5) restart and OK
Summary

This is a bug in Cairo-Dock.

Now we want to solve this problem by modifying the configuration of Cairo-Dock to delay it for a while.

I don't know why.

The latency when using it is not good (cairo-dock-w 5), I think it may be because when logging in (enter the password before entering the desktop ), cairo-dock has been started, so it becomes invalid (the reason is hard to say, just my guess ).

We have to modify the configuration of cairo-dock.

However, for different system versions, cairo-dock may have different locations.

/usr/lib/cairo-dock/cairo-dock-launcher-API-daemon/usr/lib/x86_64-linux-gnu/cairo-dock/cairo-dock-launcher-API-daemon/usr/lib/i386-linux-gnu/cairo-dock/cairo-dock-launcher-API-daemon
In general, it is under/usr/lib, so we can search for cairo-dock under this location.

SEARCH Command

tiankonguse@tiankonguse:/usr/lib$ find ./ -name cairo-dock./i386-linux-gnu/cairo-docktiankonguse@tiankonguse:/usr/lib$ 

Then enter the corresponding location and add a sleep as described above.

Reference

See the link in this article.

Statement

I recently accidentally found the author's personal website http://tiankonguse.com/many of the articles are reprinted by other websites, but the reprinted without declaring the source of the article or reference from the http://tiankonguse.com/website, therefore, the author adds this statement.

Solemnly declare: This record "Cairo-Dock system shutdown invalid" Reprinted from the http://tiankonguse.com/this record: http://tiankonguse.com/record/record.php? Id = 681

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.