Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: kde gnome open folder on command line

  1. #1

    Default kde gnome open folder on command line

    Code:
    kdesu dolphin foldername  >/dev/null 2>&1
    gnome-open foldername >/dev/null 2>&1
    For the current version of gnome and kde, I need to a open folder window with either gnome or kde. I need commands with no extra spaces.

    Are these correct? Is there a KDE command to open a window with no spaces in the command?

    Thanks.

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    29,643
    Blog Entries
    15

    Default Re: kde gnome open folder on command line

    Quote Originally Posted by lord_valarian View Post
    Code:
    kdesu dolphin foldername  >/dev/null 2>&1
    gnome-open foldername >/dev/null 2>&1
    For the current version of gnome and kde, I need to a open folder window with either gnome or kde. I need commands with no extra spaces.

    Are these correct? Is there a KDE command to open a window with no spaces in the command?

    Thanks.
    Hi
    Just use xdg-open foldername it should use the default desktop file manager...
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,844
    Blog Entries
    14

    Default Re: kde gnome open folder on command line

    Open Dolphin in Super User modus ( from the menu ), hit F4 and you have what you want. Well documented FWIW
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  4. #4

    Default Re: kde gnome open folder on command line

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Just use xdg-open foldername it should use the default desktop file manager...
    Code:
    # xdg-open bin
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    No DBUS session-bus found. Check if you have started the DBUS server.
    kdeinit5: Communication error with launcher. Exiting!
    # QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    "Session bus not found\nTo circumvent this problem try the following command (with Linux and bash)\nexport $(dbus-launch)"
    
    #kdesu dolphin bin
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    No DBUS session-bus found. Check if you have started the DBUS server.
    kdeinit5: Communication error with launcher. Exiting!
    "KLauncher could not be reached via D-Bus. Error when calling kdeinit_exec_wait:\nNot connected to D-Bus server\n"
    Don't need password!!
    The first fails. The second works.

    I can't build a string with a space in it.


    reading a cfg line like this:

    OpenVirusVaultCommand= kdesu dolphin
    gnome openfolder #gnome-open

  5. #5
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    29,643
    Blog Entries
    15

    Default Re: kde gnome open folder on command line

    Quote Originally Posted by lord_valarian View Post
    Code:
    # xdg-open bin
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    No DBUS session-bus found. Check if you have started the DBUS server.
    kdeinit5: Communication error with launcher. Exiting!
    # QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    "Session bus not found\nTo circumvent this problem try the following command (with Linux and bash)\nexport $(dbus-launch)"
    
    #kdesu dolphin bin
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
    No DBUS session-bus found. Check if you have started the DBUS server.
    kdeinit5: Communication error with launcher. Exiting!
    "KLauncher could not be reached via D-Bus. Error when calling kdeinit_exec_wait:\nNot connected to D-Bus server\n"
    Don't need password!!
    The first fails. The second works.

    I can't build a string with a space in it.


    reading a cfg line like this:

    OpenVirusVaultCommand= kdesu dolphin
    gnome openfolder #gnome-open
    Hi
    That's because your not switching to root user and the root user environment, you used su rather than su - on another note bin directory it that context is the "user" bin directory if that is what your wanting? Since your already root user there is no need for the likes of kdesu?
    Last edited by malcolmlewis; 01-May-2020 at 05:32.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  6. #6

    Default Re: kde gnome open folder on command line

    Quote Originally Posted by malcolmlewis View Post
    Hi
    That's because your not switching to root user and the root user environment, you used su rather than su - on another note bin directory it that context is the "user" bin directory if that is what your wanting? Since your already root user there is no need for the likes of kdesu?
    No, I was in superuser mode root. You can tell by the '#' symbol.

    This is for the users benefit for a shortcut to the virus folder with having to navigate through file manager superuser mode. I need to be able to launch into a KDE window from kde superuser mode. This is typical for they would do.

  7. #7
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    29,643
    Blog Entries
    15

    Default Re: kde gnome open folder on command line

    Quote Originally Posted by lord_valarian View Post
    No, I was in superuser mode root. You can tell by the '#' symbol.

    This is for the users benefit for a shortcut to the virus folder with having to navigate through file manager superuser mode. I need to be able to launch into a KDE window from kde superuser mode. This is typical for they would do.
    Hi
    Sure, but users can create a prompt You were in the root users home folder, with root user powers, but environment was still set as your user, hence all the errors. You can see the difference by looking at the output of the printenv command with su and su -.

    Use permissions, groups or ACL's for access to a folder?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  8. #8

    Default Re: kde gnome open folder on command line

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Sure, but users can create a prompt You were in the root users home folder, with root user powers, but environment was still set as your user, hence all the errors. You can see the difference by looking at the output of the printenv command with su and su -.

    Use permissions, groups or ACL's for access to a folder?
    Scanvirus typical user (including myself) will use KDE and Gnome desktop after logging in. I don't get any feedback from anyone using it, some info from the number of views on the posts I made. So, I don't know if anyone who use it on a server. Users who login as root is also unknown. So, I have to base it on my own usage.

    I used control-alt-f1 to get the terminal. I logged in as root. The terminal is different. T

    his isn't typical of my usage. I use a terminal mode window in kde.

    The dolphin use works fine if I write it into the script. You have to edit the script to use gnome open folder.

    So, as I understand it login as root in a kde terminal window?
    How do I do that?

  9. #9

    Default Re: kde gnome open folder on command line

    I got it. My internet is really slow now.

    'su -'

  10. #10

    Default Re: kde gnome open folder on command line

    It opens a folder, but open it with two tabs and large amount of output.

    home/username/"%u"

    The second tab is on the correct folder.

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •