You are not logged in.

#1 2017-10-22 15:45:02

samor412
Member
Registered: 2017-10-22
Posts: 4

gnome-tweak-tool can't be launch

recently, I have set the theme of the gnome. After trying several time, I can't open tweak.
I run gnome-tweak-tool, this showed:

[root@archlinux ~]# gnome-tweak-tool -vd
DEBUG   : Schema not translated org.gnome.shell (domain: gnome-shell)
DEBUG   : Schema not translated org.gnome.shell (domain: gnome-shell)
DEBUG   : Schema not translated org.gnome.shell (domain: gnome-shell)
DEBUG   : Schema not translated org.gnome.shell (domain: gnome-shell)
DEBUG   : Schema not translated org.gnome.shell (domain: gnome-shell)
DEBUG   : Schema not translated org.gnome.shell (domain: gnome-shell)
DEBUG   : Caching gsettings: <gtweak.gsettings._GSettingsSchema: org.gnome.shell>
DEBUG   : Shell version: [3, 26, 1]

Is there any problem?

Offline

#2 2017-10-22 15:49:20

samor412
Member
Registered: 2017-10-22
Posts: 4

Re: gnome-tweak-tool can't be launch

And this is the  /usr/bin/gnome-tweak-tool file

#!/usr/bin/python

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

import os.path
import optparse
import logging
import locale
import gettext
import signal
import sys
import gi
gi.require_version("Gtk", "3.0")

import gtweak
from gtweak.defs import VERSION

if __name__ == '__main__':
    parser = optparse.OptionParser(version=VERSION)
    parser.add_option("-t", "--test", action="store_true",
                      help="Enable test and debug code")
    parser.add_option("-l", "--load", action="store_true",
                      help="Load all tweaks")
    parser.add_option("-p", "--prefix",
                      help="Installation prefix (for gsettings schema, themes, etc)",
                      metavar="[/, /usr]")
    parser.add_option("-v", "--verbose", action="store_true",
                      help="Print the names of settings modified")
    parser.add_option("-d", "--debug", action="store_true",
                      help="Enable debug output")
    options, args = parser.parse_args()

    try:
        from gtweak.defs import GSETTINGS_SCHEMA_DIR, TWEAK_DIR, DATA_DIR, \
                                PKG_DATA_DIR, LOCALE_DIR, LIBEXEC_DIR
        _defs_present = True
    except ImportError:
        GSETTINGS_SCHEMA_DIR = TWEAK_DIR = DATA_DIR = PKG_DATA_DIR = \
                               LOCALE_DIR  = LIBEXEC_DIR = ""
        _defs_present = False

    # the supplied prefix always beats the contents of defs
    if options.prefix or not _defs_present:
        _prefix = options.prefix or "/usr"
        DATA_DIR = os.path.join(_prefix, "share")
        LOCALE_DIR = os.path.join(_prefix, "share", "locale")
        GSETTINGS_SCHEMA_DIR = os.path.join(_prefix, "share", "glib-2.0", "schemas")
        _me = os.path.abspath(os.path.dirname(__file__))
        TWEAK_DIR = os.path.join(_me, "gtweak", "tweaks")
        PKG_DATA_DIR = os.path.join(_me, "data")

    gtweak.GSETTINGS_SCHEMA_DIR = GSETTINGS_SCHEMA_DIR
    gtweak.TWEAK_DIR = TWEAK_DIR
    gtweak.DATA_DIR = DATA_DIR
    gtweak.PKG_DATA_DIR = PKG_DATA_DIR
    gtweak.LOCALE_DIR = LOCALE_DIR
    gtweak.LIBEXEC_DIR = LIBEXEC_DIR
    gtweak.ENABLE_TEST = options.test
    gtweak.ALL_TWEAKS = options.load
    gtweak.APP_NAME = "gnome-tweak-tool"
    gtweak.VERBOSE = options.verbose

    if options.debug:
        level = logging.DEBUG
    else:
        level = logging.WARNING
    logging.basicConfig(format="%(levelname)-8s: %(message)s", level=level)

    locale.setlocale(locale.LC_ALL, None)
    gettext.install(gtweak.APP_NAME, LOCALE_DIR, names=('gettext', 'ngettext'))

    from gtweak.app import GnomeTweakTool
    app = GnomeTweakTool()
    signal.signal(signal.SIGINT, signal.SIG_DFL)
    exit_status = app.run(None)
    sys.exit(exit_status)

Offline

#3 2017-10-22 16:36:18

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: gnome-tweak-tool can't be launch

samor412 wrote:

And this is the  /usr/bin/gnome-tweak-tool file

Posting that file should be completely pointless, but I noticed it's different from the gnome-tweak-tool from arch repos. Install gnome-tweak-tool from official repositories, and see if the problem persists.

Also, why are you trying to launch gnome-tweak-tool with root? You really shouldn't do that.

Offline

#4 2017-10-23 02:01:52

samor412
Member
Registered: 2017-10-22
Posts: 4

Re: gnome-tweak-tool can't be launch

ooo wrote:
samor412 wrote:

And this is the  /usr/bin/gnome-tweak-tool file

Posting that file should be completely pointless, but I noticed it's different from the gnome-tweak-tool from arch repos. Install gnome-tweak-tool from official repositories, and see if the problem persists.

Also, why are you trying to launch gnome-tweak-tool with root? You really shouldn't do that.

why can't? sorry for ignorance. Beginner of Linux
Also, I use pacman to download gnome tweak tool, isn't it official?

Last edited by samor412 (2017-10-23 02:08:11)

Offline

#5 2017-10-23 02:12:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: gnome-tweak-tool can't be launch

Use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code

Your system is not up-to-date.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2017-10-23 08:11:11

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: gnome-tweak-tool can't be launch

samor412 wrote:

why can't? sorry for ignorance. Beginner of Linux

Please do some research yourself why this is a bad idea. It's explained in detail all over internet.

Also, a lot of applications aren't supposed to be used as root user, e.g. gnome-tweak-tool doesn't start as root for me either.

Also, I use pacman to download gnome tweak tool, isn't it official?

Yes (as long as you're configured to use official repos), but most likely your system is not up to date, as jasonwryan mentioned.
If you're new to arch, you should read this, especially the part about upgrading the system.

Offline

#7 2017-10-23 14:06:46

samor412
Member
Registered: 2017-10-22
Posts: 4

Re: gnome-tweak-tool can't be launch

jasonwryan wrote:

Use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code

Your system is not up-to-date.

Thx for the reminding and tolerance. This is my first post
I use a new users and I can open it again. Thx a lot

ooo wrote:

Yes (as long as you're configured to use official repos), but most likely your system is not up to date, as jasonwryan mentioned.
If you're new to arch, you should read this, especially the part about upgrading the system.

Thx for teaching me that

Offline

#8 2017-10-28 02:23:08

grego1422
Member
From: Argentina
Registered: 2012-07-16
Posts: 5
Website

Re: gnome-tweak-tool can't be launch

I had the same problem. Find out that you need nautilus to be installed before you can run gnome-tweak-tool. Hope this helps!

Also you need to log out and in again inmediately after installing nautilus!


Visiten mi blog! Blog para geeks

Offline

Board footer

Powered by FluxBB