3

In the 'Open File' Dialog box, Is there a way to specify file/folder path directly by default?

Ex. /somefolder/somefile.png

Ideally, I would be able to copy/paste the above example in a text field, and that would be the file that the Dialog uses.

enter image description here

If you need a way to see this dialog, and your logged into Linux Mint, Press Ctrl+O in an application.

I just found this........

If you are in the file open dialog, press ctrl-L, this changes the address bar to the way you want it to have.

How do I make the path bar a text field by default?

In the dconf editor, I find an option to change org.gtk.Settings.FileChooser (capitalization included in original description shown in dconf editor) > location-mode from "path-bar" to "filename-entry". Unfortunately, it has no effect, and as soon as I use a program that should be using this option, it pops back to "path-bar".

The above doesn't seem to work, looks like the proper setting.

This is a GTK+ Dialog. Here is a Post that talks about replacing GTK+ dialog with another.

Here is a grunt way of setting the default through a sh script:

#!/bin/bash
string="Attach File(s)"
string2="Open Files"
string3="Open File"
while :;
do

    while :;
    do
        exitcondition=$(wmctrl -l | grep "$string")
        exitcondition2=$(wmctrl -l | grep "$string2")
        exitcondition3=$(wmctrl -l | grep "$string3")
        if [ "$exitcondition" != "" ]; then
                whichcondition=1
                break
        fi
        if [ "$exitcondition2" != "" ]; then
                whichcondition=2
                break
        fi
        if [ "$exitcondition3" != "" ]; then
                whichcondition=3
                break
        fi
        sleep .2
    done
    xdotool keydown ctrl key l keyup ctrl
    while :;
    do
        if [ "$whichcondition" = 1 ]; then
                exitcondition=$(wmctrl -l | grep "$string")
                if [ "$exitcondition" == "" ]; then
                        break
                fi
        fi
        if [ "$whichcondition" = 2 ]; then
                exitcondition2=$(wmctrl -l | grep "$string2")
                if [ "$exitcondition2" == "" ]; then
                        break
                fi
        fi
        if [ "$whichcondition" = 3 ]; then
                exitcondition3=$(wmctrl -l | grep "$string3")
                if [ "$exitcondition3" == "" ]; then
                        break
                fi
        fi
        sleep .2
    done
done

The above is an answer that works... but the problem with that is this script can trigger on a window its not suppose to.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.