Path name that will work on all OSs [closed] - operating-system

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have created a program to download a file and put it in a specific location but I cant get it to work on all systems. What could i change this to to make it work on all operating systems.
/Users/anthonybuttillo/Library/Application Support/minecraft/mods/Enderized.zip

The issue in this specific case (a Minecraft mod) is relatively simple because the place where a Minecraft installation resides is standardized. As can be read here the Minecraft installation folder is
Windows Vista/7: C:\Users\YourUserName\AppData\Roaming\.minecraft
Windows XP: C:\Documents and Settings\YourUserName\Application Data\.minecraft (note - both Windows variations can be found through the APPDATA environment variable)
Linux: /home/Your User Name/.minecraft
Mac OS/X: ~/Library/Application Support/minecraft
So, just detect the OS and starting from the user's home directory ( String s1 = System.getProperty("user.home", "."); in Java ) you can build the required path.

Related

creating an iOSOpenDev application and a tweak in the same package [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I've spent three days looking how to create (using iOSOpenDev) one package (.deb) containing an application and a tweak at the same time and I could not find anything.
It is possible to do this?
What you can do is in the xcode project, create two targets (one tweak and one application), both using iOS open dev, and then package them in the same deb. The way you would package them both is creating the correct path to the applications folder (/Applications/YourApp.app) and the path to where your tweak goes (/Library/MobileSubstrate/DynamicLibraies) in the same deb folder, and then build the folder by typing this in terminal
sudo dpkg-deb -b YourDebFolder
The folder should look like this
Where DEBIAN contains the control file, Library contains a subfolder named MobileSubstrate, which then contains another subfolder DynamicLibraries, which contains the tweak, and the Applications folder contains the YourApp.app file.

How to launch Android emulator in Ubuntu 12.10? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I downloaded android-sdk-linux and copied it to my local drive and extracted it. Now, when I try to create an emulator in avd manager and launch the emulator, it does not launch. It requires an environment variable of platforms and platforms-tools directory which is in android-sdk-linux. How I can create an environment variable of these two dir in Ubuntu?

Shortcut in Netbeans for ClearCase actions [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Are there keyboard shorcuts for ClearCase actions? In particular I am looking for a shortcut to hijack a file.
You can have a look at this Clearcase plugin for Netbeans [ http://netbeans.org/kb/docs/ide/clearcase.html ] . It does come with a few key bindings in Netbeans and you can edit the key bindings in Netbeans key binding editor as well.
You don't need a "ClearCase shortcut" to hijack a file, you just need to make that file writable through the OS (Windows/Linux/Mac...).
That is enough to make a file "hijacked" in ClearCase since you didn't do it through a regular "cleartool checkout".
If you need a Netbeans plugin for that, I would recommend "netbeans-command-shortcuts":
You can assign a shortcut to the "make writable" command (see the wiki "Configuration"):

How can i interact with a remote GUI using psexec? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to test a remote applications using PSExec, the problem is i can't interact with it. Is there a solution?
Not really.
PSexec works by remotely creating a service configured to run a command of your choice. In more recent versions of windows OS (Vista, 2008, 7) a service is not allowed to have an interactive component. Yes, there are deprecated options to allow interactivity, but windows will give it a new windows session that is separate from others. The user will see a prompt to reveal any GUI componant that is kind of similar to User Account Control. When you accept the prompt, a wholly blank desktop is loaded with the GUI part of your service.

Why create and use Bundle in IOS? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I'd like to know which is the exact purpose of a bundle.
In other terms, when is a good practice to use them and when it would be discouraged ?
I found documentation relative to OSX, is it a good point to start ?
Bundle is way of packaging applications for Mac OS X. Therefore iOS inherited this feature also. So when an application is deployed to the system, the binary and resources are in this bundle. On iOS, you can only read your own bundle. But on a Mac OS X, you can read other bundles on the system.