How to set default file browser and web browser
I am using openbox as the window manager and don't have a desktop environment.
My file browser is pcmam file manager and my web browser is chromium.
I add
export BROWSER=/usr/bin/pcmanfm
in .bashrc so that the system uses pcman file manager to open a local file from an external application. But it will also uses pcman file manager to open a url. I want the url opened in chromium, but chromium doesn't let me set the default web browser (as the picture shows blow).:(
What shall deal with it?
Thank you.
ashesxera: Thanks for the pointers!
After some hours of persistent puzzling I finally figured out how to make Thunderbird/Lanikai open URIs in Chromium instead of Firefox in the XFCE desktop environment.
In fact I found two solutions that both work.
1) The straightforward solution: make some changes to Thunderbird/Lanikai's prefs.js
Add two string variables:
string: network.protocol-handler.app.ftp; value: exo-open
string: network.protocol-handler.app.http; value: exo-open
string: network.protocol-handler.app.https; value: exo-open
and importantly: change the values of the Boolean variables network.protocol-handler.warn-external.ftp network.protocol-handler.warn-external.http and network.protocol-handler.warn-external.https to 'true'.
It turns out that for some unclear reason the standard Arch Linux Thunderbird/Lanikai package uses gnome-open to open URLs. The persistent popping up of Firefox was caused by some settings in .gconf that come with the gconfd package. I didn't find these values in gconf-editor.
2) Change xml files in .gconf
As I don't want to use Firefox as standard browser any longer, I wanted to get rid of these hidden settings in .gconfd so that "gnome-open [URI]" opens a webpage in Chromium.
I succeeded in getting there by replacing firefox with chromium in the following files:
.gconf/desktop/gnome/applications/browser/%gconf.xml
.gconf/desktop/gnome/url-handlers/chrome/%gconf.xml
.gconf/desktop/gnome/url-handlers/ftp/%gconf.xml
.gconf/desktop/gnome/url-handlers/http/%gconf.xml
.gconf/desktop/gnome/url-handlers/https/%gconf.xml
.gconf/desktop/gnome/url-handlers//%gconf.xml
Similar Messages
-
How to set default file path while downloading alv output
Hi,
Can anyone tell me that how to set default file path while downloading the ALV output to system using Local file button on tool bar.
Please look below screenshots:
Kindly help me resolve it.
Thanks in advance.
Regards,
Ashutosh KataraThis information initial value is (maybe) stored in Windows Register (register.exe) at Software\SAP\SAPGUI Front\SAP Frontend Server\Filetransfer -> PathDownload, you can read it thru class CL_GUI_FRONTEND_SERVICES method GET_UPLOAD_DOWNLOAD_PATH and update it thru method REGISTRY_SET_VALUE. (Else there may be some parameter ID to force data, but I'm no longer sure)
Regards,
Raymond -
How to set default file type for Open dialog
Dear my friends,
I am using "At selection-screen ON VALUE-REQUEST FOR filepath" to display open dialog and i want to set default file type for open dialog = *.txt.
Thank your times !Hello,
U can make use of this code:
AT SELECTION-SCREEN ON VALUE-REQUEST FOR SP_FILE.
PERFORM SAVE_DIALOG CHANGING SP_FILE G_F_RC.
FORM SAVE_DIALOG CHANGING PO_FILE PO_RC.
DATA: L_VA_BOXTITLE TYPE STRING,
L_VA_DEFAULTFILE TYPE STRING,
L_VA_DEFAULTNAME TYPE STRING,
L_VA_DEFAULTPATH TYPE STRING,
L_VA_DEFAULTFULL TYPE STRING,
L_VA_FILTERTEXT TYPE STRING,
L_VA_CODE TYPE I.
CLEAR: PO_RC, G_F_CONF.
L_VA_BOXTITLE = TEXT-B01.
L_VA_FILTERTEXT = TEXT-B02.
IF PO_FILE IS INITIAL.
CLEAR L_VA_DEFAULTFILE.
ELSE.
L_VA_DEFAULTFILE = PO_FILE.
ENDIF.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
EXPORTING
WINDOW_TITLE = L_VA_BOXTITLE
DEFAULT_EXTENSION = 'TXT'
DEFAULT_FILE_NAME = L_VA_DEFAULTFILE
FILE_FILTER = L_VA_FILTERTEXT
INITIAL_DIRECTORY = 'C:SAPWorkdir'
CHANGING
FILENAME = L_VA_DEFAULTNAME
PATH = L_VA_DEFAULTPATH
FULLPATH = L_VA_DEFAULTFULL
USER_ACTION = L_VA_CODE
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
PERFORM CHECK_ERRORTYPE(Z48M_MATDATA_UP) CHANGING SY-MSGTY.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
CLEAR PO_FILE.
EXIT.
ENDIF.
IF L_VA_CODE NE 0.
MESSAGE S818(3F) WITH TEXT-011.
CLEAR: PO_FILE, PO_RC.
EXIT.
ELSE.
WRITE L_VA_DEFAULTFULL TO PO_FILE.
G_F_CONF = G_C_XFELD.
ENDIF.
ENDFORM. " save_dialog
If useful reward.
Vasanth -
Will EC support setting default file type and Open With from file menu?
The default file types I can live without, but at least allow for Open With on right click from Windows Explorer.
I currently have EC set in the Open With programs list, but EC does not comply for any files I opt to open it with (.css, .php, .html etc).
EC open but not the file I choose.
Also, even though the above use case is not ideal when if I do attempt an Open With when EC is already open, a new application session starts instead of attempting to open in the currently active app frame. It would be ideal to allow for single app frame, multiple files when Open With is employed.
DarrellHey Darrell,
Thanks for the feedback. How Edge Code treats files is definitely something we know isn't ideal and it's something we're looking at fixing soon. There's currently a story on the Brackets backlog that adresses the Open With issue - https://trello.com/c/GhF1Bgf9
And it based on howit ranks in that priority it looks like we could potentially take that into Edge Code over the next couple of months.
This is definitely a feature that we think is important before we consider ourselves 1.0 so it's high priority.
=Ryan
[email protected] -
How to set up a FTP and web server and integrate with DMM 5.2
Hi All ...
I need to set up a external server only for content publishing to reduce the overhead of the DMM server .
can anyone guide me on how to set up the external server and intergrate it with the DMM 5.2
Thankssemuthu,
Notes from the Release Notes:
Compatibility Limitations with Microsoft Internet Information Server (IIS)
DMPs that use firmware release 5.2 are compatible with only one version of Microsoft Internet Information Server.
That supported version is IIS 6.0 for Windows 2003 Enterprise. If you do not have the supported IIS version but
want your DMPs to retrieve assets from a webserver, we recommend that you use Apache instead of IIS.
I would suggest using Apache instead of IIS for the webserver service. IIS can be used as FTP if needed.
There are plenty of Documents on the Web about setting up Apache and FTP for servers.
Using Apache with Microsoft Windows
http://httpd.apache.org/docs/2.0/platform/windows.html
Quick HOWTO : Ch20 : The Apache Web Server
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch20_:_The_Apache_Web_Server
Once the Webserver is setup and operational. You simply store your media content on the Webserver
and then have your DMS assets in the media library use an external URL address for its location.
If you want to use external server for other features in the DMM, you can can see how to configure
here:
http://www.cisco.com/en/US/partner/docs/video/digital_media_systems/5_x/5_1/dmm/user/guide/dsm+etv.html#wp1073210
Goto the section right below ACNS & WAAS..
If this answers your question, Please take time to mark this
discussion answered & rate the response.
Thank You!
T. -
How to set default file location in Illustrator?
I'm using Creative Suite CS5 in Windows Pro 64, and would like to set a default location for files in Illustrator and Photoshop when I execute the File > Open or File > Save commands.
Yes, the program defaults to the location of the last file opened, but sometimes that file is gone, or I'm creating a new one from scratch, and the program looks for files in a distant place in my file structure.
** Is it possible to set a default file location for opening and saving in Illustrator CS5 (and in Photoshop CS5)?
Thanks.Not that I know of. It simply reverts to the global "My Documents"/ "Documents" folder as provided by your operating system. these can of course be changed using variables and editing the Windows Registry/ Group Policies, but that affects all programs...
Mylenium -
How to set default file path for save
Hello all,
I'm currently blocked on the below issue and is hoping to gain your help and insights.
We have recently upgraded to InDesign CS6. Now when an INDD file created in an older version of INDD is opened in CS6, all the save dialogs would not default to the location of the original INDD file. Though if the same file is opened in the version of InDesign that created it, the save dialog goes to the proper location by default.
Debugged using our custom plugin as a gate way, and found out that after InDesign CS6 performed the document upgrade/convert, the database for the converted document loses file information. i.e. IDataBase::GetSysFile() returns nil. I think we can figure out some way to get the original file path. For example, we can intercept "kAfterOpenDocSignalResponderService", and get the original file path of the opened file from IDocumentSignalData. Though I haven't yet able to figure out a safe way to set this file path to the document, so that the save dialogs would by default point at this path.
Utils<Facade::IWorkgroupFacade>()->InitDocumentAssetManagement(docRef, filePath) seems to do the right thing, but it seems to be quite intruding, and I'm afraid that it is overkilling and will cause bad side effect for the use case I'm looking for.
So I'm wondering if anyone has any suggestions to achieve this without implementing/overriding the file save dialog.
Thanks.
-JeffYou should be able to avoid writing your own open-doc trap by using kDocBoss's IOpenedFileInfo to obtain the original file's path. It seems fairly reliable; the only time I've seen it come up empty is for an opened QuarkXPress document.
I'm afraid I don't know of a sanctioned way to change IDataBase::GetSysFile() without going through the database's SaveAs machinery. Overriding this behavior might only be possible by replacing the regular Save dialog with your own.
But if InitDocumentAssetManagement() is helping, maybe the workgroup/asset management approach is worth pursuing. Have you tried spying on that call in the debug app? You might be able to isolate and use one of the commands that it's invoking (IAMSPManager::BindAsset() / kSetAssetAttributesCmdBoss?) without all of the side-effects of the higher-level call. -
How to set default file extension in the FileChooser?
We are trying to use the FileChooser but for some reason, it doesn't have any file extensions in the drop down menu (like in windows). Does anyone know how to put this in?
Also, how do we set the file name for the saving file, rather than typing the name in ourself?
Also, how do we position the file chooser dialog in the middle of the screen? Right now, it's in the top left corner of the screen.
Here's our piece of code, used for saving file.
FileChooser fileChooser = new FileChooser();
File file = fileChooser.showSaveDialog(stage);
/*User might clicked on the cancel button*/
if (file != null) {
try {
Writer output = new BufferedWriter(new FileWriter(file));
output.write(text);
output.close();
} catch (IOException ex) {
logger.error("save file error", ex);
}Any help would be appreciated! Thanks!867511 wrote:
We are trying to use the FileChooser but for some reason, it doesn't have any file extensions in the drop down menu (like in windows). Does anyone know how to put this in?Have you read the API? What's the nested class of FileChooser that's listed immediately after it in the classes list?
Also, how do we set the file name for the saving file, rather than typing the name in ourself?I don't see any API for that. You could file a RFE on kenai.
Also, how do we position the file chooser dialog in the middle of the screen? Right now, it's in the top left corner of the screen.I don't see any API for that either.
db -
How to set default file permissions for applicatio...
I have the nokia n86 and was wondering if there was any way of setting the file permissions of a program via the phone. To put it in context, i downloaded a program that edits photos but everytime i try to load a picture from my phone it asks me (for every single folder in my phone, not just the photo ones) if the program can open it. I can be there clicking yes all day as i there is a lot of folders and subfolders on the phone. I know sony ericssons had an option where you could select the programs permissions to always ask or never ask but i cant seem to find a similar option on the nokia.
Does anyone have any ideas?Same issue here. Everything I put on the drive is set to Read-only for the group.
-
How to set default file type for screen capture?
I want to change the default from .jpg2 to .jpg when doing a screen selection
capture (cmd-shft-4). Where is the place to do this?
Thank you,
toddTodd,
OnyX has 10 screen shot options available in Parameters>General>Screen Capture format:
;~) -
Plsss help me: how to set default values in html:file and html:radio
Hai,
To set default value to text box i use the following code. It works well.
<html:text property="modifyserverdesc" value="<%= serverDesc%>" styleClass="text" size="38"/>But for file i use the code
<html:file styleClass="file" property="modifyserverimgfile" value="<%= serverImage%>" size="40"/>It doesn't display value. What is problem here?
how to set default selection in <html:radio>.No it won't help.
You can't set a value into an <input type="file"> control at all. The user has to put values in themselves.
The reason behind this is security. If the programmer could put any value they liked in there, you could upload any file at all from a users computer without their intervention. eg C:\windows\system32\passwords.txt
Bottom line: you can't put a default value into the input type="file" control.
And a good thing too ;-) -
How to make nemo default file browser for Firefox
I use Linux Mint. When I download some file and then click on "Open Containing Folder" button it opens Nautilus file browser. Default file browser on my computer is Nemo, so I would like to always use it.
It is possible to [[Set how Firefox handles different types of files]]. Please open the following options to find that menu:
# Open Options/Preferences
# Open Applications
# Select the action desired
However if the item is not there, Is that file explorer the default explorer on the linux machine?
Or please also see [http://askubuntu.com/questions/267514/open-containing-folder-in-firefox-does-not-use-my-default-file-manager] -
How to set the file path dynamically based on sytem, username, and date
Hi All,
My requirement is upload the data into one structure like xyz that is related to t.code MCSZ.
file will be in UNIx SERVER .
PATH IS: /sapif
file name is xy789 load .txt
I have to write code in one user-exit
how can i set the file path for this.
shall i put hard code file path?
because i have to writecode in user-exit.
plz tell me how to set the file path based ons syetem, username, date
Thanks in advance
Ram.AConcatenate the field SY-SYSID, SY-UNAME and SY-DATUM for the file path
-
How to set default currency and Country in R12 financial modules
Hi all,
How to set default currency and Country in R12 financial modules (AR,AP,GL,FA,CE) becuase I found some default settings are shown "USD" & "United States" such as create AR Customer, the Country is shown the default "United States"....
Can anybody advise ?
Thanks & Regards,Hi,
Change the below profile for the user to a territory different than the US :
In System Administrator, navigate to Profiles -> System.
Select Site, Application, and Responsibility.
Profile options:
Default Country
HZ: Reference Territory
ICX: Territory
Regards,
Raju. -
Dreamweaver setting wrong file type and creator codes
First of all, I'm running Mac OS X 10.5.2 on an Intel-based
Mac, with Dreamweaver CS3 9.0 build 3481.
I have a site defined where I connect to my web server via
FTP. On my server, I just upgraded my forum software to PHPBB 3.0,
which created a new /forums/ directory. My plan is to use
Dreamweaver to download that new /forums/ directory to my local
site where I can edit the files. Inside the forums folder are
several types of files, like ".php" files, ".htm" files, ".gif"
files, etc.
So, upon downloading the /forums/ folder to my local machine
by dragging and dropping it (in Dreamweaver) from the remote site
to the local site, I noticed that Dreamweaver insists on setting
HFS file type and creator codes for files it recognizes, based on
the filename extension.
I've connected to the same server using the Finder and
Transmit, and copied the remote /forums/ folder over to my local
machine. Neither of those copies have files with file types and
creator codes set, meaning they aren't actually set on the remote
files and that this is indeed something Dreamweaver is doing on the
fly as it downloads the files.
I'm wondering if there's any way possible to disable this
behavior, and just download the files like they are on the server?
(File extension only). To make matters worse, on my Intel-based
Mac, it's not even setting the proper codes, as you can see in the
following image:
http://homepage.mac.com/mdouma46/images/dreamweaver.png
Notice for the ".php" document, it's attempting to set a file
type of 'TEXT' and a creator code of 'DmWr' (DreamWeaver's creator
code), but because the Dreamweaver developers didn't bother to take
into account the byte-ordering differences between PowerPC Macs and
Intel Macs, the codes are written in reverse: 'TEXT' becomes
'TXET', and 'DmWr' becomes 'rWmD'. (If you're going to use
low-level routines such as FSSetCatalogInfo() to set the file types
and creator codes, you need to call CFSwapInt32HostToBig() on the
OSType values before doing so, to make sure they're in Big-endian
format).
Anyone know where the conversion information is stored?
Thanks in advance.....Creator codes are totally deprecated in snow leopard. as for a workaround you can use something like this.
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #ADD8E6;
overflow: auto;"
title="this text can be pasted into the Script Editor">
on open these_items
repeat with this_item in these_items
tell application "Finder"
set the_file to POSIX path of (this_item as alias)
tell application "System Events"
set default application of file (the_file) to ("Main HD:Applications:Preview.app" as alias)
end tell
end tell
end repeat
end open</pre>
save it as an application and drop files onto it to set them to open with Preview.
Maybe you are looking for
-
I am running FireFox5 on a 2008 (Santa Rosa) MacBook Pro. OSX 10.5 Leopard I have the current version of 1Password v.3.5.13 (FireFox5-friendly) I am running FireFox5 for Mac. I have the Add-on Compatibility Reporter 0.8.5 (which, by the way is readin
-
IPhoto Not Showing Up In iCloud... Is it cause I don't have OS Lion?
When I log into my my iCloud account I'm not able to see my Photo Stream from my iPhone 4 nor my iPad 2. Is this cause I haven't upgraded to OS X Lion? Or...?
-
Printer quality/colors not accurate since installing Yosemite
I recently upgraded to OS 10.10, Yosemite. I can no longer get accurate colors printed for photos from Photoshop. I have Photoshop CS4 and I use an Epson Stylus Photo R2400 printer. I am able to use Photoshop for everything but printing accurately. I
-
T410 shuts down when powered on
Our 1 1/2 year old T410 displayed the 'Fan Error" message on power on. We took it in for service and the technician cleaned the fan and said the fan was now working fine. However, now when the T410 is powered on it displays the ThinkPad opening scr
-
The redemption code i used did not open the creative cloud application it just gave me 30 day trials
The redemption code i used did not open the creative cloud application it just gave me 30 day trials What do i do know am i allowed a new redemption code I used a PC